assume that all jpg files is locate at http://www.somewhere.something/dir/


wget -r -l1 --no-parent -A.jpg http://www.somewhere.something/dir/


See the manual of wget at http://www.delorie.com/gnu/docs/wget/wget_31.html
posted by citadel