(*** 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)
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.
Thanks for the patch, sorry for the delay. Applied for KDE 3.3