Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 11, 2005, 8:21 pm
rate this thread
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.
Re: Retreiving ppi and print size from jpg or gif files
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.
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.
"Which one you figure tracked us?"
"The ugly one, sir."
"...Could you be more specific?"
- » Retreiving ppi and print size from jpg or gif files
- — Previous thread in » PERL Discussions