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
Solved

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

Posted on 2003-11-11
6
445 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
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
object oriented programming comparison 5 77
hibernate example issues from command prompt 10 50
Desingning Refactoring existing code 2 26
Glassfish admin console not working 1 32
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

856 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