GNOME Bugzilla – Bug 628472
strange image sizes on saving charts
Last modified: 2011-10-27 18:14:04 UTC
Created attachment 169210 [details] sample file The attached file contains a chart. If you save it as an svg and drag it into the gnumeric window you get an image that is slightly smaller with a fill-images that is somewhat larger. If ou save it as an png and drag it into the gnumeric window you get an image that is twice the natural size and a fill-image in normal size.
The svg image might have the same size if we used librsvg instead of gdk-pixbuf to load svg images. The image filling looks quite differently when the svg image is opened in inskape. About the png image, you get the same size if you export at 96 dpi instead of the default 150 dpi.
I don't understand why the default setting does not yield a image of the same size. That is quite unexpected. But more importantly, the fill-image is not scaled correctly. If we increase the size (or dpi) of the chart when exporting we should surely do teh same to teh fill image!
goffice doesn't know the resolution used by gnumeric. I don't know why 150 dpi was chosen. It surely make sense to scale vector images, but I'm not sure for bitmaps. Patterns are not scaled either.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report. Note that the image and pattern fillings are still somewhat different in the graph and in the shot.