I need to get a specific crop of an image and put it on another image in a specific place and resize.
I can crop the first image and save it in a file in one command, and then I can collect two images in another command. However, I would like to do this in one team - is this possible with graphics and how?
Here are two commands that I use atm:
gm convert -crop 1457x973+254+413 amber.jpg tmp.jpg gm composite -geometry 6000x4000+600+600 tmp.jpg lux_bg.png out.jpg
The reason for this is to refuse to write to disk, and then read again when all this can be done in memory. For example, with ImageMagick, the same commands will be written to the same command as follows:
convert lux_bg.png \( amber.jpg -crop 1457x973+254+413 \) -geometry 6000x4000+600+600 -composite out.jpg
I am doing this with ImageMagick, but would like to do it with GraphicsMagick.
source share