ImageMagickのメモ

ImageMagickのconvert(1)で画像サイズを変えるとき,DPIも比例して変える(つまり画像の論理的な大きさを不変に保つ)には -resize-geometry-sample でなく -resample を使うこと.具体的には convert before.png -resample 30% after.png とする.
オプションの順番には意味があること.(例: -sample 10% -sample 1000% とすると画像がガタガタになる)