Problem while applying Borders.
Posted: 2013-06-21T16:15:45-07:00
In our system we allow customers to upload "border images in .png formats" like below.
Please find the images of three borders which we allow customers to upload in our system.
http://f.cl.ly/items/0G1l3Z1c2A0w1r290C3I/keyline.png
http://f.cl.ly/items/0X3u3e3F0D1s1v3g2u0K/black.png
http://f.cl.ly/items/3C0C1G3S253J3p3y3X2M/art.png
So what i am trying to do is, trying to insert the below image in the above three borders.
http://f.cl.ly/items/0g0p0x1V1L083E3E0745/1.jpg
And you guys gave me a command for that, First i should convert the image to the desired pixels and next i have to convert the border to the desired pixels and composite both border and image to the center ,
" convert \( 1.jpg -resize "500x500" -write 1k.jpg \) \( WH.png -resize "500x500" -write WH1.png \) -gravity center -composite fi.jpg"
http://f.cl.ly/items/0g0p0x1V1L083E3E0745/1.jpg
http://f.cl.ly/items/0m3b1E3B0r1B3F3D2S1r/1k.jpg
http://f.cl.ly/items/1Y2d2y2B1G291J1p2q0B/WH.png
http://f.cl.ly/items/2M2q2S2a0i1Q0p0G2q3H/WH1.png
http://f.cl.ly/items/253Q2F3u3P1R1Q44143J/fi.jpg
So in the final fi.jpg there is some portion of the image at the 4 corners is covered by the border WH1.png.
But i am expecting the final image should be surrounded by border but not border on the image.
Please find the images of three borders which we allow customers to upload in our system.
http://f.cl.ly/items/0G1l3Z1c2A0w1r290C3I/keyline.png
http://f.cl.ly/items/0X3u3e3F0D1s1v3g2u0K/black.png
http://f.cl.ly/items/3C0C1G3S253J3p3y3X2M/art.png
So what i am trying to do is, trying to insert the below image in the above three borders.
http://f.cl.ly/items/0g0p0x1V1L083E3E0745/1.jpg
And you guys gave me a command for that, First i should convert the image to the desired pixels and next i have to convert the border to the desired pixels and composite both border and image to the center ,
" convert \( 1.jpg -resize "500x500" -write 1k.jpg \) \( WH.png -resize "500x500" -write WH1.png \) -gravity center -composite fi.jpg"
http://f.cl.ly/items/0g0p0x1V1L083E3E0745/1.jpg
http://f.cl.ly/items/0m3b1E3B0r1B3F3D2S1r/1k.jpg
http://f.cl.ly/items/1Y2d2y2B1G291J1p2q0B/WH.png
http://f.cl.ly/items/2M2q2S2a0i1Q0p0G2q3H/WH1.png
http://f.cl.ly/items/253Q2F3u3P1R1Q44143J/fi.jpg
So in the final fi.jpg there is some portion of the image at the 4 corners is covered by the border WH1.png.
But i am expecting the final image should be surrounded by border but not border on the image.