You are here: does PHP support ancillary chunks in PNG images (background color) « PHP Programming Language « IT news, forums, messages
does PHP support ancillary chunks in PNG images (background color)

Posted by Bint on 05/23/07 01:04

Hi,

I want to create 24 bit PNG image files (red, green, blue, alpha) with
PHP -- that's easy enough. However, I would like to include a background
color value as well, as a default. The Wikipedia article for PNG images
states that PNG includes "ancillary" chunks, one of which is the background
value:

Ancillary chunks
Other image attributes that can be stored in PNG files include gamma values,
background color, and textual metadata information. PNG also supports color
management through the inclusion of ICC color space profiles.

a.. bKGD gives the default background color. It is intended for use when
there is no better choice available, such as in standalone image viewers
(but not web browsers, although Internet Explorer 6 and lower, which does
not support alpha transparency, will display this color as the background of
the PNG).

Is it possible to create a PNG image and file in PHP which includes one of
these 'bKGD' tags?

Thanks!
B

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация