After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 147386 - Clipped text when exporting to .png
Clipped text when exporting to .png
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: exports
0.93
Other other
: Normal normal
: 0.98
Assigned To: Dia maintainers
Dia maintainers
: 376662 (view as bug list)
Depends on:
Blocks: 145575
 
 
Reported: 2004-07-12 08:12 UTC by iain
Modified: 2011-06-13 20:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add some extra space to the exported image (3.07 KB, patch)
2006-02-07 21:01 UTC, Torben H. Nielsen
none Details | Review
Dia file, flowchart box, 1 pixel lines (723 bytes, application/x-dia)
2006-04-26 11:53 UTC, Roland Stigge
  Details
Resulting PNG (492 bytes, image/png)
2006-04-26 11:55 UTC, Roland Stigge
  Details
Example diagram, clips on 0.96.1 (832 bytes, application/x-dia-diagram)
2008-11-29 19:52 UTC, Daniel Nebdal
  Details
The exported bitmap of the previously attached diagram (9.88 KB, image/png)
2008-11-29 19:55 UTC, Daniel Nebdal
  Details
Example of Cairo PNG export (613 bytes, image/png)
2009-05-06 09:33 UTC, Heikki Paajanen
  Details
Example of Pixbuf PNG export (543 bytes, image/png)
2009-05-06 09:36 UTC, Heikki Paajanen
  Details
Add same rounding and + 1 as in pixbuf plug-in (2.22 KB, patch)
2009-05-06 16:23 UTC, Heikki Paajanen
none Details | Review

Description iain 2004-07-12 08:00:53 UTC
Package: dia
Severity: normal
Version: 0.93
Synopsis: Clipped text when exporting to .png
Bugzilla-Product: dia
Bugzilla-Component: exports
 
Description:
Description of Problem:
When the attached diagram #1 is exported to .png, the first "c" in
"cached" in the lower left corner is clipped slightly.  When diagram #2
is exported, the "c" is rendered correctly.  Diagram #2 is the same as
diagram #1, but has a line below and to the left of the "c" in
question.
 
Steps to reproduce the problem:
1. Load diagram #1
2. Export to .png
3. View .png file
                                                                                
Actual Results:
Clipped "c" character in lower left corner
                                                                                
Expected Results:
Fully rendered text.
                                                                                
How often does this happen?
Completely reproducible.
                                                                                
Additional Information:
See attached diagrams




------- Bug moved to this database by unknown@bugzilla.gnome.org 2004-07-12 04:00 -------


---
Unknown bug field "attachment" encountered while moving bug
<attachment>
  <filename> Cache,associative-fill-both.dia </filename>
  <is_patch> 0 </is_patch>
  <mimetype> application/x-gzip </mimetype>
  <data> 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
      jfxZrsPV58n/Aajvb4TRJgEA
       </data>
</attachment>
---
Unknown bug field "attachment" encountered while moving bug
<attachment>
  <filename> Cache,associative-fill-both.2.dia </filename>
  <is_patch> 0 </is_patch>
  <mimetype> application/x-gzip </mimetype>
  <data> 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
       </data>
</attachment>
Unknown platform unknown. Setting to default platform "Other".
Unknown milestone "unknown" in product "dia".
   Setting to default milestone for this product, '---'
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here, unknown@bugzilla.gnome.org.
   Previous reporter was iain@mcclatchie.com.
Setting to default status "UNCONFIRMED".
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Iain McClatchie 2004-07-13 21:27:50 UTC
This bug is in version 0.93 of dia
Comment 2 Scott Anderson 2005-02-04 16:17:15 UTC
I can confirm this bug in 0.94.  When I exported my graphic to PNG, the edge of
one of my arrow lines was clipped at the edge.  It seems to be an edge effect. 
I am running Debian testing.  Here's the information from report bug:

Package: dia
Version: 0.94.0-4
-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)

Versions of packages dia depends on:
ii  dia-common                  0.94.0-4     Diagram editor (common files)
ii  dia-libs                    0.94.0-4     Diagram editor (library files)
ii  libart-2.0-2                2.3.16-6     Library of functions for 2D graphi
ii  libatk1.0-0                 1.8.0-4      The ATK accessibility toolkit
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libfreetype6                2.1.7-2.3    FreeType 2 font engine, shared lib
ii  libglib2.0-0                2.6.1-2      The GLib library of C routines
ii  libgtk2.0-0                 2.4.14-2     The GTK+ graphical user interface
ii  libpango1.0-0               1.6.0-3      Layout and rendering of internatio
ii  libpng12-0                  1.2.8rel-1   PNG library - runtime
ii  libpopt0                    1.7-5        lib for parsing cmdline parameters
ii  libxml2                     2.6.11-5     GNOME XML library
ii  zlib1g                      1:1.2.2-3    compression library - runtime

Let me know if you need further information.

