upgrade broke my code

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
faustri
Posts: 1
Joined: 2018-06-29T00:19:45-07:00
Authentication code: 1152

upgrade broke my code

Post by faustri » 2018-06-29T00:41:59-07:00

I recently upgraded my void linux through xbps and now have ImageMagick-6.9.10.0_2, and it broke my wallpaper clock:

Code: Select all

convert -size 300x300 xc:black -fill white -stroke black \
    -draw "stroke white fill none  circle 100,100 150,100 \
        push graphic-context
            stroke white fill white translate 100,100 rotate 0 line 0,0  50,0
                font-size 10 text-antialias 1 stroke none text 60,0 '6       $(date +%d" "%b)'
            stroke white fill white rotate 30  line 0,0 50,0  stroke none text 60,0 '8'
            stroke white fill white rotate 60  line 0,0 50,0  stroke none text 60,0 '12'
            stroke white fill white rotate 60  line 0,0 50,0  stroke none text 60,0 '16'
            stroke white fill white rotate 30  line 0,0 50,0  stroke none text 60,0 '18'
            stroke white fill white rotate 90  line 0,0 50,0  stroke none text 60,0 '24'
        pop graphic-context
        " clock.jpg
Which makes the broken clock:

Image

If I remove the text-part of the code, the lines are right:

Code: Select all

convert -size 300x300 xc:black -fill white -stroke black \
    -draw "stroke white fill none  circle 100,100 150,100 \
        push graphic-context
            stroke white fill white translate 100,100 rotate 0 line 0,0  50,0
                font-size 10 text-antialias 1 stroke none text 60,0 '6       $(date +%d" "%b)'
            stroke white fill white rotate 30  line 0,0 50,0
            stroke white fill white rotate 60  line 0,0 50,0
            stroke white fill white rotate 60  line 0,0 50,0
            stroke white fill white rotate 30  line 0,0 50,0
            stroke white fill white rotate 90  line 0,0 50,0
        pop graphic-context
        " clock.jpg
This make the intended clock, but lacks the numbers around the clock.

Image

Help?

User avatar
magick
Site Admin
Posts: 10865
Joined: 2003-05-31T11:32:55-07:00

Re: upgrade broke my code

Post by magick » 2018-06-29T17:06:25-07:00

There is a transient bug in the drawing engine in the 6.9.10-0 release of ImageMagick. The current release, 6.9.10-3 returns expected results.

Post Reply