sat 05 jan 2008 20:32:16 witte de withstraat
upload and scale
today i seem to have figured out how to make a php script that allows a user to upload an image, then creates a downsampled version at the desired display size, then copies the center of the image to a small square icon, which then becomes part of the icon menu.
notes:
• if the original uploaded image is too large, as in my original camera size, then the command to create an image from a jpeg will fail because it overshoots the memory allocation on the server. this might change if jva feels like allocating more memory, but that's got to be up to him cuz it's his server.
• i need to remember to make sure the folders i'm trying to write to have their permissions set to allow uploading and writing to them.
ok so now i just need to figure out how to stuff all this mechanism back into the catalog structure for pianos restaurés.
i started out sometime friday afternoon taking a series of test fotos, four or five pictures each of ten ordinary objects. so i have files like "eyeglasses 01". "blue scissors 05".
this way i can later try to organize it according to "items" in the catalog page for cr.
ok so today was not a *total* waste of time.
but this is really the kind of thing i should be handing off to a "real" web programmer. if this job had much of a budget that's what i would do.