https://bugs.documentfoundation.org/show_bug.cgi?id=101458

Julien Nabet <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |NEW
                 CC|                            |[email protected]
                   |                            |, [email protected],
                   |                            |[email protected]

--- Comment #3 from Julien Nabet <[email protected]> ---
I don't know if png should be recompressed.
However, I noticed this patch
https://cgit.freedesktop.org/libreoffice/core/commit/?id=eab3c3ab9da5f0282df43d2f4bfbf17f7a4f8fe3

If I comment these lines:
if ( bIsPng || ( aSizePixel.Width() < 32 ) || ( aSizePixel.Height() < 32 ) )
    bUseJPGCompression = false;

(or if "bIsPng" test is removed)
see 
http://opengrok.libreoffice.org/xref/core/vcl/source/gdi/pdfwriter_impl2.cxx#163

Also, depending on the quality, I made a quick test (on pc Debian x86-64 with
master sources updated today):
- with 60%, the file size is bigger than without compression
- with 30%, the file size is less big 

-rw-r--r-- 1 julien julien  80101 nov.  28 22:04 test_loss30.pdf
-rw-r--r-- 1 julien julien 104462 nov.  28 22:04 test_loss60.pdf
-rw-r--r-- 1 julien julien 101328 nov.  28 22:01 test_lossless.pdf
-rw-r--r-- 1 julien julien 125998 nov.  28 21:45 test.odp

Michael/Marco: any thoughts here?

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to