Yuv to Png conversion => Image "washed-out"
Posted: 2016-12-22T07:38:09-07:00
Hello,
I have a YUV image captured with GStreamer that I convert to PNG using IM convert. Command line is the following:
convert -size 640x360 -sampling-factor 4:2:0 -depth 8 image.yuv -colorspace RGB image.png
On our previous platform (CentOS6 i686, IM 6.5.4-7), the converted PNG looked OK in a browser (Chrome, IE11). It looked identical when using an image viewer, such as "eog" (Eye of Gnome).
We have recently migrated to CentOS7 x86_64, IM 6.7.8-9. Using the same command line on the same YUV image, the resulting PNG looks OK with eog (as with CentOS6 version), but on Chrome & IE11, it looks all pale or washed-out.
I heard that default colorspace handling has changed between the two IM releases, and I have tried various colorspace / set colorspace combinations, but none of these achieved the same (good) result on the browsers as with the old version.
Does anyone know what the problem is and how to fix the command line to have a PNG that renders correctly on the browsers?
Thanks in advance & best regards,
Thierry
I have a YUV image captured with GStreamer that I convert to PNG using IM convert. Command line is the following:
convert -size 640x360 -sampling-factor 4:2:0 -depth 8 image.yuv -colorspace RGB image.png
On our previous platform (CentOS6 i686, IM 6.5.4-7), the converted PNG looked OK in a browser (Chrome, IE11). It looked identical when using an image viewer, such as "eog" (Eye of Gnome).
We have recently migrated to CentOS7 x86_64, IM 6.7.8-9. Using the same command line on the same YUV image, the resulting PNG looks OK with eog (as with CentOS6 version), but on Chrome & IE11, it looks all pale or washed-out.
I heard that default colorspace handling has changed between the two IM releases, and I have tried various colorspace / set colorspace combinations, but none of these achieved the same (good) result on the browsers as with the old version.
Does anyone know what the problem is and how to fix the command line to have a PNG that renders correctly on the browsers?
Thanks in advance & best regards,
Thierry