Page 2 of 2
Re: Converting Log DPX to sRGB
Posted: 2014-02-20T23:51:01-07:00
by snibgo
timurhai wrote:Why we convertiong Log DPX to sRGB JPEG by "-set colorspace Log" and Linear EXR to sRGB JPEG by "-colorspace sRGB" (logically it should be "-set colorspace RGB" ?
Code: Select all
-set colorspace Log -colorspace sRGB
... does two things. First, it declares the pixel values are log. This overrides anything IM might have read in the file metadata. Second, it converts the pixel values from log to sRGB and also changes the metadata.
If the input file contains a metadata flag saying "log", then you don't need the first. If your output format can only be sRGB then you don't need the second because IM will automatically convert for you.
Jpeg can also store CMYK data, so I would always include "-colorspace sRGB".
Re: Converting Log DPX to sRGB
Posted: 2014-04-01T04:11:08-07:00
by timurhai
Hello everyone!
I integrated 6.8.8-8 in our pipeline and already checked for some time. Works fine with Log DPXs and Linear EXRs!
Just want to thank you again!
ps
i've got you logic and now agree with it:
- always specify colorspace for an output image
- specify colorspace for an input image if you want to override metadata settings
btw
now i have some other problem with some EXRs
viewtopic.php?f=1&t=25324