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
Last revisionBoth sides next revision
optimize_jpg_files [2020/10/04 15:36] dinooptimize_jpg_files [2022/10/23 21:01] dino
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