On Mon, 24 Aug 2009 09:58:15 -0600
Bob Meetin <[email protected]> wrote:

| Background: image is of variable size, use 120px x 120 px as an example
| 
| I know how to use composite to add a layer over a background image.  I'm 
| currently doing something like:
| 
| convert $file -resize 120 120px_border.png $file -composite $newfile
| 
| This works for a fixed size square image to add the rounded corner 
| border I made up over the background.  Is there an easier way, perhaps a 
| series of 2-3 commands that I can do to both create the overlay 
| round-corner graphic, specify the border color with transparent inner 
| then lay it above the image?
| 
| I would probably run it in a shell or php for loop.
| 
Rounded Corners
  http://www.imagemagick.org/Usage/thumbnails/#rounded

These examples does not need to know image sizes.


On the other hand this method adds rounded corner box, and does require
some size calculations.  That means at either two commands are
needed, or one command with a intermediate temporary file.

However the examples are automated, by extracting the images size and
using it to calculate the box dimensions.

  http://www.imagemagick.org/Usage/thumbnails/#rounded_border



  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
       Do not meddle in the affairs of dragons;
              for you are crunchy and good with catsup.
                                     -- Jeannie <[email protected]>
 -----------------------------------------------------------------------------
     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