Quickly optimizing PNG files with optipng shortcut

Quickly optimize with optipng

If you quickly want to optimize files with optipng, this can be achieved on Linux by creating a desktop file.

Copy this file to /home/[user]/.local/share/applications/optimize-with-optipng.desktop

[Desktop Entry]
Version=1.0
Type=Application
Name=Optimize with optipng
GenericName=Image Editor
Comment=Optimize with optipng tool
Icon=insert-image
Exec=optipng -o 7 %U
Terminal=true
Categories=Graphics;2DGraphics;RasterGraphics;GTK;
StartupNotify=true
MimeType=image/png

After that right click on a PNG file and select your new “application”.

Published by

Michael Boelen

Michael Boelen is the founder of CISOfy, a software company focused on Linux and Unix security. He is an open source developer (rkhunter and Lynis), blogger at linux-audit.com, trainer at linuxsecurity.expert, and a public speaker.