BP Jonsson on  wrote...
| I am new to IM, and have a couple of related questions which
| I haven't found an answer to in the documentation:
|
| 1. I want to first split an image with -crop, then apply a
|     -shave to each part/crop in one go, without saving the
|     crops to a set of files, then save a new set of files
|     with the shaved images. Can this be done?
|
No problems...

   convert  image.png \
            \( -clone 0  -crop  ... +repage  -shave ... \) \
            \( -clone 0  -crop  ... +repage  -shave ... \) \
            -delete 0    image_parts_%d.png

See Image Sequence Operators... processing images 'on-the-side'
   http://www.imagemagick.org/Usage/basics/#image_seq

Also for Crop/Shave examples see...
  http://www.imagemagick.org/Usage/crop/#crop
  http://www.imagemagick.org/Usage/crop/#shave

If you want to save each part separatally to separate filenames,
that is also posible, See...   Writing an Image, Multiple Times
     http://www.imagemagick.org/Usage/files/#write

| 2. Alternatively and additionally, can I individually
|     manipulat crops/parts of a cropped image in PerlMagick?
|
Perl magick is exactly the same, make clones to a separate image
sequence and crop.  It is just instead of parenthesis, it uses a
separate variable for each sequence, which in perl is simply a pointer
to an array of images.

| 3. How do save parts/crops to individual files in
|     PerlMagick?
|
They are in separate variables, so just write them separatally.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
                   A /  \  o       `` Impressive...
                  /</    \/|>         Obi Wan has taught you well. ''
                 / \       /\
                /___\      \ \                           -- StarWars
 -----------------------------------------------------------------------------
     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