You are to create an online image converter that can be used to convert images from one format to
Your page (written in PHP) will have:
• A single upload field to allow the user to upload an image file in either GIF or PNG or JPEG or
• A dropdown list containing the four formats.
• A button to start the conversion.
When a file is uploaded your script must detect the type of image uploaded (using the file's extension
or its MIME type), and the convert command on matrix to save a copy of the original file into the
requested format. The resulting file must have a unique name so that it won't overwrite previously
Then the resulting image will be displayed (using Ajax) in the page, just below the upload form. In case
of an error - print the error message. You must use Ajax for the request and displaying the result.
Your PHP script must handle at least the following error conditions:
• File uploaded was not a valid image.
• You ran out of disk space.
19 pekerja bebas membida secara purata $90 untuk pekerjaan ini