ImageGlass from the Command Line

404 views
Skip to first unread message

thermal...@gmail.com

unread,
Mar 27, 2018, 1:02:58 PM3/27/18
to ImageGlass Community
Hi.

I'm just installed ImageGlass on Windows 10 (Win 10 Pro, Version 109, OS build 16299.309) and I'd like to integrate it with some scripting allowing me to view an image path passed to it or even a folder by path.

I couldn't find anything in the documentation about command line options and I couldn't see any options at the command line for the EXE file.  However I'm, assuming since you can have file associations and drag & drop there's probably a way to pass a file and/or folder to it using a path.

I tried the following simple command line instruction ...

"C:\Program Files\ImageGlass\ImageGlass.exe" "I:\Software\AppX\Img01.png"

... and whilst it does indeed open the file in ImageGlass, it also hangs my PC until I kill the ImageGlass process and the process that kicked it off via Task Manager (which ends up taking a good 5+ minutes to open); and sometimes the Windows File Explorer process too.  I've had to actually reboot a couple of times during my experiments as I couldn't even get Task Manager up the locking became that bad.  But that's what you get for such experimentation sometimes.

Does anyone have any pointers on how I might be able to pass a path in safely from the command line to ImageGlass?

Thanks in advance for any advice.

Stephen.

Dương Diệu Pháp

unread,
Mar 29, 2018, 2:31:30 AM3/29/18
to thermal...@gmail.com, ImageGlass Community
Hi Stephen,

It's actually correct way to pass a path to ImageGlass.

To understand more your issue, 
- Does it always hang when you open by command line? Can you try with other image files?
- Does it also hang when you open from ImageGlass window?

​Phap​




Reply all
Reply to author
Forward
0 new messages