<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - PNGs are expanded 20 times on export (w/lossless!), leading to bloated PDFs."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108032">108032</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>PNGs are expanded 20 times on export (w/lossless!), leading to bloated PDFs.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.1.4.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Printing and PDF export
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>presentmeaninvite@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Today I’ve made a document, it’s resulting size was quite normal:

$ ls -s *odt 
5.9M Руководство по системе управления порталом.odt

All images are linked and reside under ‘img’ subfolder, which doesn’t take more
than the document itself.

$ du -hs img/
2.1M    img/

And the resulting document takes… whooping 53 MiB(!).

$ ls -s Руководство\ по\ системе\ управления\ порталом.pdf 
53M Руководство по системе управления порталом.pdf

It was exported with PDF/A-a1 option, and I understand, that there are also
fonts embedded into the doc, but that’s around 5 megabytes including all the
variants (bold/italic), not more. Let’s export one image from a PDF viewer to
disk and compare the size:

$ du -hb '/home/dtr/work/docs/website cms/platformiosedit.png'
1836974 /home/dtr/work/docs/alma tv/website cms/platformiosedit.png

$ du -hb '/home/dtr/work/docs/website cms/img/0250.png'
87942   /home/dtr/work/docs/website cms/img/0250.png

What?.. 

$ echo 'scale=1; 1836974/87942' | bc -q
20.8

Twenty, almost twenty one times bigger? What kind of archiving is that?
Let’s not use PDF/A-a1 and compare again

$ ls -s 'Руководство по системе управления порталом w\o PDF\A-a1.pdf'
2.0M Руководство по системе управления порталом w\o PDF\A-a1.pdf

Two megabytes! Two! As it should be. It is interesting to export that same
iamge from the PDF viewer again.

$ du -hb 'platfromiosedit2.png'
91046   platfromiosedit2.png

Well, the size is bigger than that of the original image, but at least it’s
close.

My question stays the same since #93462: why LibreOffice thinks, that it should
modify original images, when it was clearly said to use Lossless images?</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>