Converting Log DPX to sRGB
Posted: 2014-02-19T06:59:03-07:00
Hello.
I am trying to convert 10bit Log DPX image to sRGB TGA (or JPEG).
I read documentaion and try several variants with no success.
The result was a Linear (RGB as you call) image.
I read forum and founded that there are lots of threads on this theme.
But some are not suitable for me, some are not complete (both sides did not got each other).
Also there is a mess with RGB, sRGB and ImageMagick version, so I dowloaded and build the latest version (6.8.8-7).
It seems that if DPX file is Log (or you specify it by "-set colorspace Log") it converts it to linear (RGB).
- checked it in other softwate (Nuke), linear exactly,
if convert this linear to sRGB the result is the same as if convert log in srgb in Nuke directly
- the result even darker than Linear.
- the result is Log (no change)
- the result even lighter than Log
- the result is Log (no change)
- gived incorrect results too
So it seems that i did't got how to convert Log to sRGB right, and what "-set colorspace" and "-colorspace" exactly do.
Could you help me, please.
I am trying to convert 10bit Log DPX image to sRGB TGA (or JPEG).
I read documentaion and try several variants with no success.
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace sRGB colorbars.tga
Code: Select all
Version: ImageMagick 6.8.8-7 Q16 x86_64 2014-02-19 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: fontconfig freetype jng jpeg openexr png tiff x zlib
colorbars.dpx DPX 1280x720 1280x720+0+0 10-bit TrueColor RGB 3.695MB 0.030u 0:00.030
colorbars.dpx=>colorbars.tga DPX 1280x720 1280x720+0+0 10-bit sRGB 2.765MB 0.160u 0:00.029
I read forum and founded that there are lots of threads on this theme.
But some are not suitable for me, some are not complete (both sides did not got each other).
Also there is a mess with RGB, sRGB and ImageMagick version, so I dowloaded and build the latest version (6.8.8-7).
It seems that if DPX file is Log (or you specify it by "-set colorspace Log") it converts it to linear (RGB).
- checked it in other softwate (Nuke), linear exactly,
if convert this linear to sRGB the result is the same as if convert log in srgb in Nuke directly
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace RGB colorbars.tga
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace sRGB -colorspace sRGB colorbars.tga
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace RGB -colorspace sRGB colorbars.tga
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace RGB -colorspace RGB colorbars.tga
Code: Select all
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace sRGB -colorspace sRGB colorbars.tga
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace sRGB -colorspace RGB colorbars.tga
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace RGB -colorspace sRGB colorbars.tga
convert -verbose -version colorbars.dpx -set colorspace Log -colorspace RGB -colorspace RGB colorbars.tga
So it seems that i did't got how to convert Log to sRGB right, and what "-set colorspace" and "-colorspace" exactly do.
Could you help me, please.