resizing photos
Posted: 2013-07-04T15:33:09-07:00
I have read all of the usage examples for resize and photos (and as much of filters as I could absorb). I am looking for a good default or starting point.
-resize vs -distort
Is there any advantage to -resize other than simplicity and possibly speed? -distort is more flexible and I'm usually cropping when resizing. When rotating and resizing, I assume it must better to resample in one pass.
-filter
It seems -resize defaults to Lanczos and -distort defaults to Robidoux. Is one of these better for down-sampling photographs? My cropped digital photos are 2 to 16 megapixels.
Sharpening
I have no experience with sharpening (sad but true). Is it better to do this with the resize filter, -unsharp, or both?
-colorspace and -gamma
I have been resizing without leaving sRGB. Apparently this has been my biggest mistake. RGB seems best, unless someone knows when Lab is better.
Hopefuly it's okay to use Anthony's photo beijing.jpg to demonstrate what I currently do:
-resize vs -distort
Is there any advantage to -resize other than simplicity and possibly speed? -distort is more flexible and I'm usually cropping when resizing. When rotating and resizing, I assume it must better to resample in one pass.
-filter
It seems -resize defaults to Lanczos and -distort defaults to Robidoux. Is one of these better for down-sampling photographs? My cropped digital photos are 2 to 16 megapixels.
- Use case 1: screen resolution (0.2-0.6 MP, 15-45% scale)
- Use case 2: print resolution (60-110% scale, most frequently with a 1-3° rotate)
- Use case 3: binning (use -scale, which is -filter box -resize)
Sharpening
I have no experience with sharpening (sad but true). Is it better to do this with the resize filter, -unsharp, or both?
-colorspace and -gamma
I have been resizing without leaving sRGB. Apparently this has been my biggest mistake. RGB seems best, unless someone knows when Lab is better.
Hopefuly it's okay to use Anthony's photo beijing.jpg to demonstrate what I currently do:
Code: Select all
convert beijing.jpg -auto-orient -strip ^
-crop 1200x1800+334+500 ^
beijing_print_4x6.jpg
convert beijing.jpg -auto-orient -strip -quality 90 ^
-set option:distort:viewport 1200x1600+334+610 -set option:distort:scale %%[fx:576/1600] -distort SRT 0 ^
beijing_576.jpg
convert beijing.jpg -auto-orient -strip -quality 90 ^
-set option:distort:viewport 1200x1600+335+616 -set option:distort:scale %%[fx:576/1600] -distort SRT -2.2 ^
beijing_r_576.jpg