Solved Need help to get all info of image thru batch file.

aakshat

Stay Calm
Power User
Local time
8:40 AM
Messages
129
Location
India
Ok so i have some images in an folder and i want to get all images information
in a text file. these are the infos i want to get.

id= sequence number of the image
width= image width value
height= image height value
bpp= rather it is a 16,32 bit image
type= this value could be 1 for all images
alpha= alpha channel value for all images is 0
mask= mask value
name= image name

For example
Code:
[B]#id;width;height;bpp;type;alpha;mask;name
[/B]
0;480;800;16;1;0;0x00000000;facebook.png
1;480;800;32;1;0;0x00000000;shazam.png
2;80;80;32;1;0;0x00000000;icon_gmaps.png

I can't do this one by one because there are hundreds of image like this
so need a batter fast way.
Is there anyone who could write a batch file to do this task??:huh:
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64i3 M380 2.53GHz4 Gbintel HD
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Insperon N5010
OS
Windows 7 Ultimate x64
CPU
i3 M380 2.53GHz
Motherboard
TOSHIBA MK5076GSX
Memory
4 Gb
Graphics Card(s)
intel HD
Sound Card
IDT
Screen Resolution
1366x768
Keyboard
Standerd PS2
Antivirus
ESET Smart Security 7
Browser
Google Chrome
That's not exactly possible in batch, you could find files with a certain name and text files with certain strings, but I don't you can find files with certain properties.

Where are all your pictures stored?
 

My Computer My Computer

Computer type
Laptop
I don't know if Imageinfo gives enough information. But being CLI it should integrate with batch. Also take a look on Sourceforge.net. There are many unheralded gems there.
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
That's not exactly possible in batch, you could find files with a certain name and text files with certain strings, but I don't you can find files with certain properties.

Where are all your pictures stored?

On my pc.

I don't know if Imageinfo gives enough information. But being CLI it should integrate with batch. Also take a look on Sourceforge.net. There are many unheralded gems there.
Thankx for replaying. i'll look at it. :rolleyes:hope it work as i want.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64i3 M380 2.53GHz4 Gbintel HD
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Insperon N5010
OS
Windows 7 Ultimate x64
CPU
i3 M380 2.53GHz
Motherboard
TOSHIBA MK5076GSX
Memory
4 Gb
Graphics Card(s)
intel HD
Sound Card
IDT
Screen Resolution
1366x768
Keyboard
Standerd PS2
Antivirus
ESET Smart Security 7
Browser
Google Chrome
@MilesAhead
I have tried Imageinfo But it dint help.
I cant find how it works.
i have found This page which shows something what i want.(Look at the end of the page)
But i am unable to understand it properly.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64i3 M380 2.53GHz4 Gbintel HD
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Insperon N5010
OS
Windows 7 Ultimate x64
CPU
i3 M380 2.53GHz
Motherboard
TOSHIBA MK5076GSX
Memory
4 Gb
Graphics Card(s)
intel HD
Sound Card
IDT
Screen Resolution
1366x768
Keyboard
Standerd PS2
Antivirus
ESET Smart Security 7
Browser
Google Chrome
That's written in Python - a programming language - it's not commands to be used in a batch file, and I have no experience at all with Python.
 

My Computer My Computer

Computer type
Laptop
Yes i know that it is in python. it was just for point that it could be possible.
I have searched for commands for get those info.
and i actually found that it is possible to get them.
Yes they are not in write shape. i mean some dont print
values some need to write image name.
but they are separate commands so can't get them to work together to write all info
in a single line.
So there are a lot work do do in this.
I think only a dev could help in this
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64i3 M380 2.53GHz4 Gbintel HD
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Insperon N5010
OS
Windows 7 Ultimate x64
CPU
i3 M380 2.53GHz
Motherboard
TOSHIBA MK5076GSX
Memory
4 Gb
Graphics Card(s)
intel HD
Sound Card
IDT
Screen Resolution
1366x768
Keyboard
Standerd PS2
Antivirus
ESET Smart Security 7
Browser
Google Chrome
Ask the author here
 

My Computer My Computer

At a glance

Windows 7 32 bitAMD 5200+ dual core2 GBNVidia GeForce 6150SE 128 MB
Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top