1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dimensions of pictures?

Discussion in 'Windows 7' started by Stan Brown, Sep 19, 2010.

  1. Stan Brown

    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...
     
  2. Nil

    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/
     
  3. Nil

    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
     
  4. boardhead

    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
     
  5. Stan Brown

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

Share This Page