-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert crashes when label is empty #5530
Comments
You are using " |
I would expect an error message to be shown when the label is an empty string. |
Thanks for the problem report. We can reproduce it and will have a patch to fix it in the GIT main branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ https://imagemagick.org/archive/beta/ by sometime tomorrow. |
ImageMagick version
6.9.10-23 Q16 x86_64 20190101
Operating system
Linux
Operating system, version and so on
Ubuntu Server 20.04
Description
Not sure if you know about this or if it's anything that needs fixing, but I have a use case where I need convert to create an image with an empty label. I found that when I include no text, it crashes. When I include null space, it runs fine. See examples in Steps to Reproduce.
Steps to Reproduce
This will cause a failure:
convert -background "#FFFFFF" -size 1920x1080 -fill "#000000" -pointsize 100 -gravity center label:'' test.jpg
Failure message:
However, running the command as such will work, no error:
convert -background "#FFFFFF" -size 1920x1080 -fill "#000000" -pointsize 100 -gravity center label:'\n' test.jpg
Images
No response
The text was updated successfully, but these errors were encountered: