That code listing doesn't appear to examine the cinfo.density_unit field at all.

Also, nothing in the JFIF spec indicates that if density_unit is 0, the density 
fields suddenly switch to mean the inverse. As far as I can tell, it just means 
that the units are unknown/unspecified, but it's still a density (1/length). 



> On May 19, 2016, at 2:57 PM, Kevin Wheatley <[email protected]> 
> wrote:
> 
> 
> 
> Sent on the go...
> 
>> On 19 May 2016, at 22:48, Jonathan Egstad <[email protected]> wrote:
>> 
>> 
>> Nuke's JPEG reader/writer is interpreting the xdensity and ydensity fields 
>> as sizes, not densities.
> 
> But does it not depend on the other header field if the units header has a 
> non zero value to be interpreted as a density, else it is an aspect ratio...
> 
> Which I could see as  2:1 meaning make a wide image... But when set as a 
> density it means the opposite no?
> 
> Kevin
> 
> 

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to