silverorange labs


Comments are locked. No additional comments may be posted.

TheChillPill -

Very neat indeed! Thanks Guys, keep up the excellent work :-)

Nick Burka -

A few people were having trouble loading the Java applet with one version of the Java-plugin. It seems it deals pecularily with the CODEBASE attribute. I've fixed things, so hopefully it will work for everyone now.

Gregory Humber -

Excellent work guys :)

Byron -

Any chance of getting the .java files???


Brandon -

Small suggestion: the temp file that is created should be cleaned up after the crop. I added the following lines to the end of the process() function:
if (isset($this->tmpfilename)) $filename=$this->tmpfilename;
else $filename='tmpimage'.$this->uniqueID.'.jpg';

Daniel D. -

Very nice blog ! Keep up with the good work !

Steven Alyari -

Without releasing the .java files; it seems that you are not fully releasing the source code.

Can you possibly release that; I would be interested in improving it.

Thank you,
Steven Alyari

Nick Burka -

Steven Alyari - I somehow completely forgot to put the .java file in there. The Java source code file is now included in the zip file.

Steven Alyari -

thank you!

you guys rule.

dacloo -

Hmmmm, I made some changes so that in the page before cropping you can browse for a file on your harddisk, and then press "crop 'n up".

Offline (using http://localhost with my webserver) this works.
e.g c:\myPhoto.jpg is passed onto the script in $FILES_["name"];
but online it doesn't work. The class says: "Image not found".

What is exactly happening in the "process=0" step? Is it already being uploaded, or?
Do I need to copy the JPG from the harddrive, to the crop utility directory and use THAT file?

Patrick Schwarz -

I would suggest using the BufferedImage instead of the Image. That way you can do things like adjust brightness, negative, and stuff like that.

Peter Westerlund -

It doesn't work for me I get this message all the time, and I promise I haven't changed anything:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7040 bytes) in /free1go/i/f/ on line 232

H. White -

Great tool. Simple question once $process==1 is there a simple way to get the cropping demensions (starting x, starting y, ending x, ending y, etc.)that were used? Are the values in some variable or array? Note using the flash version.

We will crop a fullsize picture in another process and need the cropping demensions used.


Virgohippy -

H. White

The dimensions are passed as post values. You can access them as x1,y1,x2,y2 like any other posted value.

Took me a few minutes to figure that one out. ;)

Hope this helps. =)

Harry Wood -

When I follow the 'live demo' link here, I'm seeing 9 broken images. And 'Image Not Found' message when I click on them. It could be the dodgey corporate firewall I'm stuck behind I suppose.

Mike Gauthier -


The demo is fixed now, thanks for your report.