45 degree join error

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
briesar
Posts: 1
Joined: 2015-12-13T18:22:47-07:00
Authentication code: 1151

45 degree join error

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 45 degree join error

Post by fmw42 »

Your two first images do not show up! What version of Imagemagick and what platform? Always provide that information when posting.
Post Reply