For my mosaic site ([url removed, login to view]) I need a script, which can handle following tasks:
1. Upload an image via a webinterface in a temporary folder and crop it online with 3 different dimensions: square, landscape and horizon. Live thumbnail preview like here: [url removed, login to view]
2. Furthermore the thumbnail image (48x48px but displayed larger) should be transformed into an grayscale image which consists of only 4 colors (black, white, darkgray, lightgray). Is this possible width php imagefilter?
3. Preview of that image, and save it on the server with an unique name.
4. This script should work with multible users doing this at the same time.
5. Maybe in the Future: Logged-in User can see his image