I'm gonna be posting my script, so before I do, I hereby release any code in the post under the MIT license.
Script now at http://www.ecf.utoronto.ca/~goodi/ht...ail_creator.pl
The script recursively explores a file tree, creating a copy of the directory structure and converts any .jpg files found in it the source tree to a thumbnail in the destination tree.
43 lines or so. Pretty straight forward.
Unfortunately, when I last tried running it, it didn't explore the entire tree. HELP! Why not? When you got a recursive function can you declare a DIR_HANDLE in it? Do the DIR_HANDLE's affect each other?
You know what? Ignore this. Its been discussed. Sorry dudes.
Dupelicate of: http://www.perlmonks.com/?node_id=17301
2007-03-08 Considered by thezip: No value
2007-03-10 Unconsidered by Arunbear: No action requested; in any case enough keep votes to prevent reaping {Keep: 15, Edit: 0, Reap: 25}
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.