You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
convert lena.png label:'' +swap -append xyz.png
convert: no such image `lena.png' @ error/mogrify.c/MogrifyImageList/8836.
urban-warrior
changed the title
Unexpected warning when appeding empty label with +swap
Unexpected warning when appending empty label with +swap
Jan 26, 2025
label:'' does not return an image and +swap requires an image sequence. The no such image exception is misleading so we added patch to return invalid image index instead, the same exception you can expect from IMv7.
ImageMagick version
6.9.11-60
Operating system
Linux
Operating system, version and so on
Debian 12 (Bookworm)
Description
When running
convert-im6
withlabel:''
(empty label) followed by the+swap
operator, ImageMagick succeeds with an unexpected warning.Steps to Reproduce
Run the following command:
convert-im6 /path/to/input.png label:'' +swap -append /tmp/output.png
Result: the command completes successfully but generates the following warning:
Run the same command with a non-empty label:
convert-im6 /path/to/input.png label:'a' +swap -append /tmp/output.png
Result: success and no warning.
Run the same command without +swap:
convert-im6 /path/to/input.png label:'' -append /tmp/output.png
Result: success and no warning.
Images
The error seems to be independent of input. The following command also issues a warning:
convert-im6 -size 100x100 xc:white label:'' +swap -append /tmp/output.png
The text was updated successfully, but these errors were encountered: