Kilian / Trimage

A cross-platform tool for optimizing PNG and JPG files.
http://trimage.org
MIT License
706 stars 55 forks source link

File association Ubuntu #37

Open message opened 9 years ago

message commented 9 years ago

Is there a way to open images with trimage? Like "Open with..." screenshot from 2015-07-30 17 33 22

Mad182 commented 8 years ago

You can create a desktop entry:

gedit ~/.local/share/applications/trimage.desktop
[Desktop Entry]
Name=Trimage image compressor
Comment=A cross-platform tool for optimizing PNG and JPG files.
Terminal=false
Icon=trimage
Exec=trimage -f %f
Type=Application
StartupNotify=true
MimeType=image/jpeg;image/png;
Categories=Application;Qt;Graphics;

Note that AFAIK Trimage does not currently accept file names as arguments for starting in graphical mode. Pressing the "Open with Trimage" will instantly optimize the image(s) and quit, not showing the Trimage window.