satan's little suckass demonstration (greck) wrote,
satan's little suckass demonstration
greck

alright... after around 18 months of procrastinating, I've finally written the thumbnailing script for all the photos I publish on the web. now, I need testing, which is where y'all come in.

start here, and you'll get redirected to the page o' help that explains how things work. now, try and break it. things I need to know about... anything you do that leads to a completely blank page, or a 404 or 500, or any other error. basically, anything that's not a page of thumbnails, a single big image, or the help page.

now, if you check the source of the actual images you'll find a URL that looks like this:

http://www.unpunk.com/~greck/photos/75/20000704/20000704194020.jpg

the "75" in there is the length of the "short" side of the image, i.e. to get a 640x480 image (be it portrait or landscape), you just change that 75 to 480 and it'll take care of it. that said, only certain sizes are allowed (from a legal values table), up to and including the original size of the image. if you request an illegal size, you are redirected to the closest valid size that matches. in the case that you request a size equidistant from two legal options, the smaller is provided. so,

http://www.unpunk.com/~greck/photos/330/20000704/20000704194020.jpg

ends up delivering a 400x300 image. anything in that spot that evaluates to zero results in the smallest allowable image being delivered. the one exception is the size can be specified as "orig". this differs from specifying the image's original size numerically in that if specified numerically, the image will be recompressed at the configured rate, whereas "orig" gets you the big ass version right from the camera.

allowable values in that blank should be:

48, 75, 120, 240, 300, 480, 600, 768, 864, 1200, 1536, 1920, 2304, orig

all that said, it's something else that could break, a lot. if you can make it do anything it shouldn't, please let me know how you did it.

thanks a lot to anyone who takes the time to poke at this. I've done about all the testing I can handle and think I have most of the major bugs worked out, but there's always something that falls through the cracks.
Subscribe

  • (no subject)

    I promised kitara and dakus that I'd be getting with the program again by 8/2 because I want to document more about my trip…

  • (no subject)

    Season's Greetings! to all and their families. Please note my lack of putting words into boxes here is no indication of lack of reading several…

  • (no subject)

    links of the morning, via N.F. Autistic savant draws Rome from memory.</> Japanese men running in synchronized slow motion.[1] Donald in…

  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 5 comments