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?".
I want to achieve:
- Move individual images inside their collage tiles by X and Y (aka dragging the crop frame around the image in Photoshop).
- Do not change size of the resulting collage (3000x2322 +borders ).
Version: ImageMagick-6.9.2
Any advices? Thank you.
Just take 2 large images and try it yourself with +200+234 and with +0+0. You will see that resulting size changes instead of just cropping the image at given coords
I do not understand what you want to do. If you move the images in your example, they will overlap each other. If that is what you want to do, then create a background image (white) the size you want. Then composite the image in the places you want rather than appending. Something like
convert -size WxH xc:white \
\( image1 do your resize and crop \) \ -geometry +X1+Y1 -compose over -composite \
\( image2 do your resize and crop \) \ -geometry +X2+Y2 -compose over -composite \
result
Use WxH as your desired output image size. Do your resize and crop as you wrote in your original post. Supply X1 and Y1 for the offsets where you want the first image placed in the background. Do the same for image2 with X2 and Y2.
One other option is simply to use +smush -X to move the two images closer or +X to move them further apart horizontally. ( change to -smush to move them up or down). See http://www.imagemagick.org/script/comma ... .php#smush
convert logo: rose: -gravity center -background gray +smush -20 logo_rose_smush_m20.jpg
Change the -gravity and -background as desired.
Afterwards you can use -extent to enlarge the background area with whatever background color you want so that the result has the size you want.
See http://www.imagemagick.org/Usage/crop/#extent
convert
( "1.jpg" -resize x2322 -gravity center -crop 1500x2322+X1+Y1 +repage ^
-gravity east -background white -splice 10x0 ) ^
( "2.jpg" -resize x2322 -gravity center -crop 1500x2322+X2+Y2 +repage ) ^
+append -bordercolor white -border 20 result.jpg
where X1,Y1 is the pixel offset from the center where you want the crop to take place for 1.jpg and similarly for 2.jpg. Positive values move right and down, negative values move up and left for the crop location. See http://www.imagemagick.org/Usage/crop/