length=(png_uint_32) StringToLong(sp);
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " length: %lu",(unsigned long) length);
+
while (*sp != ' ' && *sp != '\n')
sp++;
#if defined(PNG_oFFs_SUPPORTED)
if (png_get_valid(ping,ping_info,PNG_INFO_oFFs))
{
- image->page.x=png_get_x_offset_pixels(ping, ping_info);
- image->page.y=png_get_y_offset_pixels(ping, ping_info);
+ image->page.x=(ssize_t) png_get_x_offset_pixels(ping, ping_info);
+ image->page.y=(ssize_t) png_get_y_offset_pixels(ping, ping_info);
if (logging != MagickFalse)
if (image->page.x || image->page.y)
(void) SetImageProperty(image,text[i].key,value);
if (logging != MagickFalse)
+ {
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " length: %lu",(unsigned long) length);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Keyword: %s",text[i].key);
+ }
value=DestroyString(value);
}
if (LocaleCompare(image_info->magick,"PNG32") == 0)
(void) SetImageType(image,TrueColorMatteType);
+ if (logging != MagickFalse)
+ (void) LogMagickEvent(CoderEvent,GetMagickModule(),
+ " page.w: %.20g, page.h: %.20g,page.x: %.20g, page.y: %.20g.",
+ (double) image->page.width,(double) image->page.height,
+ (double) image->page.x,(double) image->page.y);
+
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),"exit ReadPNGImage()");
{
if (length > 8)
{
- image->page.x=mng_get_long(p);
- image->page.y=mng_get_long(&p[4]);
+ image->page.x=(ssize_t) mng_get_long(p);
+ image->page.y=(ssize_t) mng_get_long(&p[4]);
if ((int) p[8] != 0)
{