Looking for command line utility to extract dpi from image files

  • Thread starter No I'm Spartacus
  • Start date
N

No I'm Spartacus

Hi,

I'm looking for a self contained (ie no installer, no .dll's) command
line utility (for Windows), to extract the dpi (ie resolution)
information from a folder and subfolder of image files (TIFF's in the
main), and pipe it to a .txt file. Does anyone know of one? It has to
be self contained - I will be running it on a PC (if it even exists),
to which I don't have admin rights. And it has to fit on a floppy
disk.
 
T

Thorkild Dalsgaard

"No I'm Spartacus" wrote
I'm looking for a self contained (ie no installer, no .dll's) command
line utility (for Windows), to extract the dpi (ie resolution)
information from a folder and subfolder of image files (TIFF's in the
main), and pipe it to a .txt file. Does anyone know of one? It has to
be self contained - I will be running it on a PC (if it even exists),
to which I don't have admin rights. And it has to fit on a floppy
disk.

www.IrfanView.com
Install to your PC

Then copy i_view32.exe to floppy disk

Examples for /info which contains .dpi:
i_view32.exe c:\test.tif /info=c:\test.txt
i_view32.exe c:\*.tif /info=c:\tifs.txt

Regards
Thorkild Dalsgaard
 
N

No I'm Spartacus

"No I'm Spartacus" wrote

www.IrfanView.com
Install to your PC

Then copy i_view32.exe to floppy disk

Examples for /info which contains .dpi:
i_view32.exe c:\test.tif /info=c:\test.txt
i_view32.exe c:\*.tif /info=c:\tifs.txt

Regards
Thorkild Dalsgaard

Ah, IrfanView, one of my favourite ever freeware's - I use it all the
time, and though I knew it had a command line mode (useful for batch
printing), I never knew it had a /info switch. Thanks very much
Thorkild! Combine the output from IrfranView with the Windows findstr
command, and that should do what I want.
 
H

Hermux Tantamoq

Thorkild said:
Then copy i_view32.exe to floppy disk

Examples for /info which contains .dpi:
i_view32.exe c:\test.tif /info=c:\test.txt
i_view32.exe c:\*.tif /info=c:\tifs.txt

Regards
Thorkild Dalsgaard

hi Thorkild, do you know if is it possible to do that also with "colour
mode" ?
sometimes i receive cd's with jpeg in CMYK mode and i don't want them... if
i can do a "script-scan" it would be nice.

what about? :)

thanks for your attention!




Inviato da X-Privat.Org - Registrazione gratuita http://www.x-privat.org/join.php
 
T

Thorkild Dalsgaard

possible to do that also with "colour
mode" ?
sometimes i receive cd's with jpeg in CMYK mode and i don't want them... if
i can do a "script-scan" it would be nice.

I do not think so. Here is a sample of a .jpg picture
taken with a Canon IXUS 700:

Examples for /info:
i_view32.exe c:\20060604_101620.jpg /info=c:\test.txt

[20060604_101620.jpg]
File name = 20060604_101620.jpg
Directory =
Compression = JPEG
Resolution = 0 x 0 DPI
Image dimensions = 3072 x 2304 Pixels (7.08 MPixels)
Print size = 108.4 x 81.3 cm; 42.7 x 32.0 inches
Color depth = 16,7 Millions (24 BitsPerPixel)
Number of unique colors = 53538
Disk size = 2.03 MB (2,123,488 Bytes)
Current memory size = 20.25 MB (21,233,704 Bytes)
File date/time = 2006-06-04 / 11:16:20

Regards
Thorkild Dalsgaard
 
N

No I'm Spartacus

Ah, IrfanView, one of my favourite ever freeware's - I use it all the
time, and though I knew it had a command line mode (useful for batch
printing), I never knew it had a /info switch. Thanks very much
Thorkild! Combine the output from IrfranView with the Windows findstr
command, and that should do what I want.

Damn. Wasn't that easy I'm afraid to report. I think I may have
stumbled onto a bug in IrfanView. The files I wanted to operate on are
TIFF's. If I open up IrfanView (ie the GUI), and go File-Open, I can
open each file, and they all display fine. However, when I use the
command line to try and process them all at once (either using /info
or /print), I get the error message "Can't read file header". This is
really weird - going File-Open from inside IrfanView itself and the
files work fine. No corruption or anything like that in the images
themselves. I've emailed Irfan to report a possible bug, but in the
meantime, does anyone know of another utility that I might be able to
try?
 

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

Top