Page 1 of 1

Multiple operations in one command?

Posted: Sat Jan 28, 2017 11:04 pm
by nah0y
Hello!

Is it possible to execute multiple operations in one command?
I need a square thumbnail of an image, so I want to resize first, and then crop the image.
But I'd like to do that in one take :)

The issue is that when I resize the image, I need to know the resized size before I can give the crop command the correct values...

Thanks.

Re: Multiple operations in one command?

Posted: Sun Jan 29, 2017 10:52 am
by xnview
Yes, multiple operations are possible: Put all your operations on the same command line.

Re: Multiple operations in one command?

Posted: Sun Jan 29, 2017 2:40 pm
by nah0y
Thanks for the answer :)

Yes but in the case of the square thumbnail I want, I can't do that in one command right?

Because I first need to resize, then crop but the crop method takes xywh and I don't know the new width/height after a resize (if I use ratio resize 0 500).
But maybe the other way around? First crop then resize? Same problem, because I can't crop without first giving width/height that I don't have without calling -info on my image.

Re: Multiple operations in one command?

Posted: Sun Jan 29, 2017 4:08 pm
by xnview
oh ok, yes in your case it's difficult to use only one command