Bug 45001 - [PATCH] BoundingBox ignored when generating thumbnails from EPS files
Summary: [PATCH] BoundingBox ignored when generating thumbnails from EPS files
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: thumbnail (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Malte Starostik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-10 23:03 UTC by Philipp Hullmann
Modified: 2004-03-30 00:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch for correct handling of EPS bounding boxes and embedded previews. (13.50 KB, patch)
2003-01-19 13:27 UTC, Philipp Hullmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hullmann 2002-07-10 22:48:57 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           KDE 3.0.2 
Severity:          normal
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3
OS:                Linux
OS/Compiler notes: ghostscript 7.04

When generating thumbnails from encapsulated PostScript files the BoundingBox is ignored - the preview shows the contents of the file placed on whatever ghostscript's default page size is.

(Submitted via bugs.kde.org)
Comment 1 Philipp Hullmann 2003-01-19 13:27:02 UTC
Created attachment 782 [details]
Patch for correct handling of EPS bounding boxes and embedded previews.

This patch (against KDE 3.0.5a) determines size and resolution of the thumbnail
image from the bounding box given in the EPS file. To be treated this way, a
file has to have a name ending in .eps or .epsi and fulfill the structure
requirements for EPS. For anything else, a full-page preview is generated as
before. If the file contains a platform-independent preview image, this is
extracted and used instead of calling ghostscript (this procedure is
significantly faster).

In addition to this patch you need to copy the DSC parser contained in files
dscparse.{cpp,h} and dscparse_adapter.{cpp.h} from
kdegraphics/kfile-plugins/ps.
Comment 2 Waldo Bastian 2004-03-30 00:00:07 UTC
Thanks for the patch, sorry for the delay.

Applied for KDE 3.3