By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

does PHP support ancillary chunks in PNG images (background color)

P: n/a
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

May 23 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.