David Harmon on  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.
| 
FYI original problem..
| convert ( cross1.jpg -crop 50%x100% +repage -resize 900x1800 -gravity
| center -crop 900x600+0+0 +repage +swap +append ) ( cross2.jpg -crop
|  50%x100% +repage -resize 900x1800 -gravity center -crop 900x600+0+0
| +repage +swap +append ) -append parx.jpg
|

I did not do the resize or center crop, as the rose image was a little
small for this.


Okay figured out the problem...

You turn on 'center' gravity in the first parenthesis.

This turns off 'tile cropping' for the first crop of the second parenthesis!

That may be classed as a bug,  or a unusual feature.  What I have no idea!
     EG:  gravity != none   means   no tile cropping!

Remember parenthesis is for image sequences, it does not limit or reset
the scope of options.   This isn't a true programming language after
all.

To fix it in your case
   Add   +gravity  between the parenthesis,
   This turns it off by setting it back to its default value of 'none'.


  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
   The life of processes in the UNIX environment is wierd.  Parent
   processes normally out live their children, and in fact processes who
   die become zombies until either their parents reconise they are in
   fact dead, or they themselves die.  -- Treaty on UNIX Process Handling
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to