• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Dimensions of pictures?

S

Stan Brown

Flightless Bird
I have a bunch of .JPG and .GIF files in a folder, and I'd like to
get their widths and heights in pixels into a text file. Is there
some clever way to do this, using PowerShell maybe?

Or is there a free application that can do this?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
 
N

Nil

Flightless Bird
On 17 Sep 2010, Stan Brown <the_stan_brown@fastmail.fm> wrote in
alt.windows7.general:

> I have a bunch of .JPG and .GIF files in a folder, and I'd like to
> get their widths and heights in pixels into a text file. Is there
> some clever way to do this, using PowerShell maybe?
>
> Or is there a free application that can do this?


I believe this command line utility can to it:

http://owl.phy.queensu.ca/~phil/exiftool/
 
N

Nil

Flightless Bird
On 17 Sep 2010, Nil <rednoise@REMOVETHIScomcast.net> wrote in
alt.windows7.general:

> On 17 Sep 2010, Stan Brown <the_stan_brown@fastmail.fm> wrote in
> alt.windows7.general:
>
>> I have a bunch of .JPG and .GIF files in a folder, and I'd like to
>> get their widths and heights in pixels into a text file. Is there
>> some clever way to do this, using PowerShell maybe?
>>
>> Or is there a free application that can do this?

>
> I believe this command line utility can to it:
>
> http://owl.phy.queensu.ca/~phil/exiftool/


For example, the command line:

exiftool -S -ImageSize test.jpg

Will return:

Image Size: 4000x3000
 
B

boardhead

Flightless Bird
Stan Brown wrote on 09/17/2010 07:49 ET :
> I have a bunch of .JPG and .GIF files in a folder, and I'd like to
> get their widths and heights in pixels into a text file. Is there
> some clever way to do this, using PowerShell maybe?
>
> Or is there a free application that can do this?
>
> Stan Brown, Oak Road Systems, Tompkins County, New York, USA
> http://OakRoadSystems.com
> Shikata ga nai...
>

I'm going to suggest exiftool also, but with this command line:

exiftool -T -imagesize -filename DIR &gt; out.txt

This will create an output txt file with the sizes and names of all files in
directory &quot;DIR&quot;.

- Phil
 
S

Stan Brown

Flightless Bird
On Fri, 17 Sep 2010 13:42:30 +0000 (UTC), Nil wrote:
>
> On 17 Sep 2010, Stan Brown <the_stan_brown@fastmail.fm> wrote in
> alt.windows7.general:
>
> > I have a bunch of .JPG and .GIF files in a folder, and I'd like to
> > get their widths and heights in pixels into a text file. Is there
> > some clever way to do this, using PowerShell maybe?
> >
> > Or is there a free application that can do this?

>
> I believe this command line utility can to it:
>
> http://owl.phy.queensu.ca/~phil/exiftool/


Terrific, Nil -- thanks. Thanks also to "Boardhead" for the specific
command line.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com
Shikata ga nai...
 
Top