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

Submitter:  Heiko Weiss <brubbel>
Submitted:  Mon 20 Sep 2004 09:11:47 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned 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>
Group 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>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-06 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-09-20 brubbel Attached File- Added TestPNG.zip, #1686

Back to the top

Powered by Savane 3.12