jwlarson3rd has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w my $size=100; my $qual=50; my $prefix="tn_"; $dir="/home/bthcraft/public_html/john/images"; opendir(DIR,"$dir"); my @files=grep(/\.jpeg$/,readdir(DIR)); closedir(DIR); foreach $file (@files) { system("convert -geometry ".$size."x".$size."-quality $qual $file".$prefix."$file"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: creating thumbnails
by Zaxo (Archbishop) on Dec 16, 2003 at 23:06 UTC | |
|
Re: creating thumbnails
by b10m (Vicar) on Dec 16, 2003 at 23:17 UTC | |
|
Re: creating thumbnails
by r11132a (Scribe) on Dec 16, 2003 at 23:12 UTC | |
|
Re: creating thumbnails
by zentara (Cardinal) on Dec 17, 2003 at 17:53 UTC | |
by merlyn (Sage) on Dec 28, 2003 at 17:21 UTC | |
by zentara (Cardinal) on Dec 29, 2003 at 18:23 UTC | |
by Anonymous Monk on Aug 31, 2009 at 03:58 UTC | |
by zentara (Cardinal) on Oct 21, 2009 at 16:48 UTC | |
|
Re: creating thumbnails
by flyingmoose (Priest) on Dec 17, 2003 at 16:33 UTC |