Solved

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

Posted on 2003-11-11
6
448 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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

726 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