678
678
/* Extract embedded ICC profile */
679
679
retval = png_get_iCCP (png_read_ptr, png_info_ptr,
680
680
(png_charpp) &icc_profile_title, &compression_type,
683
683
icc_profile_base64 = g_base64_encode ((const guchar *) icc_profile, (gsize)icc_profile_size);
684
684
gdk_pixbuf_set_option (lc->pixbuf, "icc-profile", icc_profile_base64);