45 degree frame joints
Posted: 2012-09-14T13:13:30-07:00
Having worked through this user manual example, here's a slightly easier way to frame the image:
fill, turn, fill, turn, ... :
I say easier because it doesn't require you to calculate offsets. That means this part of the example code can be copied and works with images of any size. And if you use it in a script you don't need to script the offset calculations.
For this to work you will need to flip the bottom/right edge frame used in the example prior to using it:
fill, turn, fill, turn, ... :
Code: Select all
convert frame_template.gif \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' -rotate 90 \
-tile blackthin_btm.gif -draw 'color 1,0 floodfill' -rotate 90 \
-tile blackthin_top.gif -draw 'color 1,0 floodfill' -rotate 90 \
-tile blackthin_btm.gif -draw 'color 1,0 floodfill' -rotate 90 \
-gravity center thumbnail.gif -composite frame_filled.gif
For this to work you will need to flip the bottom/right edge frame used in the example prior to using it: