Trimage icon indicating copy to clipboard operation
Trimage copied to clipboard

File association Ubuntu

Open message opened this issue 10 years ago • 1 comments

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

message avatar Jul 30 '15 14:07 message

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.

Mad182 avatar Dec 30 '15 08:12 Mad182