pip install wand
この場合、縦横比は一定になるように拡大・縮小されます。次に、縮小はしたいが、 拡大はしたくない場合の例です。 convert a.gif -resize 100x100\> b.gif
pip install magickwand
* ImageMagickで画像の暗い部分を明るくする
convert from.jpg ( from.jpg -matte -channel a -fx "luminosity<0.4?p:0" -modulate 160 ) -composite to.png
convert -resize 320x240 +sigmoidal-contrast 8,50% -modulate 100,200,100 -ordered-dither 4x4,8,8,8 +dither -map palette.png -sample 200% input.jpg output.png
Someday ImageMagick will finally break for good and we'll have a long period of scrambling as we try to reassemble civilization from the rubble.