Empty txt: infinite loop
Posted: 2014-02-06T14:27:13-07:00
When x.txt contains ...
... ie no pixels at all, the command ...
... goes into an infinite loop, eating more and more memory. I suppose it would eventually crash. I suggest a quick fatal error would be more graceful.
Code: Select all
# ImageMagick pixel enumeration: 0,1,65535,srgba
Code: Select all
convert x.txt x.png