Retreiving ppi and print size from jpg or gif files

B

blaine

I've been searching around trying to find a package that would let me
find out the Pixels Per Inch (ppi), print size and non-compressed file
size of and image. However I have not had any luck yet.

Does anyone know where I can get such a package or how to code this?

Ideally it would work something like the following:

my $obj = new ImageInfo($image);
my $ppi = $obj->ppi();
my $printWidth = $obj->printWidth();
my $fileSize = $obj->uncompressedFileSize();

Look forward to your response.
Blaine
 
C

Chris Mattern

I've been searching around trying to find a package that would let me
find out the Pixels Per Inch (ppi), print size and non-compressed file
size of and image.

What KIND of image? Ah, jpeg or GIF. Don't put important info about
your problem *only* in the header. First stop for anyone looking for
a package: http://search.cpan.org. A search on jpeg turned up
288 packages. A search on gif turned up 535. I expect that something
in there will meet your needs.
However I have not had any luck yet.

Does anyone know where I can get such a package or how to code this?

Ideally it would work something like the following:

my $obj = new ImageInfo($image);
my $ppi = $obj->ppi();
my $printWidth = $obj->printWidth();
my $fileSize = $obj->uncompressedFileSize();

Look forward to your response.

By the way. Reposting your message because you didn't get a response in
nineteen minutes is not a good way to endear you to the group.

--
Christopher Mattern

"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top