ImageMagick

I learned that the version of wordpress on this virtual machine is set to a 1.5MB limit for uploaded images. A quick way to decrease the size of images is to use ImageMagick. The identify command let me validate the image resolution:

$ identify <filename>
<filename> JPEG 5712x4284 5712x4284+0+0 8-bit sRGB 4.49007MiB 0.000u 0:00.000

Once I knew what size I was working with, I used the convert command to resize the image:

$ convert <filename> -resize 1512x2016 <filename-2>

Comments are closed