Forum Moderators: phranque
Then there is `jpegoptim --strip-all -m75` and `optipng -strip -o7` to remove unnecessary meta data from the images and do compression.
system("jpegoptim --strip-all -m75");
system("optipng -strip -o7");
# or maybe
($ext) = lc($file) =~ /\.([^.]+)$/;
if ($ext eq 'jpg' || $ext eq 'jpeg) {
system("jpegoptim --strip-all -m75");
}
elsif ($ext eq 'png') {
system("optipng -strip -o7");
}
1. How do I know if these are installed?
2. Is there any reason to NOT use them? Performance, speed, etc?