Page 1 of 1

temp drive filling up with images, hard drive full

Posted: 2009-05-05T14:31:06-07:00
by jmar
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,

Re: temp drive filling up with images, hard drive full

Posted: 2009-05-05T16:38:59-07:00
by fmw42
I am not a Windows expert, but you may have to double the %

see http://www.imagemagick.org/Usage/windows/

Re: temp drive filling up with images, hard drive full

Posted: 2009-05-05T18:33:13-07:00
by magick
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

Posted: 2009-05-06T07:45:31-07:00
by jmar
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!