View Full Version : save a clipped image
rinky
03-25-2009, 04:18 AM
I am using open laszlo recently.can anyone please tell me how i will be able to save a clipped portion of an image to database? Thanks in advance.
julien.lzx
03-26-2009, 07:11 AM
Hello rinky,
If you backend is PHP you could use the gd library to create the cropped image.
From Openlaszlo make a request to a PHP file using the source view, the new width and height and the coordinates.
Search php.net for the imagecopyresized function.
And then save it localy and/or to database.
PS: java is surely able to manipulate images too.
rinky
03-26-2009, 07:17 AM
Actually I want to use JSP as backend. Can I do? If then can you send me sample code to pass the parameters from laszlo to JSP page.Actually I want to retrieve the clipped portion of the image .Thanks in advance.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.