Comment 3 Lars Clausen 2005-02-27 17:09:37 UTC
Marking as confirmed.
Comment 4 Albert Veli 2005-05-06 05:18:00 UTC
I'm running dia 0.94 on Debian/testing. A couple of pixels are clipped on the
left, right and bottom edge on all diagrams when exporting to .png. I didn't
notice any clipping on the top edge but it may be there too.

It is possible to get around this by exporting to .svg and use another program
(like incskape) to export to .png.
Comment 5 Torben H. Nielsen 2006-02-07 21:00:05 UTC
Unfortunately a couple of pixels are clipped when exporting to a bitmap formats in all bitmap export formats no matter whether it is the builtin png export, pixbuf or cairo.
Comment 6 Torben H. Nielsen 2006-02-07 21:01:30 UTC
Created attachment 58885 [details] [review]
Add some extra space to the exported image
Comment 7 Hans Breuer 2006-02-11 12:36:53 UTC
Having a diagram which shows the behavior would be nice. Although I noticed
that italics text is even clipped on the display (some misuse or limitation 
of Pango bounding box?) I was not able to reproduce the general clipping while
creating a PNG ...

There sure may be something wrong in general with Dia's way to calculate
text bounding boxes. But instead of just add some random pixels size to
some exporters I'd like to reproduce and fix for all exporters.

Comment 8 Roland Stigge 2006-04-26 11:50:55 UTC
I guess this is the same as #145575.

At Debian, we have an example. I'm attaching the .dia as well as the resulting .png.

See also http://bugs.debian.org/364867
Comment 9 Roland Stigge 2006-04-26 11:53:59 UTC
Created attachment 64314 [details]
Dia file, flowchart box, 1 pixel lines
Comment 10 Roland Stigge 2006-04-26 11:55:00 UTC
Created attachment 64315 [details]
Resulting PNG
Comment 11 era+gnome 2007-05-30 10:36:43 UTC
Not sure if this is the same bug, but I found that on an Ubuntu 7.04 system, several text snippets inside the image were clipped at the end of line when I exported to PNG.  This was with just whatever happened to be the default font (apparently "Sans" 0.80).

I worked around this by adding a space after each clipped letter.
Comment 12 Hans Breuer 2007-09-09 17:17:42 UTC
I'm taking this bug as the part of bug #145575 which depend on correct *text* bounding boxes. Maybe Dia is not correctly using the ink_rect, e.g. pango_layout_get_pixel_size() delivers the logical rect which IIRC does not necessarily include all the space needed for the drawing of the glyphs.

Also the use of pango_layout_iter_get_line_extents() in dia_font_get_sizes() should be reviewed because it also ignores the ink_rect.
Comment 13 Lars Clausen 2007-10-27 12:01:50 UTC
Roland, your example works fine in 0.96.1, but it doesn't really show the problem described in this bug. Not sure what happened to the first attachments.
Comment 14 Lars Clausen 2007-10-30 18:34:13 UTC
*** Bug 376662 has been marked as a duplicate of this bug. ***
Comment 15 Roland Stigge 2008-01-12 20:25:23 UTC
Lars, you can see the problem with my two files this way: The dia file has a box (with some text inside, but unimportant). In the png exported version, you only see the left and top lines of the box. I.e., the other two (bottom & right) are cropped.
Comment 16 Daniel Nebdal 2008-11-29 19:52:58 UTC
Created attachment 123659 [details]
Example diagram, clips on 0.96.1

On my copy of 0.96.1 this provokes the clipping bug on all four sides of the image.
Comment 17 Daniel Nebdal 2008-11-29 19:55:53 UTC
Created attachment 123660 [details]
The exported bitmap of the previously attached diagram

Exported with the builtin PNG filter in dia 0.96.1 on FreeBSD.
Comment 18 Daniel Nebdal 2008-11-29 19:58:17 UTC
Comment on attachment 123660 [details]
The exported bitmap of the previously attached diagram

Apologies - attached to the wrong bug. Too many windows open.
Comment 19 Heikki Paajanen 2009-05-06 09:33:22 UTC
Created attachment 134089 [details]
Example of Cairo PNG export

Problem still present in current dia git version (~0.97).

With the example file from comment #9 the Cairo PNG export clips the bottom line of the rectangle.
Comment 20 Heikki Paajanen 2009-05-06 09:36:47 UTC
Created attachment 134090 [details]
Example of Pixbuf PNG export

Pixbuf PNG export has extra line of pixels on the right side.
Comment 21 Heikki Paajanen 2009-05-06 16:23:35 UTC
Created attachment 134114 [details] [review]
Add same rounding and + 1 as in pixbuf plug-in

Added same "extra" space to exported area that is in pixbuf plug-in per bug #413275.

After this the cairo rendering is not perfect yet, but at least better (doesn't clip) and the relevant code comments in diacairo.c match again :)
Comment 22 Hans Breuer 2011-06-13 20:53:43 UTC
With my recent commit it seems to work fine now:
http://git.gnome.org/browse/dia/commit/?id=af9e49e5cbce7c5706f318a4cd1da3292da0f0cf