User Tools

Site Tools


optimize_jpg_files

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
optimize_jpg_files [2021/02/20 23:46] – external edit 127.0.0.1optimize_jpg_files [2024/03/12 21:23] (current) – external edit 127.0.0.1
Line 13: Line 13:
 jpegoptim *.JPG jpegoptim *.JPG
  
 +
 +
 +Optimize PNG
 +
 +<code>sudo apt install </code>
 +
 +To optimize a PNG file, run
 +
 +<code>$ optipng -o7 file.png</code>
 +
 +-o selects the optimization level. The higher the level, the more compression trials. OptiPNG optimizes the given file in-place.
 +
 +To make the file further smaller, we can remove the metadata from the PNG file by specifying --strip all:
 +
 +<code>$ optipng --strip all -o7 file.png</code>
optimize_jpg_files.txt · Last modified: 2024/03/12 21:23 by 127.0.0.1