From: Ashley M. K. <as...@pc...> - 2002-12-31 20:33:48
|
Scott Sawyer wrote: >For those of us that are coding challenged (me). How is that? > The default method is to generate only one preview, 100 pixels: print "Beginning preview generation...\n"; foreach $file (@FilesToPreview) { createDisplayImage($previewMaxDimension, '', $file); print "Created preview for \"$file\"\n"; } If you want the others, you can augment that. I wanted to have 512, 640 and 800 created, so my code looks like: foreach $file (@FilesToPreview) { createDisplayImage($previewMaxDimension, '', $file); createDisplayImage(512, '', $file); createDisplayImage(640, '', $file); createDisplayImage(800, '', $file); print "Created preview for \"$file\"\n"; } Please note that I added an extra size on my site. I have both a 'tiny' and a 'small'. -- W | I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |