Summary: | pdftoppm-exported JPEGs should retain ppi info | ||
---|---|---|---|
Product: | poppler | Reporter: | Jorge Hernández Valiñani <chocolate.camera> |
Component: | utils | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | x86 (IA32) | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | patch to fix |
Description
Jorge Hernández Valiñani
2012-01-25 03:42:40 UTC
Created attachment 56136 [details] [review] patch to fix Problem is caused by calling jpeg_set_defaults(&cinfo) after setting the resolution which overwrites the resolution. Adrian, should the cinfo.in_color_space = colorMode; /* colorspace of input image */ also be after jpeg_set_defaults(&cinfo); ? (In reply to comment #2) > Adrian, should the > cinfo.in_color_space = colorMode; /* colorspace of input image */ > also be after > jpeg_set_defaults(&cinfo); > ? No. The libjpeg documentation for jpeg_set_defaults() states: "This routine sets all JPEG parameters to reasonable defaults, using only the input image's color space (field in_color_space, which must already be set in cinfo)" Makes sense then, please commit :-) Committed. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.