bugDotGNU Portable.NET - Bugs: bug #10445, Exception in PNG Reading loading...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10445: Exception in PNG Reading loading an image

Submitted by:  Heiko Weiss <brubbel>
Submitted on:  Mon 20 Sep 2004 09:11:47 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Wed 06 Oct 2004 01:48:43 PM UTC, comment #2:

Fixed in CVS on 6th Oct 2004.

Png specs are waaay toooo vague - wasted half my day.

Gopal.V <t3rmin4t0r>
Project Administrator
Sun 26 Sep 2004 02:53:25 AM UTC, comment #1:

I believe this may be related to the Adam7 Interlacing some how. PNG files without, do not appear to have this exception thrown. However the test image2 provided in the archive below spits out a 255 value on exception and my test image from GIMP a 170 value. Both of these numbers would be correct to have the exception thrown per the PNG specs as there are only 5 filter values, 0-4

File info for the one that is throwing the exception is:
Image Width: 54 Image Length: 52
Bitdepth (Bits/Sample): 8
Channels (Samples/Pixel): 4
Pixel depth (Pixel Depth): 32
Colour Type (Photometric Interpretation): RGB with alpha channel
Image filter: Single row per byte filter
Interlacing: Adam7 interlacing
Compression Scheme: Deflate method 8, 32k window
Resolution: 2834, 2834 (pixels per meter)
FillOrder: msb-to-lsb
Byte Order: Network (Big Endian)
Number of text strings: 1 of 9
Comment (xTXt deflate compressed):

I was able to duplicate this by creating an image in GIMP and saving with Adam7 Interlace, file info for that file is:

Image Width: 256 Image Length: 256
Bitdepth (Bits/Sample): 8
Channels (Samples/Pixel): 3
Pixel depth (Pixel Depth): 24
Colour Type (Photometric Interpretation): RGB
Image filter: Single row per byte filter
Interlacing: Adam7 interlacing
Compression Scheme: Deflate method 8, 32k window
Resolution: 2834, 2834 (pixels per meter)
FillOrder: msb-to-lsb
Byte Order: Network (Big Endian)
Number of text strings: 0 of 0

Deryk Robosson <drobosson>
Project Member
Mon 20 Sep 2004 09:11:47 AM UTC, original submission:

In some cases the png reader throws an exception
System.FormatException: invalid filter type byte f
or scanline 0: 255
while loading an image.

Example with images atached.
Image1.png works well. Image2.png throws the exception.

Heiko Weiss <brubbel>
Project Member

 

Attached Files
file #1782:  TestPNG.zip added by brubbel (10KiB - application/x-zip-compressed - Sample which throws the exception.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Oct 2004 01:48:43 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Mon 20 Sep 2004 09:11:47 AM UTCbrubbelAttached File-=>Added TestPNG.zip, #1686

Back to the top


Powered by Savane 3.1-cleanup1