Issue 10388 - PDF Export: JPG - bad image quality
Summary: PDF Export: JPG - bad image quality
Status: CLOSED DUPLICATE of issue 20327
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: 643
Hardware: PC All
: P3 Trivial with 14 votes (vote)
Target Milestone: OOo 2.0
Assignee: christof.pintaske
QA Contact: issues@sw
URL:
Keywords: oooqa
: 9541 12096 13676 13906 14464 14494 17838 18160 33092 (view as issue list)
Depends on:
Blocks: 18723
  Show dependency tree
 
Reported: 2003-01-02 02:07 UTC by Unknown
Modified: 2010-03-22 16:24 UTC (History)
5 users (show)

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Original sxw file with screen shot image (16.76 KB, text/plain)
2003-06-03 12:36 UTC, cbelch
no flags Details
PDF Exported from the original sxw (15.54 KB, text/plain)
2003-06-03 12:37 UTC, cbelch
no flags Details
A PDF file containing a PNG image, generated by pdftex (3.86 KB, application/pdf)
2003-06-11 23:54 UTC, timevans
no flags Details
Screenshot as a 100% quality JPEG (23.87 KB, image/jpeg)
2004-02-03 02:40 UTC, timevans
no flags Details
Same screenshot as a PNG (6.42 KB, image/png)
2004-02-03 02:40 UTC, timevans
no flags Details
jpeg/jpeg/png test (photoshop/gimp) (48.88 KB, image/png)
2004-02-03 12:39 UTC, pr0net
no flags Details
Darwin PDF exportation : from Writer text document to PDF documents (134.51 KB, image/png)
2004-12-23 14:20 UTC, goa103
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-01-02 02:07:04 UTC
I use the PDF Export a lot in Build 643 of OpenOffice, but am dissapointed 
that pictures are all saved in the PDF using JPEG Compression, and I cannot 
seem to be able to use ZIP like compression instead.  Although you can have 
higher quality pictures, by selecting "Press Optimized" in the PDF Export 
Dialog, they are still JPEG compressed.  It would be nice, if you could prompt 
for ZIP/PNG like compression instead, so you don't lose quality in the 
pictures when exporting to PDF.
Comment 1 h.ilter 2003-01-07 16:37:01 UTC
Reassigned to BH
Comment 2 timevans 2003-02-25 00:33:35 UTC
Just my $0.02 worth as a user.

I have also run into run into this issue, which is annoying as PDF
export is such a useful feature.  It doesn't really seem right to call
something "Press Optimized" (or even "Print Optimized") if it is going
to convert all the images to JPEGS.

The best solution (I think) would be that at the highest quality level:
 - Images that were originally JPEGs remain as JPEGs, and the original
file is used so as to avoid re-encoding the file.
 - All other images are stored as PNG images.  Use grayscale, indexed,
