Bug 327046

Summary: "diagram->export as picture ..." creates corrupt images
Product: [Applications] umbrello Reporter: arne anka <kde-bugs>
Component: generalAssignee: Ralf Habacker <ralf.habacker>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version: 2.10.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.3
Attachments: two exported pictures, both corrupt.

Description arne anka 2013-11-02 18:39:46 UTC
"diagram->export as picture ..."  creates unusable, corrupt images and no eps at all.
images are plain black or occasionally with a little rainbow at the top.
i'll attach two specimen.

ps: and now it stopped altogether, always throwing "An error happened when exporting the image:
A problem occurred while saving diagram in /tmp/class diagram.png."

Reproducible: Always
Comment 1 arne anka 2013-11-02 18:42:01 UTC
Created attachment 83301 [details]
two exported pictures, both corrupt.

two exported pictures, both corrupt.
Comment 2 Ralf Habacker 2013-11-02 18:45:52 UTC
no problem here with 4.11.2 aka 2.11.2. Any chance to check with a newer version or git master ?
Comment 3 Ralf Habacker 2013-11-03 11:02:12 UTC
Took a look in the log: 
2.10.5
....:exportViewToPixmap: saving to file  "/tmp/Klassendiagramm.bmp."  , imageType= ""  , width= 922  , height= 461  , successful= false
master, 4.11.3
...:exportViewToPixmap: saving to file  "/tmp/Klassendiagramm.bmp" , imageType= "bmp" , width= 343 , height= 153 , successful= true

The main difference is that there is a '.' at the end of the filename and there is no imageType choosen. This has been fixed in bug 316095, wich will be available with 4.11.3
BTW: The version mentioned in #comment 2 needs to be read as KDE/4.11 git branch. the published version 4.11.2 do not include the required patch.

*** This bug has been marked as a duplicate of bug 316095 ***