Changeset 6268
- Timestamp:
- 12/26/11 20:45:41 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/branches/ImageMagick-6.7.4/coders/png.c
r6240 r6268 2772 2772 (void) FormatLocaleString(msg,MaxTextExtent, 2773 2773 "%d, %d",(int) ping_width, (int) ping_height); 2774 (void) SetImageProperty(image," PNG:IHDR.width,height ",msg);2774 (void) SetImageProperty(image,"png:IHDR.width,height ",msg); 2775 2775 2776 2776 (void) FormatLocaleString(msg,MaxTextExtent,"%d",(int) ping_bit_depth); 2777 (void) SetImageProperty(image," PNG:IHDR.bit_depth ",msg);2777 (void) SetImageProperty(image,"png:IHDR.bit_depth ",msg); 2778 2778 2779 2779 (void) FormatLocaleString(msg,MaxTextExtent,"%d",(int) ping_color_type); 2780 (void) SetImageProperty(image," PNG:IHDR.color_type ",msg);2780 (void) SetImageProperty(image,"png:IHDR.color_type ",msg); 2781 2781 2782 2782 (void) FormatLocaleString(msg,MaxTextExtent,"%d", 2783 2783 (int) ping_interlace_method); 2784 (void) SetImageProperty(image," PNG:IHDR.interlace_method",msg);2784 (void) SetImageProperty(image,"png:IHDR.interlace_method",msg); 2785 2785 } 2786 2786 … … 3509 3509 (void) FormatLocaleString(msg,MaxTextExtent, 3510 3510 "%d tEXt/zTXt/iTXt chunks were found", num_text_total); 3511 (void) SetImageProperty(image," PNG:text ",msg);3511 (void) SetImageProperty(image,"png:text ",msg); 3512 3512 } 3513 3513 … … 3516 3516 (void) FormatLocaleString(msg,MaxTextExtent, 3517 3517 "%d were found", num_raw_profiles); 3518 (void) SetImageProperty(image," PNG:text-encoded profiles",msg);3518 (void) SetImageProperty(image,"png:text-encoded profiles",msg); 3519 3519 } 3520 3520 … … 3523 3523 (void) FormatLocaleString(msg,MaxTextExtent,"%s", 3524 3524 "chunk was found (see Chromaticity, above)"); 3525 (void) SetImageProperty(image," PNG:cHRM ",msg);3525 (void) SetImageProperty(image,"png:cHRM ",msg); 3526 3526 } 3527 3527 … … 3530 3530 (void) FormatLocaleString(msg,MaxTextExtent,"%s", 3531 3531 "chunk was found (see Background color, above)"); 3532 (void) SetImageProperty(image," PNG:bKGD ",msg);3532 (void) SetImageProperty(image,"png:bKGD ",msg); 3533 3533 } 3534 3534 … … 3537 3537 3538 3538 if (png_get_valid(ping,ping_info,PNG_INFO_iCCP)) 3539 (void) SetImageProperty(image," PNG:iCCP ",msg);3539 (void) SetImageProperty(image,"png:iCCP ",msg); 3540 3540 3541 3541 if (png_get_valid(ping,ping_info,PNG_INFO_tRNS)) 3542 (void) SetImageProperty(image," PNG:tRNS ",msg);3542 (void) SetImageProperty(image,"png:tRNS ",msg); 3543 3543 3544 3544 #if defined(PNG_sRGB_SUPPORTED) … … 3548 3548 "intent=%d (See Rendering intent)", 3549 3549 (int) intent); 3550 (void) SetImageProperty(image," PNG:sRGB ",msg);3550 (void) SetImageProperty(image,"png:sRGB ",msg); 3551 3551 } 3552 3552 #endif … … 3557 3557 "gamma=%.8g (See Gamma, above)", 3558 3558 file_gamma); 3559 (void) SetImageProperty(image," PNG:gAMA ",msg);3559 (void) SetImageProperty(image,"png:gAMA ",msg); 3560 3560 } 3561 3561 … … 3566 3566 "x_res=%.10g, y_res=%.10g, units=%d", 3567 3567 (double) x_resolution,(double) y_resolution, unit_type); 3568 (void) SetImageProperty(image," PNG:pHYs ",msg);3568 (void) SetImageProperty(image,"png:pHYs ",msg); 3569 3569 } 3570 3570 #endif … … 3575 3575 (void) FormatLocaleString(msg,MaxTextExtent,"x_off=%.20g, y_off=%.20g", 3576 3576 (double) image->page.x,(double) image->page.y); 3577 (void) SetImageProperty(image," PNG:oFFs ",msg);3577 (void) SetImageProperty(image,"png:oFFs ",msg); 3578 3578 } 3579 3579 #endif … … 3585 3585 "width=%.20g, height=%.20g", 3586 3586 (double) image->page.width,(double) image->page.height); 3587 (void) SetImageProperty(image," PNG:vpAg ",msg);3587 (void) SetImageProperty(image,"png:vpAg ",msg); 3588 3588 } 3589 3589 } … … 9778 9778 PNG filter type, zlib compression level, and zlib compression 9779 9779 strategy are possible. This is addressed by using 9780 "-define PNG:compression-strategy", etc., which takes precedence9780 "-define png:compression-strategy", etc., which takes precedence 9781 9781 over -quality. 9782 9782 … … 10008 10008 png_set_sig_bytes(ping,8); 10009 10009 10010 /* Bail out if cannot meet defined PNG:bit-depth or PNG:color-type */10010 /* Bail out if cannot meet defined png:bit-depth or png:color-type */ 10011 10011 10012 10012 if (mng_info->write_png_colortype != 0) … … 10045 10045 { 10046 10046 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 10047 " Defined PNG:bit-depth=%u, Computed depth=%u",10047 " Defined png:bit-depth=%u, Computed depth=%u", 10048 10048 mng_info->write_png_depth, 10049 10049 ping_bit_depth); … … 10053 10053 { 10054 10054 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 10055 " Defined PNG:color-type=%u, Computed color type=%u",10055 " Defined png:color-type=%u, Computed color type=%u", 10056 10056 mng_info->write_png_colortype-1, 10057 10057 ping_color_type); … … 10060 10060 10061 10061 png_warning(ping, 10062 "Cannot write image with defined PNG:bit-depth or PNG:color-type.");10062 "Cannot write image with defined png:bit-depth or png:color-type."); 10063 10063 } 10064 10064 … … 10618 10618 { 10619 10619 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 10620 " Defined PNG:bit-depth: %d",mng_info->write_png_depth);10620 " Defined png:bit-depth: %d",mng_info->write_png_depth); 10621 10621 } 10622 10622 … … 10627 10627 { 10628 10628 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 10629 " Defined PNG:color-type: %d",mng_info->write_png_colortype-1);10629 " Defined png:color-type: %d",mng_info->write_png_colortype-1); 10630 10630 } 10631 10631 … … 10823 10823 % While the datastream written is always in PNG format and normally would 10824 10824 % be given the "png" file extension, this method also writes the following 10825 % pseudo-formats which are subsets of PNG:10825 % pseudo-formats which are subsets of png: 10826 10826 % 10827 10827 % o PNG8: An 8-bit indexed PNG datastream is written. If the image has … … 10928 10928 % o Grayscale images are reduced to 1, 2, or 4 bit depth if 10929 10929 % this can be done without loss and a larger bit depth N was not 10930 % requested via the "-define PNG:bit-depth=N" option.10930 % requested via the "-define png:bit-depth=N" option. 10931 10931 % o If matte channel is present but only one transparent color is 10932 10932 % present, RGB+tRNS is written instead of RGBA … … 11116 11116 * listed in the "unused_chunks" array, above. 11117 11117 * 11118 * Chunks can be listed for exclusion via a " PNG:exclude-chunk"11118 * Chunks can be listed for exclusion via a "png:exclude-chunk" 11119 11119 * define (in the image properties or in the image artifacts) 11120 11120 * or via a mng_info member. For convenience, in addition … … 11124 11124 * The exclude-chunk define takes priority over the mng_info. 11125 11125 * 11126 * A " PNG:include-chunk" define takes priority over both the11127 * mng_info and the " PNG:exclude-chunk" define. Like the11126 * A "png:include-chunk" define takes priority over both the 11127 * mng_info and the "png:exclude-chunk" define. Like the 11128 11128 * "exclude-chunk" string, it can define "all" or "none" as 11129 11129 * well as a comma-separated list. Chunks that are unknown to … … 11565 11565 { 11566 11566 (void) LogMagickEvent(CoderEvent,GetMagickModule(), 11567 " Chunks to be excluded from the output PNG:");11567 " Chunks to be excluded from the output png:"); 11568 11568 if (mng_info->ping_exclude_bKGD != MagickFalse) 11569 11569 (void) LogMagickEvent(CoderEvent,GetMagickModule(),
Note: See TracChangeset
for help on using the changeset viewer.
