Page 1 of 1
Composite then crop and resize.
Posted: 2016-11-02T16:48:52-07:00
by chaoscarnage
Code: Select all
convert /var/images/cf4d0728852f660282decdb97290e9a199.png -composite /var/images/b1691d10038f45282924804a22204.png -crop +repage -resize 48x48 /var/images/59913038d72f297dfef26c3207.png
What I am trying to do:
Take this image, add this image to it, then crop and resize.
What it does now:
Takes the original image and saves it to the specified location. Does not composite or crop or resize.
Re: Composite then crop and resize.
Posted: 2016-11-02T16:57:40-07:00
by snibgo
"-composite" needs two images before it.
"-crop" needs a geometry argument, eg 10x10+0+0.
Re: Composite then crop and resize.
Posted: 2016-11-02T16:59:18-07:00
by chaoscarnage
snibgo wrote:"-composite" needs two images before it.
"-crop" needs a geometry argument, eg 10x10+0+0.
Thank you, I meant to use Trim in this case. That should fix one issue. I will test and get back to you in a few moments.
Re: Composite then crop and resize.
Posted: 2016-11-02T17:27:20-07:00
by chaoscarnage
Okay, new question. Say I want to do 250 of these in a batch. Is there anyway to send them off to a server to have it done?
I know about
I was using that for a ton of images being compiled into one. However, I am unaware if there is a method for me to build the commands and build a bunch of images at once.
Re: Composite then crop and resize.
Posted: 2016-11-02T18:07:00-07:00
by snibgo
"Send them off to a server to have it done?" I would think the cost (time) of the comms would far exceed just doing the work.
chaoscarnage wrote:... to build the commands and build a bunch of images at once.
Sorry, I don't know what you mean. You can process in loops of course, but that isn't "at once".
Re: Composite then crop and resize.
Posted: 2016-11-02T18:58:15-07:00
by fmw42
You can use mogrify to do that on multiple images, if the overlay image is the same for all background images. See
http://www.imagemagick.org/Usage/basics ... fy_compose. If not, then you would have to write script loop.