ImageMagick v7 image stacking
Posted: 2016-06-03T22:44:23-07:00
First day trying to use ImageMagick and I'm running into the issue of just about all documentation being for IM6.
I am trying to create a collage by stacking images (with different sizes, rotations, etc so append doesn't work for this). Ideally this images would be jpg as I plan to use camera output but I guess they could also be converted... I mean magicked.
I've tried working off examples on this page as well as going through documentation but I'm ready for some help.
Images are just standard images that came with the install.
My code is below
ImageMagick 7.0.1-9 Q16 x64 2016-06-03
Windows 10
csh file
Extra info:
-The plan is running a photo booth for my sisters wedding. Using something like digicamcontrol + imageMagick I hope to be able to automate the shooting of a number of pics. Adding them over a nice background and (hopefully) printing them or emailing them. Obviously this question is just about creating the photo collage with imageMagick.
-For those that don't speak windows ^ is equivalent \ (took me a while to figure out) and rem comments the line.
Thanks.
I am trying to create a collage by stacking images (with different sizes, rotations, etc so append doesn't work for this). Ideally this images would be jpg as I plan to use camera output but I guess they could also be converted... I mean magicked.
I've tried working off examples on this page as well as going through documentation but I'm ready for some help.
Images are just standard images that came with the install.
My code is below
Code: Select all
@ECHO OFF
SET SOURCE_PATH=C:\Program Files\ImageMagick-7.0.1-Q16\images\
rem append works as expected with one stacked above the other
magick "%SOURCE_PATH%objects.JPG" "%SOURCE_PATH%rose.jpg" -append append.jpg
rem ends with objects.jpg scaled to 200 pixels wide
magick -size +1000+1000 ^
"%SOURCE_PATH%objects.JPG" -geometry +750+750 -resize 100x100 -composite ^
"%SOURCE_PATH%rose.jpg" -geometry +250+250 -resize 200x200 -composite ^
append2.jpg
rem ends with a blank white canvas max dimensions 200 pixels
magick -size +1000+1000^
"%SOURCE_PATH%objects.JPG" -page +750+750 -resize 1000x1000 ^
"%SOURCE_PATH%rose.jpg" -page +250+250 -resize 200x200 ^
-layers flatten append3.jpg
Windows 10
csh file
Extra info:
-The plan is running a photo booth for my sisters wedding. Using something like digicamcontrol + imageMagick I hope to be able to automate the shooting of a number of pics. Adding them over a nice background and (hopefully) printing them or emailing them. Obviously this question is just about creating the photo collage with imageMagick.
-For those that don't speak windows ^ is equivalent \ (took me a while to figure out) and rem comments the line.
Thanks.