Solved

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

Posted on 2003-11-11
6
437 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
  • 4
  • 2
6 Comments
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
0
 
LVL 35

Expert Comment

by:TimYates
Comment Utility
0
 

Author Comment

by:daFlo
Comment Utility
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
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 35

Accepted Solution

by:
TimYates earned 390 total points
Comment Utility
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
Comment Utility
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
Comment Utility
> 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

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…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now