29 |
// |
// |
30 |
//The 3 programs in the 3-program suite are: |
//The 3 programs in the 3-program suite are: |
31 |
// |
// |
32 |
// pics_filenames_canonize.php (this program): |
// pics_filenames_canonize.php (this script): |
33 |
// Converts all names of files in a directory to lower-case, and makes substitutions for any |
// Converts all names of files in a directory to lower-case, and makes substitutions for any |
34 |
// unusual characters. |
// unusual characters. |
35 |
// |
// |
36 |
// pics_thumbnails_make.php: |
// pics_thumbnails_make.php: |
37 |
// Creates thumbnails from recognized image types. The thumbnails are named relative to the |
// Creates thumbnails from recognized image types. The thumbnails are named relative to the |
38 |
// original image file with the suffix "_small". Only 20 files are converted on each |
// original image file with the suffix "_small". To support shared hosting environments where |
39 |
// invocation of the program, to avoid the involuntary process termination that typically |
// CPU utilization of a script may be capped, there is a configuration constant in the script |
40 |
// occurs in a shared hosting environment when a process uses too much CPU time. The program |
// that will perform only a fixed number of conversions per invocation. If this configuration |
41 |
// should be run repeatedly until it indicates that it has no more thumbnails to create. |
// option is used, the script should be run repeatedly until it indicates that it has no more |
42 |
|
// thumbnails to create. |
43 |
// |
// |
44 |
// If any full-sized photos are modified, any corresponding thumbnails should be deleted and |
// If any full-sized photos are modified, any corresponding thumbnails should be deleted and |
45 |
// pics_thumbnails_make.php and pics_indexfile_make.php should be run again. |
// pics_thumbnails_make.php and pics_indexfile_make.php should be run again. |