Page MenuHome

Fix T84661: read jpg pixel density
ClosedPublic

Authored by Philipp Oeser (lichtwerk) on Jan 21 2021, 4:22 PM.

Details

Summary

For jpeg, an image.resolution was always based on the default 72dpi, now
read the pixel density from the jpeg_decompress_struct, convert
according to unit and store in IMBuf's ppm.

Not 100% sure of all implications tbh., files I have checked seem to work
as expected now in the context of the report.

Diff Detail

Repository
rB Blender

Event Timeline

Philipp Oeser (lichtwerk) requested review of this revision.Jan 21 2021, 4:22 PM
Philipp Oeser (lichtwerk) created this revision.

I think this is fine.
Annoyingly, that it seems to be no mnemonic names for the jpeg's density_unit, but we have what we have. Maybe consider defining them as an enum on our side.

This revision is now accepted and ready to land.Jan 29 2021, 9:43 AM
This revision was automatically updated to reflect the committed changes.