Optimize with Jpegotrim and Strip Metadata

Tags: thunar custom action, jpegoptim, metadata, delete
November 11, 2015

To learn how to use Thunar Custom Actions click here.

Losslessly optimize JPEGs, by optimizing the Huffman tables and stripping comments and EXIF metadata from the file. If you don’t want to strip metadata then just remove --strip-all from the command.

for file in %F; do jpegoptim --strip-all -of "$file"; done

Under Appears if selection contains make sure Image Files is checked.

}