[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Image resolution for PDF

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Sun, 6 Apr 2008 14:29:56 +0200

Steve,

On 06/04/2008, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
>
> Jean-Marc van Leerdam wrote:
>
> > But if we really want to include a larger image, we just have to set
> > it's DPI to a higher value. That way, the image will fit on the page and
> > still show the required detail when printing (or by zooming in when viewing
> > the PDF).
> >
>
> The problem with this approach is that we'd have to check this for every
> single image (and there are a lot of them) to find a dpi which makes it fit
> on a page.
>
> But if you have some time to do this, be my guest :)

My proposal is to stick with the adjustimages.bat you have now, but change
it to use 150 dpi and a max width and height of 800 and 1250.

The best solution would be to check if an image fits (pixelwidth / dpi <=
limitW and pixelheight/dpi <= limitH) and if it doesn't fit, automatically
adjust the dpi to make it fit.

I'll see if I can find some tool to examine an image file, do the math and
then modify the dpi setting if needed...

-- 
Regards,
Jean-Marc
----------------
    ___
   // \\  @@     "De Chelonian Mobile"
  / \_/ \/._)    TortoiseSVN
<\_/_\_/ /      The coolest Interface to (Sub)Version Control
  /_/   \_\      Check out http://tortoisesvn.net
Received on 2008-04-06 14:30:13 CEST

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.