Re: change dpi without changing pixels dimensions with PIL?

From: Gustavo Campanelli (birdiepageANTI_at_SPAMciudad.FILTERcom.ar)
Date: 12/17/03


Date: Wed, 17 Dec 2003 11:45:46 -0300

duikboot wrote:
> Hi there,
>
> In Photoshop I can, when I want to change the dpi(dots per inch) of a
> picture, arrange that the picture won't be resized. Do you know of a way, I
> can accomplish this in python with PIL? If I use this script it changes the
> dpi, but the picture becomes huge.
>
> Thanks
>

I might be completely wrong, but I think you have an error here.
Basically, a monitor has a set resolution (the resoultion at which you
run your graphics card). That resolution has a certain number of dots
per inch. So, if you increase the dots per inch of an image, you are
making it bigger and will require more monitor space or page area to
show or print it. What you are doing with Photoshop, most probably, is
increase the Dots Per Inch (DPI) AND rescaling it only for viewing
purposes on your screen. So although you see it the same size, the
picture surely is bigger. If that's the case, your script is doing what
it's supposed to do, but you need to "fit to screen" or something like
that if you want it to remain the same size ONLY for viewing purposes.

Gedece



Relevant Pages

  • Re: High pixels, low DPI ??
    ... dpi is the number of dots the printer prints ... used to fill one inch of print. ... The latter is PPI - pixels per ... concerned with how many pixels of picture should go to make up ...
    (rec.photo.digital)
  • Re: Sylvania 27" TV, are they any good?
    ... there doing stuff and still see the picture well. ... I got mine on sale about two ... I also happen to have a Sylvania 27 inch Tv, ...
    (alt.games.video.xbox)
  • Re: Sylvania 27" TV, are they any good?
    ... > nice picture, especially when you look at bang for the buck. ... > sale about two years ago for $99 at Sears...they had it on sale and then ... > I also happen to have a Sylvania 27 inch Tv, ...
    (alt.games.video.xbox)
  • Re: Original Size and Scale values in Format Picture window questi
    ... if the picture has an embedded pixel per inch value (PPI) then Word uses that. ... If I created a PNG graphic with no established PPI but used the same per inch sizing and the Picture options was set to 72 PPI then ...
    (microsoft.public.word.drawing.graphics)
  • Re: Change position of return address on envelope
    ... The default margin settings for such an envelope are Top 0.25" and Left 0.4". ... an inch from the top left side and about a half inch down from the top of the ... All that did was put a picture of an envelope in my document and now i can't ... does anybody know how to get rid of the envelope in my document? ...
    (microsoft.public.word.mailmerge.fields)