Write a single php script that lets multiple users upload a bitmap image (png, tiff, gif, jpeg should be supported) and edit it adding transparent areas.
The uploaded image should be saved as it is, and a .png (32bit – pixel size 50% of the original with max height and max width 400 px) thumbnail should be generated.
The script should detect the presence of transparency information in the uploaded image, and preserve the original transparency in the generated thumbnail.
The script returns to the client a web page (see [url removed, login to view] and [url removed, login to view]) showing the thumbnail over [url removed, login to view] and printing out in html if the uploaded image has transparency in it or not.
The user clicks on the image, and the script returns the thumbnail image, adding a transparent fill at the coordinates of the click, without reloading [url removed, login to view], only by refreshing the thumbnail image.
This step can be repeated n-times showing at the end an image with n transparent areas.
There should be a “Reset” button, which ends the process, cleans up user's data, and returns to the beginning.
There should be an "Undo" button that reverts the image to the previuos state (not the original state, the state after n-1 clicks).
There should be an"OK" button that repeats on the uploaded image all the fills done by the user on the thumbnail, saves it as 32bit png and returns it to the user.
Browser usability: CrossBrowser ( in particular IE e 5 e FF e 1 )
Libraries: MagickWand 0.1.8 + Imagemagick 6.2.4