Code: Select all
convert thumbnail.gif -alpha set -bordercolor none \
-compose Dst -frame 15x15+15 frame_template.gif
convert frame_template.gif \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' \
-tile-offset +0+105 -tile blackthin_btm.gif \
-draw 'color 15,105 floodfill' \
-transpose \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' \
-tile-offset +0+135 -tile blackthin_btm.gif \
-draw 'color 15,135 floodfill' \
-transpose \
-gravity center thumbnail.gif -composite frame_filled.gif
------------------------------------------------------------------------------------------------------------------
However, If try to do the same with another image, the result is different. As you can see, the bottom frame is flipped.
Code: Select all
convert cropped_image.png -alpha set -bordercolor none \
-compose Dst -frame 15x15+15 frame_template.png
convert frame_template.png \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' \
-tile-offset +0+729 -tile blackthin_btm.gif \
-draw 'color 15,729 floodfill' \
-transpose \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' \
-tile-offset +0+515 -tile blackthin_btm.gif \
-draw 'color 15,515 floodfill' \
-transpose \
-gravity center cropped_image.png \
-composite \
frame_top_filled.png"
What I'm doing wrong?, I need help please.
Here there are the rest of the images:
cropped_image.png
blackthin_btm.gif
blackthin_top.gif