[Nottingham] Image list

Robert Ross rross at dmu.ac.uk
Fri Dec 1 12:49:58 GMT 2006


Hi Alex,

> "file" does what you want (or my version does anyway) at 
> least for GIF files (doesn't seem to work with PNG or JPEG).  
> I imagine you want it to do JPEG though... 

Yep :-)

>so you might have 
> to get ImageMagick and do...

Hmmm, starting to look that way, but would be loath to do it.

> identify /var/www/images/*
> and you'd get a full list. 
> 
> or if it complains about too long argument lists...
> for f in /var/www/images/*;do identify $f;done
> 
> Could even put "| tee images.txt" on the end to create a file 
> recording them whilst also displaying on screen...
> 
> Hope that helps...

Very clear explanation; cheers.

Thanks,

Robb 



More information about the Nottingham mailing list