This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Computer Graphics with Photoshop > November 2003 > Listing images with dpi resolution





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Listing images with dpi resolution
Martin Skultety

2003-11-19, 11:00 pm

Hi,

I have a collection of folders with thousands of images (JPG and TIF).
Unfortunately their dpi resolution is not consistent...

To sort them out without having to open every single file, my goal is
to generate a list of all images with their respective dpi resolution,
something similar to this:

picture1.jpg 350 dpi
picture2.jpg 320 dpi
picture3.jpg 180 dpi
etc.

Is Photoshop or any shareware able to generate such a list?

Thanks for your help. Martin
jjs

2003-11-19, 11:01 pm


"Martin Skultety" <martinskultety@hotmail.com> wrote in message
news:7168c377.0311190221.3c9a9736@posting.google.com...
> Hi,
>
> I have a collection of folders with thousands of images (JPG and TIF).
> Unfortunately their dpi resolution is not consistent...
>
> To sort them out without having to open every single file, my goal is
> to generate a list of all images with their respective dpi resolution,
> something similar to this:
>
> picture1.jpg 350 dpi
> [...]
> Is Photoshop or any shareware able to generate such a list?


(I'm answering withthout a definitive answer hoping to provoke input.)

It think it is highly unlikely you can get DPI from the image because all
that is there, really, is pixels. If you assume target dimensions, then you
can do some arithmetic to calculate and therefore show "dpi" as
pixels-per-inch (PPI) for that target size . WindoZe shows pixel dimensions
of GIF and JPEG files, but I don't know where it gets it. Of the 23 NT file
attributes I know (there may be more), none concern pixel size. Does anyone
know where WindoZe finds that information? Is it caluculated by knowing type
of file (.ext) then cluster factor and file size?


Tacit

2003-11-19, 11:01 pm

>It think it is highly unlikely you can get DPI from the image because all
>that is there, really, is pixels.


With most image formats, the header of the file lists the pixel dimensions and
the resolution.


--
Rude T-shirts for a rude age: http://www.villaintees.com
Art, literature, shareware, polyamory, kink, and more:
http://www.xeromag.com/franklin.html

Warren Sarle

2003-11-19, 11:01 pm

"Martin Skultety" <martinskultety@hotmail.com> wrote in message
news:7168c377.0311190221.3c9a9736@posting.google.com...
> I have a collection of folders with thousands of images (JPG and TIF).
> Unfortunately their dpi resolution is not consistent...
>
> To sort them out without having to open every single file, my goal is
> to generate a list of all images with their respective dpi resolution,
> something similar to this:
>
> picture1.jpg 350 dpi
> picture2.jpg 320 dpi
> picture3.jpg 180 dpi
> etc.
>
> Is Photoshop or any shareware able to generate such a list?


This is another task that is easy to do with a script if you are
familiar with scripting. But why do you care about "dpi"?
It's an arbitrary value that rarely has any important effect
on anything, unless your printer software is really primitive.



jjs

2003-11-19, 11:01 pm


Following my own post (silly me) - Okay, the GIF (and I presume JPEG) images
do have the pixel dimensions stored in the header; specifically for GIF 89a
(89a) in the Image Descriptor Block. There is a lot other data as well. At
this point I depart, not wishing to cut code again, ever in my life. ;)


Martin Skultety

2003-11-20, 12:57 pm

If the resolution is stored in the header of the image, is there any
application able to list the resolution of every image within a
folder?
jjs

2003-11-20, 1:25 pm


"Martin Skultety" <martinskultety@hotmail.com> wrote in message
news:7168c377.0311192003.54c0023f@posting.google.com...[QOUTE]
> If the resolution is stored in the header of the image, is there any
> application able to list the resolution of every image within a
> folder?[/QUOTE]

Resolution is a misnomer. It does not exist. Only pixels exist, but I know
what you mean, so for all practical purposes, look in the program that is
the subject of this list. Photoshop V7 does that. See the Browser (Window->
File Browser). Mess with the little arrows at the bottom of the browser to
get what you want. You probably want to look at rank: 'resolution',
'details'. 'Resolution (per se) will be in bold. If that feature does not
suit you, then try ACDSee.


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews