Page 1 of 1

45 degree join error

Posted: 2015-12-13T19:30:14-07:00
by briesar
Hi, I've been following this example http://www.imagemagick.org/Usage/thumbn ... ame_joints, and everything is correct. The generated image is this (I added the red point on purpose):

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
Image

------------------------------------------------------------------------------------------------------------------

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"
Image


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

Re: 45 degree join error

Posted: 2015-12-13T19:57:00-07:00
by fmw42
Your two first images do not show up! What version of Imagemagick and what platform? Always provide that information when posting.