and lower colour depths when they do not reduce the quality.
 - All images are left in input resolution (lower qualities may want
to scale them down).  I'm not sure what the current behaviour is here.
Comment 3 eric.savary 2003-04-16 15:33:54 UTC
Set to "NEW"
Comment 4 lohmaier 2003-05-05 17:59:52 UTC
*** Issue 9541 has been marked as a duplicate of this issue. ***
Comment 5 lohmaier 2003-05-05 18:00:01 UTC
*** Issue 13676 has been marked as a duplicate of this issue. ***
Comment 6 lohmaier 2003-05-05 18:08:39 UTC
*** Issue 13906 has been marked as a duplicate of this issue. ***
Comment 7 lohmaier 2003-05-05 18:20:51 UTC
*** Issue 12096 has been marked as a duplicate of this issue. ***
Comment 8 lohmaier 2003-05-22 16:25:37 UTC
extended subject to avoid more duplicates...
Comment 9 lohmaier 2003-05-22 16:26:47 UTC
*** Issue 14464 has been marked as a duplicate of this issue. ***
Comment 10 lohmaier 2003-05-22 16:31:59 UTC
maybe setting a target-milestone is not a bad idea -> 1.1
OS -> All
Comment 11 lohmaier 2003-05-22 16:38:29 UTC
moving to gsl (not reassinging)
Comment 12 lohmaier 2003-05-22 16:41:37 UTC
Argh! MOving to gsl lost votes! Please resubmit your votes, Sorry for
causing this inconvenience :-(
Comment 13 cbelch 2003-06-03 12:35:26 UTC
Hi,
My images turn out all blured when I export to PDF.  I am attaching 
two files.  One sxw file with original image, the other a pdf file 
exported from original!

Where is the "press optimized" setting ... I cannot see it?  Sorry!

Thanks,
Cheryl.
Comment 14 cbelch 2003-06-03 12:36:23 UTC
Created attachment 6619 [details]
Original sxw file with screen shot image
Comment 15 cbelch 2003-06-03 12:37:13 UTC
Created attachment 6620 [details]
PDF Exported from the original sxw
Comment 16 lohmaier 2003-06-10 00:32:23 UTC
to view the setting use File|Export to PDF, not the icon in the
toolbar. (the same as with File|Print and the icon for printing)
Comment 17 cbelch 2003-06-10 09:24:55 UTC
Thank you!
My images convert much better with the press optimized selected.
Comment 18 bettina.haberer 2003-06-11 13:38:51 UTC
PDF supports filters like LZW (=zip) and DCT (=JPG), but does not
support the algorithm, which is used by PNG. 
Comment 19 bettina.haberer 2003-06-11 16:26:43 UTC
Closed now.
Comment 20 timevans 2003-06-11 23:53:30 UTC
Actually, that's not correct.  PDF 1.2 does support zlib compression,
via the FlateDecode filter.  All common readers support this filter.

Note that pdftex has supported PNG images for years, and seems to do a
very good job with them.  It uses the FlateDecode filter.  I will
attach a PDF file generated by pdflatex that contains a single 8-bit
RGB PNG image.

Please reconsider WONTFIX'ing this bug, as it can be fixed.
Comment 21 timevans 2003-06-11 23:54:58 UTC
Created attachment 6815 [details]
A PDF file containing a PNG image, generated by pdftex
Comment 22 lohmaier 2003-06-12 15:29:22 UTC
Always reopen closed issues when adding comments! Otherwise they won't
show up in default queries...
Comment 23 bettina.haberer 2003-06-30 15:16:27 UTC
Hello Matthias, perhaps I got something wrong here. As you have
specified the implemented PDF-export could you please take this one to
your ownership, thank you.
Comment 24 matthias.mueller-prove 2003-07-02 10:26:49 UTC
summary changed
Comment 25 lohmaier 2003-08-04 18:10:44 UTC
*** Issue 17838 has been marked as a duplicate of this issue. ***
Comment 26 lohmaier 2003-08-12 18:12:15 UTC
*** Issue 18160 has been marked as a duplicate of this issue. ***
Comment 27 lohmaier 2003-08-26 21:04:14 UTC
*** Issue 14494 has been marked as a duplicate of this issue. ***
Comment 28 matthias.mueller-prove 2003-10-27 18:45:38 UTC
Yes, cf. http://specs.openoffice.org/appwide/pdf_export/KickOffOct2003.sxw
Comment 29 pr0net 2003-12-15 11:50:36 UTC
Allowing "maximum" jpeg-quality would be good enough in most cases. The addition
of a "quality-slider", like implemented in gimp/photoshop, would seem to be a
sufficient solution.
Comment 30 timevans 2004-02-03 02:39:12 UTC
Maximum quality jpeg images are not the best solution.  I will attach two
versions of the same screenshot saved from the GIMP, one a 100% quality jpeg,
the other a png.  The JPEG is still slightly burry (particularly around the
title bar text), and the JPEG (at 23.8K) is 3.7 times *larger* than the lossless
PNG file (at 6.4K).
Comment 31 timevans 2004-02-03 02:40:10 UTC
Created attachment 12847 [details]
Screenshot as a 100% quality JPEG
Comment 32 timevans 2004-02-03 02:40:40 UTC
Created attachment 12848 [details]
Same screenshot as a PNG
Comment 33 pr0net 2004-02-03 12:35:07 UTC
I just did a quick test in Photoshop with the images you provided. There is no
visual difference between the png and the photoshop-generated jpeg-images. Looks
like gimp is just bad at creating jpegs...

What's the deal with the RGB-separation btw? Is that some XP-antialiasing or
something?

I attached an image with the gimp/photoshop-comparison.
Comment 34 pr0net 2004-02-03 12:39:32 UTC
Created attachment 12856 [details]
jpeg/jpeg/png test (photoshop/gimp)
Comment 35 lukeh 2004-02-18 22:13:03 UTC
See also Issue 23575, Issue 20222.

I am having problems with this too.  Three things are very important for PDF
export of images, as has been stated above:

 -- If exporting to JPEG, and the original image was already in JPEG format, the
original JPEG should be re-used to avoid re-coding wherever possible.  This
should include both press and print optimized levels, IMHO, as well as screen
optimized when the image is say lower than 120dpi in resolution, with the page
zoomed to 100%.

 -- JPEG should *not* be used for everything.  It is just a bad format for line
art, low-colored images and images with lots of sharp edges, period.  It even
uses a different colorspace which can mess up the color of your images, no
matter what quality setting it is on.  PDF (as well as OOo) supports more than
JPEG for a reason.  Flate works very well -- it should be used.

 -- The image export settings definitely need an option to override the default
quality (for JPEG) and resolution (for both JPEG and PNG) for any of the
optimization settings.

Also, it would be nice to have one more optimization setting, with sane defaults
-- "Screen Optimized (high resolution)" which allows you to zoom a little
without losing detail.  There is currently a huge difference in dpi between
screen and print optimization.
Comment 36 lukeh 2004-02-18 22:20:38 UTC
[Sorry, ignore Issue 23575, it is unrelated.]
Comment 37 matthias.mueller-prove 2004-03-17 14:15:51 UTC
MMP>CP: Thanks for taking over.
Comment 38 matthias.mueller-prove 2004-03-17 14:16:33 UTC
MMP>CP: Thanks for taking over.
Comment 39 christof.pintaske 2004-05-25 18:32:40 UTC
targeted for 8 according to
http://specs.openoffice.org/appwide/pdf_export/PDFExport.sxw
Comment 40 jensja 2004-05-26 16:17:40 UTC
Some comments on PDFExport.sxw (rev 0.2)

ad 6.2:

When downsampling images, OOo should take into account the scaling factor
applied to an image:
Usually when target resolution is 300dpi, an image with 1200dpi is to be
resampled with 300dpi. 
But when an image is scaled eg. by 200%, resampling should be done with 600dpi
(scaling factor * target resolution). Otherwise in our example the effective
resolution of the resulting image in the pdf document would be 150dpi. (300dpi
image scaled by 2)

ad 6.10:

The PDF-Options dialog is becoming complex enough to make me long for 
a sane set of factory presets (screen|printer|prepress like in 1.1) or user
definable presets.

I don't like "the monopolists way" of nesting dialogs, in the end you never know
where you were coming from - so I'd rather see encryption (and maybe other
features yet to come) in another tab page of the same dialog.
Comment 41 christof.pintaske 2004-07-30 15:38:46 UTC
I put this on duplicate to #i20327#. We will improve on the image quality as
described there. In fact the better image quality (default setting 90% jpeg,
optionally losless compression) and the new dialog are already implemented in
CWS pdf01.

*** This issue has been marked as a duplicate of 20327 ***
Comment 42 christof.pintaske 2004-08-02 13:46:34 UTC
closing this one as duplicate (see above)
Comment 43 christof.pintaske 2004-08-18 14:43:48 UTC
*** Issue 33092 has been marked as a duplicate of this issue. ***
Comment 44 goa103 2004-12-23 14:17:54 UTC
I searched for « export PDF » issues and found many issues dealing with the same
problem : issue 17463, issue 37400 and issue 12693. Some other issues you might
be interested in and not directly to JPEG export : issue 26952 and issue 13524.

Maybe some of the three issues are duplicates of this one.

We discuss this issue on OOoForum.org in the
http://www.oooforum.org/forum/viewtopic.php?t=13804 topic.
Comment 45 goa103 2004-12-23 14:20:02 UTC
Created attachment 20802 [details]
Darwin PDF exportation : from Writer text document to PDF documents
Comment 46 yelo3 2010-03-08 16:46:48 UTC
I don't think this bug is duplicate of 20327. Are you sure?