Script for uploading, converting and resizing images and video files
We have an (almost ready) function on our web page where our members can upload pictures and video files (same filename field for uploading images and video). Files are stored on servers disc in a tree structure so we can see who has uploaded the file etc. We need to improve and debug the uploading of images and videos.
Supported image formats (at least): JPG, GIF, BMP, PNG
If image width exceeds $maxwidth, it should be resampled (not just resized ) and saved as JPG. Keep aspect ratio!
Supported video formats (at least) avi, wmv, mov and mpg.
Convert them ”on the fly” to flash-video.
- Process the uploaded file through ffpeg (suggestion only). The outcome is [url removed, login to view](320x240px flash video) and [url removed, login to view](110x90px thumbnail of the 3rd second in the clip)
- Save the resulting 2 files in the same folder structure as flash pictures
Both image and video files must be stored as files on the servers in a specific structure and MYSQL database shall be updated with name and type etc.
User interface, in PHP, is ready but there are bugs connected to file uploading and small modifications are needed. Errors like wrong type etc. must be handled and errormessages shown to the user in the same way as for the rest of the site.
Existing code is object oriented PHP and present structure shall be kept so you need deep understanding of object oriented PHP.
We have an urgent need for this, so please don’t bid if you can’t start working within a day!