[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: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 07 Apr 2008 19:10:21 +0200

Jean-Marc van Leerdam wrote:
> Steve,
>
> On 06/04/2008, *Jean-Marc van Leerdam* <j.m.van.leerdam_at_gmail.com
> <mailto:j.m.van.leerdam_at_gmail.com>> wrote:
>
> Steve,
>
> On 06/04/2008, *Stefan Küng* <tortoisesvn_at_gmail.com
> <mailto: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...
>
>
> I did some scripting and used just a .cmd file together with the
> nconvert.exe you used. Attached is the result. This could (imho) replace
> adjustimages.bat.

Wow! Thanks a lot, that script works like a charm :)

I've committed your script in r12586 - that way you don't have to revert
r12558 first to correct the images again :)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2008-04-07 19:10:43 CEST

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