I have responded time and time again to this issue.

I am posting this again so that it goes into the mailing list archives.

Images do not have a DPI.  Period.

Images are made of Pixels.

You make your DPI when you scale an image in a document.

A 300x300 pixel image is 300DPI when sized to 1 inch x 1 inch.

A 300x300 pixel image is 100DPI when sized to 3 inch x 3 inch.

A 3 inch x 3 inch placement will need to be a 900 x 900 pixel image 
To have 300DPI.

Pixels / inches = DPI.

It really is that simple.


-Bill Ensley
www.bearprinting.com


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, April 14, 2008 12:59 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Saving images at greater than 72dpi
> 
> -------------- Original message ----------------------
> From: Dominic Maricic <[EMAIL PROTECTED]>
> >
> > It seems there is more to this. 
> 
> There is, indeed! Keeping the discussion on iText, you can 
> find all you need to know in Chapter 5 of the book. Do you 
> have a copy? If not, please buy it.
> 
> > After using the code above to save the png, photoshop told me the 
> > image was 72dpi. Using the libpng library I was able to see 
> that the 
> > meta data for the resolution of the new image doesn't exist, but it 
> > does for the original. So the problem seems to be that either 
> > BufferedImage or ImageIO strips the image of any resolution 
> > information. Of course this makes it more difficult to then 
> insert into iText and scale it properly.
> 
> I'm somewhat mystified by your efforts to pre-process images 
> that are already in formats that can be handled entirely by 
> iText methods. iText has all the methods you need to 
> determine the dimensions of any image (that it is designed to 
> employ). You can then use those dimensions to determine the 
> scale factor needed to scale the images to the sizes you want.
> 
> Please read Chapter 5 and adapt the examples you find there 
> to your own situation. You might also try reading the fine 
> documentation.
> 
> Cheers,
> Bill Segraves
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by the 2008 JavaOne(SM) 
> Conference Don't miss this year's exciting event. There's 
> still time to save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
> .sun.com/javaone
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Do you like iText?
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Or leave a tip: https://tipit.to/itexttipjar



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to