Bug 120994

Summary: Print preview generates HUGE postscript files
Product: [Applications] digikam Reporter: Dik Takken <kde>
Component: Showfoto-PluginsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.0.0
Sentry Crash Report:

Description Dik Takken 2006-01-29 19:25:52 UTC
Version:           0.3.0 (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
OS:                Linux

When I open a 2 Megapixel photograph in showFoto and create a print preview, Showfoto generates 54 MB of postscript data, which takes 15 minutes to display on the screen. Not exactly practical.

When I print the same image to a Postscript file from the print dialog, showFoto generates 2 MB of postscript data which takes 30 seconds to display on the screen.

This 2 MB postscript file is 30% *smaller* than the original PNG image, and has lost a lot of details.

What is going on here?
Comment 1 Dik Takken 2006-01-29 20:36:57 UTC
I would like to add that DigiKam (0.8.0-beta2) has the same problem.
Comment 2 Anders Lund 2006-01-29 20:57:42 UTC
On Sunday 29 January 2006 19:25, Dik Takken wrote:
> This 2 MB postscript file is 30% *smaller* than the original PNG image, and
> has lost a lot of details.


Maybe it uses screen resolution, which is usually < 100 dpi.
Comment 3 Dik Takken 2006-01-30 10:16:31 UTC
Yes maybe, but why? I expect to get exactly the same result when printing to a printer or to a file.

I tried other applications, and all of them generate similar postscript files, both when sending it to the printer and when writing it to a file. One weird thing is that the applications I tried generated a wide variety of postscript file sizes.

It seems that printing an image to a postscript file involves more than simply wrapping the original bitmap into a postscript file...
Comment 4 caulier.gilles 2008-01-04 11:18:31 UTC
Disk, are you tried another KDE applications ? The print interface under showfoto use KDE API directly. So, the same behaviours must be appear with konqueror or gwenview for ex. 

In fact, I think this problem is releavant of KDE print interface, not showfoto directly.

Gilles Caulier
Comment 5 caulier.gilles 2009-04-17 09:34:05 UTC
Dik,

With KDE4, Qt4 printing interface is used everywhere.

Please take a look if problem still exist. Thanks in advance

Gilles Caulier
Comment 6 Andi Clemens 2009-06-07 13:30:09 UTC
Gilles,

I think we should close this one. We haven't actually received an answer in 3 1/2 years.

Andi
Comment 7 caulier.gilles 2009-06-07 14:23:50 UTC
fine for me...

Gilles Caulier