I just figured it out.
The error messages are caused by the +swap arguments within the parenthesis.
You have only one image in that stack so there's no other image to swap
with (or at least I think that's the reason).
If I'm correct, then the +swap and +append have no effect.
It alos seems that the +repage has no effect in the intermediate
transformations.
So this seems to work:
convert \( 664lh76.jpg -crop 50%x0 -resize 900x1800 -gravity center
-crop 900x600+0+0 \) \( 664lh76.jpg -chop 50%x0 -resize 900x1800
-gravity center -crop 900x600+0+0 \) -append +repage parx.jpg
Since I didn't understand exactly which half you wanted on top, you
might have to reverse the two stacks, which differ only by -crop or
-chop. Or just add a +swap after the two stacks:
convert (blah) (bleh) +swap -append +repage parx.jpg
having fun with IM,
dado
David Harmon wrote:
On Fri, 01 Jun 2007 09:09:10 +1000, "Anthony Thyssen" wrote:
Hmmm making cross1.jpg a negated rose, and cross2.jpg a normal rose
image....
convert \( rose: -negate -crop 50%x100% +swap +append \) \
\( rose: -crop 50%x100% +swap +append \) \
-append x:
But you eliminated my (attempted) rescaling.
convert ( rose: -crop 50%x100% +repage -resize 900x1800 -gravity center
-crop 900x600+0+0 +repage +swap +append ) ( rose: -crop 50%x100%
+repage -resize 900x1800 -gravity center -crop 900x600+0+0 +repage +swap
+append ) -append parx.jpg
Same kind of unwanted result in the lower half, and the message:
convert: no such image `ROSE'.
(I am doing the resizing because I want a fixed output size 1800x1200
to print on 6"x4" paper at 300 pixels/inch. The originals are all
different sizes and aspect ratio, and I want to fit as much as possible
cropped from the center of each half of each L/R pair. Perhaps there is
a better set of IM command options to achieve that.)
I was getting the same behavior regardless of which of my sample
images I started from, so I didn't think it mattered. But these are
representative
cross1.jpg = http://i14.tinypic.com/66t6fjr.jpg
cross2.jpg = http://i10.tinypic.com/664lh76.jpg
Thanks for the help.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users