Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Need help to get all info of image thru batch file.


23 Jul 2013   #1

Windows 7 Ultimate x64
 
 
Need help to get all info of image thru batch file.

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:
#id;width;height;bpp;type;alpha;mask;name

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??

My System SpecsSystem Spec
.

23 Jul 2013   #2

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

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 System SpecsSystem Spec
23 Jul 2013   #3

Windows 7 32 bit
 
 

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 System SpecsSystem Spec
.


23 Jul 2013   #4

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by x BlueRobot View Post
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.

Quote   Quote: Originally Posted by MilesAhead View Post
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. hope it work as i want.
My System SpecsSystem Spec
23 Jul 2013   #5

Windows 7 Ultimate x64
 
 

@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 System SpecsSystem Spec
23 Jul 2013   #6

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

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 System SpecsSystem Spec
23 Jul 2013   #7

Windows 7 Ultimate x64
 
 

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 System SpecsSystem Spec
23 Jul 2013   #8

Windows 7 32 bit
 
 

Ask the author here
My System SpecsSystem Spec
Reply

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




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 02:52 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33