Some of the problems I reported earlier were caused by a mess-up when I attempted to upgrade/install IM on my Ubuntu desktop from source. I did not understand that it needed to be built (is that correct) for my OS. That's a level beyond me. After the fact in checking 'which convert', it was now in /usr/local/bin whereas previously in /usr/bin. I disabled the wrong install.
My hosting service upgraded to IM6.5+ but am still not quite there. -alpha transparent works on the server now. /tmp% convert test.png -matte -fill none -draw 'matte 0,0 reset' color_matte.png // this works at home or on the server But now a different problem (on the server): /tmp% convert thumbnail.gif -border 2 -alpha transparent -background none -fill white -stroke none -strokewidth 0 -draw "@rounded_corner.mvg" rounded_corner_mask.png convert: unable to open file `rounded_corner.mvg': No such file or directory @ blob.c/FileToBlob/829. /tmp% OR (on server or at home) /tmp% convert thumbnail.gif -matte -fill none -draw 'matte 0,0 reset' -background none -fill white -stroke none -strokewidth 0 -draw "@rounded_corner.mvg" rounded_corner_mask.png convert: unable to open file `rounded_corner.mvg': No such file or directory @ blob.c/FileToBlob/829. /tmp% Any ideas? -------------------------------------------------------------------------- BTW: At home% convert -list alpha Activate Deactivate Off On Reset Set On the server% convert -list alpha Activate Background Copy Deactivate Extract Off On Opaque Set Shape Transparent -Bob Anthony Thyssen wrote: > 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 > _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
