Convert image

מתוך R63
קפיצה אל: ניווט, חיפוש

תוכן עניינים

flip

-flip

mirror the image

rotate

-rotate
-rotate 90

crop

-crop

-crop 600x400+0+600

600x400 is the crop size and the +0+600 is the offset - in your case the top left corner.

http://www.imagemagick.org/Usage/crop/#crop



cp 20110101161153_0_0_1000000.jpg ./test/
convert 20110101161153_0_0_1000000.jpg -crop 1600x1200+200-98 ./test/new.jpg


Remove botten 34 pixel

convert input.jpg -crop 1280x960+200-34 output.jpg


convert 20110102145755_0_0_1000005.jpg -crop 1280x960+300-45 -rotate 180 -crop 980x915+0-245 new9.jpg

More usefull

convert 1.jpg -crop 1600x1200+320-60  -rotate 270 -crop 1140x1280+100+100 6.jpg

How to cut image cli linux

http://askubuntu.com/questions/631689/cropping-images-using-command-line-tools-only

linux convert image brightness

-brightness-contrast

convert -brightness-contrast -30x10 input.tif out_darker.tif

where -30 is to darken by 30 and +10 is to increase the contrast by 10.


-modulate value

Convert of many file is slow

convert is toooooo slow with many images - ImageMagick http://www.imagemagick.org/discourse-server/viewtopic.php?t=27836

ImageMagick convert one by one

bash script

mkdir converted
gvim convertor.sh
a=1
for f in *.jpg; do
 new=$(printf "%04d.jpg" "$a") #04 pad to length of 4
 ionice -c2 -n7 nice -n 19 convert ./"$f" -crop 1600x1200+200-98 ./converted/"$new"
 let a=a+1
done
chmod 700 convertor.sh
./convertor.sh

Linux rename file add sequnce number


כלים אישיים