Bug 348848 - EPS export produces empty image
Summary: EPS export produces empty image
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.14.3 (KDE Applications 4.14.3)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-07 16:15 UTC by Barade
Modified: 2015-06-16 21:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.16.3 (KDE Applications 15.04.3)


Attachments
interface.xmi (107.77 KB, application/x-uml)
2015-06-11 13:23 UTC, Barade
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barade 2015-06-07 16:15:17 UTC
Exporting the diagram as EPS file produces an empty image.

Reproducible: Always
Comment 1 Ralf Habacker 2015-06-11 05:24:47 UTC
How did you verified the empty image ? I opened such exported file with gimp and could see content.
Comment 2 Barade 2015-06-11 13:21:30 UTC
I just export it in Umbrello and open it with Gwenview and it is empty.
There is other .EPS files in the same directory exported with Dia which work fine.
I've also tried it with Gimp now and it didn't work either but on this PC I have version 2.15.3 of Umbrello.

Did you use a class diagram? I tried it with and without selecting all elements. Nothing worked.
Comment 3 Barade 2015-06-11 13:23:01 UTC
Created attachment 93118 [details]
interface.xmi

This file contains the class diagram.
Comment 4 Ralf Habacker 2015-06-11 14:00:05 UTC
I got the image restored from the file by running eps2eps from ghostscript package on linux.
Comment 5 Ralf Habacker 2015-06-14 21:35:08 UTC
The complete situation is: 

                                             dia 0.97.2          umbrello 2.16.99
gimp                                    empty  image      empty image
eps2eps,gimp                      image                    image
inkscape                                image                 empty image
eps2eps,  inkscape            image                    image
gwenview                             image                  empty image
eps2eps, gwenview          image                    image

Conclusion: 
1. gimp is not able to show an exported eps from dia or umbrello without eps2eps filter.

2. umbrello contains a fix of the generated eps file  (method UMLViewImageExporterModel::fixEPS), which says:
 * Fix the file 'fileName' to be a valid EPS containing the
 * specified area (rect) of the diagram.
 * Corrects the bounding box.
 
May be a bounding rect problem. Unfortunally simply removing this fix do not help.
Comment 6 Ralf Habacker 2015-06-16 21:32:47 UTC
Git commit 99ba6ce98482f965a5639a06ec7309b13c58ec22 by Ralf Habacker.
Committed on 16/06/2015 at 21:28.
Pushed by habacker into branch 'Applications/15.04'.

Fix 'EPS export produces empty image'.

QPrinter::setPaperSize() is intended to write a ps bounding rect,
which obsolates the manual eps file hacking.
FIXED-IN: 2.16.3 (KDE Applications 15.04.3)

M  +24   -94   umbrello/umlviewimageexportermodel.cpp
M  +1    -3    umbrello/umlviewimageexportermodel.h

http://commits.kde.org/umbrello/99ba6ce98482f965a5639a06ec7309b13c58ec22