Hi,
I am trying to use Imagemagick at the command line (on Windows) to run through a bunch of images printing out the filename and the x resolution and y resolution. Here is the command:
identify -ping -format "%f has resolutions %x by %y \n" GS-B3*.tif
which should print out the following (sample line):
GS-B3-G57.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
I am trying to do this with several hundred images, but the tmp folder keeps filling up with temp copies of my images.
My current temp folder is set to: C:\Documents and Settings\myName\Local Settings\Temp
I have spent a fair amount of time looking at Cache Storage and Resource Requirements on the Architecture page on the website, and have tried to change the file settings, but to no avail. Can these settings be changed when using the .exe version, and how can I prevent these temp images from filling up my hard drive?
Thanks,
temp drive filling up with images, hard drive full
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: temp drive filling up with images, hard drive full
I am not a Windows expert, but you may have to double the %
see http://www.imagemagick.org/Usage/windows/
see http://www.imagemagick.org/Usage/windows/
Re: temp drive filling up with images, hard drive full
An easy fix is to use a batch file that loops across each image filename and calls the identify program for one image at a time.
Re: temp drive filling up with images, hard drive full
Thanks for the comments. I tried calling identify for each file, and that solved the disk filling up issue...THANKS!
Here is my DOS command that I used at the command line (note that you may have to use %% in front of the variables if used in a batch script, as previously noted). I appended the results of each individual call to the output file using >>, and then looked at a.out for my results:
for /f %z in ('dir /o:n /b') do identify -ping -format "%f has re
solutions %x by %y \n" %z >> a.out
The resulting a.out looked like this (snippet):
GS-B1-A01.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
GS-B1-A02.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
GS-B1-A03.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
Thanks again!
Here is my DOS command that I used at the command line (note that you may have to use %% in front of the variables if used in a batch script, as previously noted). I appended the results of each individual call to the output file using >>, and then looked at a.out for my results:
for /f %z in ('dir /o:n /b') do identify -ping -format "%f has re
solutions %x by %y \n" %z >> a.out
The resulting a.out looked like this (snippet):
GS-B1-A01.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
GS-B1-A02.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
GS-B1-A03.tif has resolutions 1600 PixelsPerInch by 1600 PixelsPerInch
Thanks again!