Merge remote-tracking branch 'origin/7.28'
Conflicts: configure.in
This commit is contained in:
commit
952ac483b6
@ -1,4 +1,7 @@
|
|||||||
30/1/12 started 7.28.0
|
13/3/12 started 7.28.2
|
||||||
|
|
||||||
|
13/3/12 started 7.28.1
|
||||||
|
- add ICC profile read/write for png files
|
||||||
|
|
||||||
30/1/12 started 7.28.0
|
30/1/12 started 7.28.0
|
||||||
- version bump
|
- version bump
|
||||||
|
@ -69,8 +69,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*/
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
@ -251,13 +251,24 @@ png2vips_header( Read *read, VipsImage *out )
|
|||||||
interpretation = VIPS_INTERPRETATION_sRGB;
|
interpretation = VIPS_INTERPRETATION_sRGB;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expand palette images, expand transparency too.
|
/* Expand palette images.
|
||||||
*/
|
*/
|
||||||
if( color_type == PNG_COLOR_TYPE_PALETTE )
|
if( color_type == PNG_COLOR_TYPE_PALETTE )
|
||||||
png_set_palette_to_rgb( read->pPng );
|
png_set_palette_to_rgb( read->pPng );
|
||||||
if( png_get_valid( read->pPng, read->pInfo, PNG_INFO_tRNS ) )
|
|
||||||
|
/* Expand transparency images too.
|
||||||
|
*/
|
||||||
|
if( png_get_valid( read->pPng, read->pInfo, PNG_INFO_tRNS ) ) {
|
||||||
png_set_tRNS_to_alpha( read->pPng );
|
png_set_tRNS_to_alpha( read->pPng );
|
||||||
|
|
||||||
|
/* Some PNGs have an alpha but do not set color_type correctly
|
||||||
|
* .. make sure we add space for an alpha.
|
||||||
|
*/
|
||||||
|
if( color_type == PNG_COLOR_TYPE_GRAY ||
|
||||||
|
color_type == PNG_COLOR_TYPE_RGB )
|
||||||
|
bands += 1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Expand <8 bit images to full bytes.
|
/* Expand <8 bit images to full bytes.
|
||||||
*/
|
*/
|
||||||
if( color_type == PNG_COLOR_TYPE_GRAY &&
|
if( color_type == PNG_COLOR_TYPE_GRAY &&
|
||||||
|
Loading…
Reference in New Issue
Block a user