Changeset 6268


Ignore:
Timestamp:
12/26/11 20:45:41 (17 months ago)
Author:
cristy
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ImageMagick/branches/ImageMagick-6.7.4/coders/png.c

    r6240 r6268  
    27722772     (void) FormatLocaleString(msg,MaxTextExtent, 
    27732773         "%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); 
    27752775 
    27762776     (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); 
    27782778 
    27792779     (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); 
    27812781 
    27822782     (void) FormatLocaleString(msg,MaxTextExtent,"%d", 
    27832783        (int) ping_interlace_method); 
    2784      (void) SetImageProperty(image,"PNG:IHDR.interlace_method",msg); 
     2784     (void) SetImageProperty(image,"png:IHDR.interlace_method",msg); 
    27852785   } 
    27862786 
     
    35093509         (void) FormatLocaleString(msg,MaxTextExtent, 
    35103510            "%d tEXt/zTXt/iTXt chunks were found", num_text_total); 
    3511          (void) SetImageProperty(image,"PNG:text                 ",msg); 
     3511         (void) SetImageProperty(image,"png:text                 ",msg); 
    35123512       } 
    35133513 
     
    35163516         (void) FormatLocaleString(msg,MaxTextExtent, 
    35173517            "%d were found", num_raw_profiles); 
    3518          (void) SetImageProperty(image,"PNG:text-encoded profiles",msg); 
     3518         (void) SetImageProperty(image,"png:text-encoded profiles",msg); 
    35193519       } 
    35203520 
     
    35233523         (void) FormatLocaleString(msg,MaxTextExtent,"%s", 
    35243524            "chunk was found (see Chromaticity, above)"); 
    3525          (void) SetImageProperty(image,"PNG:cHRM                 ",msg); 
     3525         (void) SetImageProperty(image,"png:cHRM                 ",msg); 
    35263526       } 
    35273527 
     
    35303530         (void) FormatLocaleString(msg,MaxTextExtent,"%s", 
    35313531            "chunk was found (see Background color, above)"); 
    3532          (void) SetImageProperty(image,"PNG:bKGD                 ",msg); 
     3532         (void) SetImageProperty(image,"png:bKGD                 ",msg); 
    35333533       } 
    35343534 
     
    35373537 
    35383538     if (png_get_valid(ping,ping_info,PNG_INFO_iCCP)) 
    3539         (void) SetImageProperty(image,"PNG:iCCP                 ",msg); 
     3539        (void) SetImageProperty(image,"png:iCCP                 ",msg); 
    35403540 
    35413541     if (png_get_valid(ping,ping_info,PNG_INFO_tRNS)) 
    3542         (void) SetImageProperty(image,"PNG:tRNS                 ",msg); 
     3542        (void) SetImageProperty(image,"png:tRNS                 ",msg); 
    35433543 
    35443544#if defined(PNG_sRGB_SUPPORTED) 
     
    35483548            "intent=%d (See Rendering intent)", 
    35493549            (int) intent); 
    3550          (void) SetImageProperty(image,"PNG:sRGB                 ",msg); 
     3550         (void) SetImageProperty(image,"png:sRGB                 ",msg); 
    35513551       } 
    35523552#endif 
     
    35573557            "gamma=%.8g (See Gamma, above)", 
    35583558            file_gamma); 
    3559          (void) SetImageProperty(image,"PNG:gAMA                 ",msg); 
     3559         (void) SetImageProperty(image,"png:gAMA                 ",msg); 
    35603560       } 
    35613561 
     
    35663566            "x_res=%.10g, y_res=%.10g, units=%d", 
    35673567            (double) x_resolution,(double) y_resolution, unit_type); 
    3568          (void) SetImageProperty(image,"PNG:pHYs                 ",msg); 
     3568         (void) SetImageProperty(image,"png:pHYs                 ",msg); 
    35693569       } 
    35703570#endif 
     
    35753575         (void) FormatLocaleString(msg,MaxTextExtent,"x_off=%.20g, y_off=%.20g", 
    35763576            (double) image->page.x,(double) image->page.y); 
    3577          (void) SetImageProperty(image,"PNG:oFFs                 ",msg); 
     3577         (void) SetImageProperty(image,"png:oFFs                 ",msg); 
    35783578       } 
    35793579#endif 
     
    35853585            "width=%.20g, height=%.20g", 
    35863586            (double) image->page.width,(double) image->page.height); 
    3587          (void) SetImageProperty(image,"PNG:vpAg                 ",msg); 
     3587         (void) SetImageProperty(image,"png:vpAg                 ",msg); 
    35883588       } 
    35893589   } 
     
    97789778    PNG filter type, zlib compression level, and zlib compression 
    97799779    strategy are possible.  This is addressed by using 
    9780     "-define PNG:compression-strategy", etc., which takes precedence 
     9780    "-define png:compression-strategy", etc., which takes precedence 
    97819781    over -quality. 
    97829782 
     
    1000810008    png_set_sig_bytes(ping,8); 
    1000910009 
    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 */ 
    1001110011 
    1001210012  if (mng_info->write_png_colortype != 0) 
     
    1004510045            { 
    1004610046              (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
    10047                   "  Defined PNG:bit-depth=%u, Computed depth=%u", 
     10047                  "  Defined png:bit-depth=%u, Computed depth=%u", 
    1004810048                  mng_info->write_png_depth, 
    1004910049                  ping_bit_depth); 
     
    1005310053            { 
    1005410054              (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
    10055                   "  Defined PNG:color-type=%u, Computed color type=%u", 
     10055                  "  Defined png:color-type=%u, Computed color type=%u", 
    1005610056                  mng_info->write_png_colortype-1, 
    1005710057                  ping_color_type); 
     
    1006010060 
    1006110061      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."); 
    1006310063    } 
    1006410064 
     
    1061810618        { 
    1061910619          (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); 
    1062110621        } 
    1062210622 
     
    1062710627        { 
    1062810628          (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); 
    1063010630        } 
    1063110631 
     
    1082310823%  While the datastream written is always in PNG format and normally would 
    1082410824%  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: 
    1082610826% 
    1082710827%    o PNG8:    An 8-bit indexed PNG datastream is written.  If the image has 
     
    1092810928%   o  Grayscale images are reduced to 1, 2, or 4 bit depth if 
    1092910929%      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. 
    1093110931%   o  If matte channel is present but only one transparent color is 
    1093210932%      present, RGB+tRNS is written instead of RGBA 
     
    1111611116   * listed in the "unused_chunks" array, above. 
    1111711117   * 
    11118    * Chunks can be listed for exclusion via a "PNG:exclude-chunk" 
     11118   * Chunks can be listed for exclusion via a "png:exclude-chunk" 
    1111911119   * define (in the image properties or in the image artifacts) 
    1112011120   * or via a mng_info member.  For convenience, in addition 
     
    1112411124   * The exclude-chunk define takes priority over the mng_info. 
    1112511125   * 
    11126    * A "PNG:include-chunk" define takes  priority over both the 
    11127    * mng_info and the "PNG:exclude-chunk" define.  Like the 
     11126   * A "png:include-chunk" define takes  priority over both the 
     11127   * mng_info and the "png:exclude-chunk" define.  Like the 
    1112811128   * "exclude-chunk" string, it can define "all" or "none" as 
    1112911129   * well as a comma-separated list.  Chunks that are unknown to 
     
    1156511565  { 
    1156611566    (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
    11567       "  Chunks to be excluded from the output PNG:"); 
     11567      "  Chunks to be excluded from the output png:"); 
    1156811568    if (mng_info->ping_exclude_bKGD != MagickFalse) 
    1156911569      (void) LogMagickEvent(CoderEvent,GetMagickModule(), 
Note: See TracChangeset for help on using the changeset viewer.