
10 Dec
2006
10 Dec
'06
9:47 p.m.
Hello, Lubomir Bourdev <lbourdev@adobe.com> wrote:
One more thing. If you read the image just so you can color convert it and save it as PNG, it is better to color convert upon read.
That way you avoid dealing with runtime images altogether. Your code will be slightly faster, will compile faster, will have a smaller footprint (both executable and runtime memory) and will handle potentially more image formats:
gray8_image_t gray8_img; jpeg_read_and_convert_image("test.jpg", gray8_img); png_write_view("test_out.png", const_view(gray8_img));
Thank you! Now thats really cute! Best regards Andreas Pokorny