Ignore:
Timestamp:
12/15/11 07:20:50 (17 months ago)
Author:
glennrp
Message:

Fixed bug with scaling background while writing sub-8-bit grayscale images.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/trunk/coders/png.c

    r6183 r6207  
    96659665         { 
    96669666 
    9667          ping_background.gray=(png_uint_16) 
    9668            ((maxval/255.)*((GetPixelInfoIntensity(&image->background_color))) 
    9669                                     +.5); 
     9667         ping_background.gray=(png_uint_16) ((maxval/65535.)* 
     9668           (ScaleQuantumToShort(((GetPixelInfoIntensity( 
     9669           &image->background_color))) +.5))); 
    96709670 
    96719671         if (logging != MagickFalse) 
Note: See TracChangeset for help on using the changeset viewer.