Invoice image scaling problem

John Ralls jralls at ceridwen.us
Sat May 7 10:57:21 EDT 2011


On May 7, 2011, at 1:47 AM, Axel Essbaum wrote:

> 
> On May 7, 2011, at 1:27 , John Ralls wrote:
> 
>> 
>> On May 6, 2011, at 1:41 PM, Axel Essbaum wrote:
>> 
>>> 
>>> FWIW, this happens with both the Macports-built version of Gnucash 2.4.5 and the 2.4.5 package from Sourceforge.
>>> 
>>> - Axel
>>> 
>>> On May 6, 2011, at 22:27 , Axel Essbaum wrote:
>>> 
>>>> 
>>>> I've been using Gnucash 2.2.9 under OSX 10.6 for about a year.  I create invoices using a style sheet that includes a Heading Banner image (Heading Alignment: Center).
>>>> 
>>>> I just built Gnucash 2.4.5 (OSX 10.6.7) and find that the images on my invoices are now being scaled 2x.  The edges of the images are pixelated, looking like a simple 2x scaling was done.
>>>> 
>>>> Is this expected in 2.4.5?  Can I turn it off?  I could just make a new 1/2 size version of my logo, but that won't help the pixelated edges.
>>>> 
>>>> Thanks for any help,
>>>> 
>> 
>> I would have to guess that it's something to do with using WebKit instead of GtkHtml for the rendering engine. The first thing I'd fiddle with is the settings in the IMG tag that inserts the image into the report rather than the image itself... but I am just guessing.
> 
> Thanks John,
> 
> Where would I find these settings?

Oops, I thought that you had to write Scheme to do that. I see now that there's a handy dialog box, but that you're stuck with what it sets in the html.

So I went to look at that, and it's a bare img tag with no parameters other than the href. 

I guess you'll have to make your adjustments in your image. If you're starting from an svg, you could try passing the svg (with the appropriate sizes set) as your logo. Webkit renders svgs, and that should produce the best image quality. Otherwise edit your image to a smaller size, but keep the pixel dimensions the same (or resample higher) so that the dpi figure is higher; perhaps that will fix the pixellation.

Sorry to lead you down the wrong path.

Regards,
John Ralls



More information about the gnucash-user mailing list