ImageMagick / ImageMagick6

🧙‍♂️ ImageMagick 6
https://legacy.imagemagick.org
Other
194 stars 80 forks source link

Negative x values dont work #296

Closed Rafterman1217 closed 6 months ago

Rafterman1217 commented 6 months ago

ImageMagick version

6.9.10-23

Operating system

Linux

Operating system, version and so on

Ubuntu 20.04

Description

Hey

there seems to be an issue with negative x values, everytime x is below 0 it will just use the given y parameter as x value, but only when working with text.

Steps to Reproduce

convert -size 1000x1000 xc:white -font Nimbus-Roman-Bold -pointsize 50 -fill red -draw "text 50,50 'Hans Peter'" test.png -> works convert -size 1000x1000 xc:white -font Nimbus-Roman-Bold -pointsize 50 -fill red -draw "text -50,100 'Hans Peter'" test.png -> will use the y value instead of the given -50

this happens every time an x value is below 0.

interestingly the vice versa case (negativ y) works without any issues (as long as x stays positive)

convert -size 1000x1000 xc:white -font Nimbus-Roman-Bold -pointsize 50 -fill red -draw "text 0,-5 'gyjp'" test.png

Images

No response

urban-warrior commented 6 months ago

Your command behaves as expected with the latest ImageMagick release, 6.9.13-1. Consider upgrading your release of ImageMagick.