I sent this in an email directly to Anthony before finding this list, but I figured I might as well do the proper thing and post directly to the list, so here goes.
All I have is a non-transparent corner piece of a real picture frame and I want to use it wrap around an image. Frame image that I want to wrap: http://beta.posters2prints.com/scripts/fancy_add.jpg Image that I want to wrap: http://beta.posters2prints.com/scripts/thumbnail.jpg So first I convert the frame image white to transparency: convert fancy_add.jpg -bordercolor white -border 1x1 -matte \ -fill none -fuzz 20% -draw 'matte 0,0 floodfill' \ -shave 1x1 fancy_add.gif Then, I place the corners all the way around the image, flipping and flopping as neccessary: convert thumbnail.jpg -matte -compose Copy \ -bordercolor none -border 2 -bordercolor none -border 3 \ -bordercolor none -border 1 -bordercolor none -border 2 \ -bordercolor none -border 2 -bordercolor none -border 3 \ -bordercolor none -border 1 -compose Over \ \( fancy_add.gif -flop \) -gravity NorthWest -composite \ \( fancy_add.gif -flip -flop \) -gravity SouthWest -composite \ \( fancy_add.gif \) -gravity NorthEast -composite \ \( fancy_add.gif -flip \) -gravity SouthEast -composite \ thumbnail_frame.gif Now, two problems that I need the lists help with: 1) How do I adjust the border lengths so that I know there will be only a slight bit of overlap between the frame and the image. Keep in mind that the frame sizes are going to differ, some are thick, some are skinny. I have the width of the frame (in inches) stored in the database, so my initial thoughts were to figure out some sort of conversion scheme like 1" = 2, 2" = 4, 3" = 6 etc. etc. 2) Bigger problem. Essentially, how do I slice a piece of the frame, say top left, and use it to fill in the missing spaces between the corners so as to totally wrap the frame in the image. Thanks for any help. As I told Anthony, I'd be glad to donate via paypal to the person or chosen cause for help with this. Michael _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
