在PHP GD剥离后将ICC颜色配置文件添加到图像的脚本?

I use an online shopping cart to sell my photography. The software dynamically resizes and watermarks images using GD library and when it does, it strips all metadata, including the ICC color profile necessary to make the images display properly in color managed browsers. I am talking sRGB here.

Is there any way to make a script that could run after the GD transformations that could add an ICC profile to the images automatically? At this point, I don't think ImageMagick is an option.

Thanks!