Page 1 of 1

"mogrify" not working for batch image editing

Posted: 2019-02-28T00:30:26-07:00
by Mukesh Dasharath
Version
ImageMagick-7.0.4-Q16

OS
windows-10 -64bits

Command
magick mogrify "D:\imgk_grdnt\*.jpg" -fuzz 5% -trim -resize 660x700 -gravity center -extent 720x1125 -define gradient: -size 720x350 -gravity south gradient:white-#a7a7a7 -compose linear_burn -composite "D:\imgk_grdnt\*.jpg"

by using above command i m trying to edit bulk images but mogrify command is not working. it is showing "mogrify: no encode delegate for this image format `XC' @ error/constitute.c/WriteImage/1158.
mogrify: unrecognized option `-compose' @ error/mogrify.c/MogrifyImageCommand/4512."
Please Help.

Re: "mogrify" not working for batch image editing

Posted: 2019-02-28T03:09:57-07:00
by snibgo
See "magick mogrify" documentation at http://www.imagemagick.org/script/mogrify.php

It takes one argument for input files that may contain a wildcard at the end of the command.

Your command creates two gradient images, but I don't know what you want to do with those.

I suggest you write a simple "magick" command, not "magick mogrify".

Re: "mogrify" not working for batch image editing

Posted: 2019-02-28T03:32:24-07:00
by Mukesh Dasharath
I have a lot of footwear images with the white background, I want to give depth in those images by using gradient shade. it's working for a single image but not for multiple images.

Please help..