Summary: | image::save() generates corrupted images on Windows | ||
---|---|---|---|
Product: | poppler | Reporter: | Jeroen Ooms <jeroen> |
Component: | cpp frontend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Windows (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | patch for cpp image writer |
Description
Jeroen Ooms
2017-08-31 14:28:10 UTC
Created attachment 135236 [details] [review] patch for cpp image writer I have finally found the problem. The file is opened in text mode "w" instead of binary mode "wb". In cpp/poppler-image.cpp on line 374 it says: FILE *f = fopen(file_name.c_str(), "w"); This should be: FILE *f = fopen(file_name.c_str(), "wb"); Attached a patch. Pushed |
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.