<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - image::save() generates corrupted images on Windows"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102494#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - image::save() generates corrupted images on Windows"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=102494">bug 102494</a>
              from <span class="vcard"><a class="email" href="mailto:jeroen@berkeley.edu" title="Jeroen Ooms <jeroen@berkeley.edu>"> <span class="fn">Jeroen Ooms</span></a>
</span></b>
        <pre>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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>