One Quickie


Using ImageMagick to get the dimensions of a file (Unix->General)
% identify filename.jpg

If you want to be studly, you can use -format to tailor the output

% identify -format "insert into bw_graphics values (generate_primary_key(), '/images/llamas/%f', %w, %h);" *.jpg
generates a sql insert statement for each image.



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com