image magick

Note: most of these are in place conversions.

Only shrink larger images

convert $i -resize 800x600\> $i

Shrink and convert to webp

convert test.png -resize 800x600\> test.webp

Trim borders and shrink if larger

I use the following for cover art on this website:

convert $i -trim -resize 140x183\> $i

I use the following for card art on this website:

convert $i -trim -resize 75x105\> $i

See also