Resizing images depending on client's dimensions





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

3
Date Submitted Fri. Dec. 14th, 2007 4:41 PM
Revision 1
Scripter Fordiman
Tags "javascript" | Form | Prototype
Comments 0 comments
Prototype's Form.Methods library has a nice piece of code called 'serialize', which, if passed with the optional 'hash' parameter set to true, will convert an HTML form into a Javascript Object.

I was dismayed, however, to find that there was no way to reverse it; just as simply load a form using a Javascrip object.

So, here's one. enjoy.
7
Date Submitted Wed. Oct. 18th, 2006 8:22 AM
Revision 1
Beginner elderfo
Tags "image" | "php" | "resize',
Comments 2 comments
Simple class i wrote to output or save jpeg files. Could easily be adapted to work for other formats, but at design time i only needed JPEG support. I may revise it at some point.