Convert, Edit, and Compose Images
::Turn off displaying the code on the screen
:: Read all the jpg images from the directory, crop them and save to a different directory
for %%f in (%1\*.jpg) do ( convert "%%f" -gravity center -crop 200x200+0+0 "%2\%%~nf.jpg" )
anthony wrote:We will need a example of the input and what you want.
It really depends on just what 'surrounds' the area you want to crop to.
newbie1 wrote:How do i use your multicrop script with cgywin and imagemagick?
and for your suggestions to -scale to average the image down to 1 row, how do i do that ?
i tried using -scale 1000% example.jpg and this only make the whole image bigger
sorry for all these question as im really new into this kind of programming
when i put this command in command prompt this error comes out.
convert 1.jpg -fuzz 10%% -trim -write 1_trim.png -scale x1!
convert.exe: option requires an argument `-scale' @ error/convert.c/ConvertImageCommand/2432.
However, there is still a correct output and i wonder is there a solution to remove this so called error?
cd C:\Users\user\Desktop\New\New folder
convert *.jpg -fuzz 10%% -trim -write %%02d_trim.png -scale "x1!" txt:
convert *_trim.png -crop 209x329+0+0 -fuzz 10%% -trim +repage %%02d_left.png
convert *_trim.png -crop 173x336+227+0 -fuzz 10%% -trim +repage %%02d_right.png
Users browsing this forum: Bing [Bot], Google [Bot] and 27 guests