Can I turn the result of crop into a sequence?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jack-mann
Posts: 16
Joined: 2014-03-15T00:49:44-07:00
Authentication code: 6789

Can I turn the result of crop into a sequence?

Post by jack-mann »

Code: Select all

convert img.png -crop 1000x1000 -set "filename:t" "%[fx:page.y/256]" +repage +adjoin cropped_%[filename:t].png 
I would like to do some work after the first crop maybe another crop so I would like use something like

Code: Select all

convert img.png -crop 1000x1000 -set "filename:t" "%[fx:page.y/256]" +repage +adjoin -write cropped_%[filename:t].png -crop 256x256 
 -set "filename:x" "%[fx:page.x/256]" +repage +adjoin tile_%[filename:x]_%[filename:t].png
 
But I cannot get this working so I am assuming the result of a crop is not a sequence?
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Can I turn the result of crop into a sequence?

Post by Bonzo »

I would guess you are confusing Imagemagick and at least need some ( ) in your code somewhere.
I would start out with something simple first with fixed values and a couple of crops and then when it works build up to using fx and tiles.
jack-mann
Posts: 16
Joined: 2014-03-15T00:49:44-07:00
Authentication code: 6789

Re: Can I turn the result of crop into a sequence?

Post by jack-mann »

yep your right I did as you said and got the code to work.
Post Reply