Bug in TXT reading?

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Bug in TXT reading?

Post by Drarakel »

Code: Select all

convert rose: rose.txt
convert rose.txt rose2.png
Results in this image:
Image
The TXT file itself is fine, but it seems that only half of the image height is recreated with TXT: as input.
IIRC, this error came with IM v6.6.2.0 (versions from before are ok for me).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Bug in TXT reading?

Post by magick »

We cannot reproduce the problem you posted. We're using ImageMagick 6.6.2-3.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: Bug in TXT reading?

Post by Drarakel »

It seems to be a problem only in Windows. I had tested various versions - but all on Windows XP.
If I convert rose.txt to a Unix TXT format, ImageMagick can read it again.

Perhaps you can reproduce it with my Windows 'rose.txt': (Edit: Link deleted)
(In a text editor, it should be identical to your rose.txt.)

I can use a very simple image (with a current Q16 version - in Windows!):
convert xc:red txt:- | convert - txt:
# ImageMagick pixel enumeration: 1,1,65535,rgb
0,0: (65535,65535,65535) #FFFFFFFFFFFF white

Older versions show the correct values:
convert xc:red txt:- | convert - txt:
# ImageMagick pixel enumeration: 1,1,65535,rgb
0,0: (65535, 0, 0) #FFFF00000000 red
Last edited by Drarakel on 2010-06-12T16:54:29-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Bug in TXT reading?

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.6.2-4 Beta available by sometime tomorrow. Thanks for the problem report.
Drarakel
Posts: 547
Joined: 2010-04-07T12:36:59-07:00
Authentication code: 8675308

Re: Bug in TXT reading?

Post by Drarakel »

Thank you!
Post Reply