<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div>hello!</div><div><br></div><div>i'm having a spot of trouble with grayscale png images.</div><div><br></div><div>i can load png images using&nbsp;cairo_image_surface_create_from_png, but subsequent calls to&nbsp;cairo_image_surface_get_format never return&nbsp;CAIRO_FORMAT_A8, even when the original png format is actually&nbsp;CAIRO_FORMAT_A8.&nbsp;it seems to always automatically convert to&nbsp;CAIRO_FORMAT_RGB24, leaving me no way of knowing the original file format - that is as far as i can tell...</div><div><br></div><div>i don't really mind this automatic conversion behaviour (as i can extract the data from the surface any way i like), but,&nbsp;if i'm not mistaken,&nbsp;what's causing me the real trouble is not being able to detect if the image was originally grayscale or rgb.</div><div><br></div><div>is there some way i can go
 about detecting the original png file format?<br></div><div><br></div><div><div>(i tried using&nbsp;gdk_pixbuf_new_from_file and found that also automatically converts.)<br></div><div><br></div></div><div>regards and thanks!<br></div><div>tristen</div></div></body></html>