How Do I Set A Unix Jpg File Size Limit Using A Tool Like Imagemagick?
ImageMagick is very common on Linux machines, so I’m assuming that you’re running some flavor of Linux or maybe some other Unix with bash. First a few things to consider… – JPEGs (and other lossy compression formats) are tough to get down to a specific file size while retaining the most quality because the amount of compression varies greatly with the type of image. – JPEG was designed for images of people, buildings, scenery and other real life subjects and tends to do poorly with line art, cartoons and other similar artwork. – Outdoor scenery might be usable with higher compression than an image of a group of people because keeping facial features might be very important. – The amount of compression that is acceptable (the more compression, the lower the quality) also varies with the type of image and personal perception. – Automated cropping probably isn’t too feasible without a lot of coding since cropping is more art than science. So concentrating on just image resolution (no cr