[ Thanks to Borys
Musielak for this link. ]
“We can use two programs from the ImageMagick package
to transform stuff – convert and mogrify. They are almost
identical from the user’s point of view, but convert saves
the result image into another file, while mogrify does all the
modifications on the original, overwriting it.”