Solved

How do i get the resolution (dpi) of an image?

Posted on 2003-11-11
6
453 Views
Last Modified: 2012-06-21
I am using JAI for imagemanipulation.
I only want to get the (information of the) resolution of scanned pictures in TIFF and JPEG format with using java 1.3.1_02 and  JavaAdvancedImaging1.1.2.  
Example: me.tif = DIN A6 and scanned with 200x200dpi = shown in doublesize in java...
               or me.jpg = original 21x21 cm   scanned with 300x300 dpi = displayed in 63x63cm in java...
I don't know the dpi of the pics so i cannot display it in original size on my monitor...

Please help me,
thanks a lot flo

0
Comment
Question by:daFlo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 9722180
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9722187
0
 

Author Comment

by:daFlo
ID: 9746467
i wrote my own classes to read out the resolution...
I get all data i wanted but it was a littel work to write it...
but it works great ;) if anybody needs help about it contact me ...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 35

Accepted Solution

by:
TimYates earned 390 total points
ID: 9746527
Cool :-)

Errr....could you post the source code here?

Then ask for this question to be PAQ'd in community support :-)

That way, other people can find the solution too :-)

Congrats!!

Tim
0
 

Author Comment

by:daFlo
ID: 9746588
i must code it better....
because of some differences in the ImageFileDirectory of TiffImages...
with an non tiff6.0format it didnt find the sdesired offssets ...
but the code follows! its made for java 1.3.1
and your tip with the second link was the kick-off where i saw: I couldnT get any info without writing own sources you get the points ;D because i cannot get it back from this thread ...

flo
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9746628
> because i cannot get it back from this thread .

Eeek!  Thanks! :-)

For future reference, you can ask at:

http://www.experts-exchange.com/Community_Support/

for Q points to be reduced

Good luck with everything!

Tim
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question