PHP / zip file handling / image thumbnail creation

Hi There: I need a set of three simple functions to handle the unzipping a windows created zipfile, creating image thumbnails with GD / netpbm, getting filenames and filesizes from a given directory. The functions must run on Linux systems running RedHat with an installation of PHP 4.1.2 min. Functions should be delivered in a single PHP file. Full details in the deliverables... Looking forwards to hearing from you! Chris

## Deliverables

Full spec: I need a set of simple functions to handle the following jobs as part of a photo gallery system. The functions must run on Linux systems running RedHat with an installation of PHP 4.1.x 1: UNZIP :: Unzip a zip file created on windows platform with regular windows zipping tools (e.g. Winzip). Extract all IMAGE files (only png,gif,jp(e)g) to a single folder, ignore all other file types and ignore any directories specified in the zip file itself. Rename any files with spaces and other illegal characters in their names, replacing with an underscore. Files with duplicate filenames can simply be overwritten. Three optional parameters could be passed to the function of $parent_dir, $max_dir_size and $max_file_size - if extracting a particular file would cause $parent_dir and its subdirectories to use more diskspace than $max_dir_size, the file is skipped and an error added to the errors array to return. The $max_file_size is simply the maximum size that any file could be when unzipped. In the end I want this function to be used as simply as: unzip($file,$directory,[$parent_dir,$max_dir_size,$max_file_size]) - where $file contains a pointer to a file uploaded from a form and $directory is where the files are going. It should return an array containing the number of files successfully extracted, number of files that couldn't be extracted. 2: THUMBNAILS :: create a set of thumbnails in a given directory, maintaining aspect ratios. Thumbnails will be created in the same directory as the source files, or a different directory if passed to the function and will be renamed to be pre-pended with "tn_". The function should work with GD 1.6.2 (JPG, PNG support enabled), and / or netpbm. Existing thumbnails can simply be overwritten. The function should be used as simply as: thumbnails($source_directory,$max_width,$max_height,$thumbnail_directory="") - $source_directory is where the image files are, $max_width/$max_height are the max widths and height that any image can be, $thumbnail_director is optional, but if present the thumbnails should be created there (if not present, they should be made in the existing directory) 3: LISTFILES :: Just a simple function to return all the filenames without paths and the image sizes in a particular directory in an array which might look like $files[filename][width][height]. listfiles($dir) That's all! Looking forward to hearing from you :) Chris ---- You'll need to supply me with: 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Complete ownership and distribution copyrights to all work purchased.

## Platform

Redhat / PHP 4.1.2 / GD

Evner: Ingeniørarbejde, MySQL, PHP, Software Arkitektur, Software Testning

Se mere: php functional zip, zip jobs, types of engineering jobs, php systems, php in full, other engineering jobs, jobs in engineering, gif jobs, engineering jobs jobs, engineering jobs in, different types of jobs, systems engineering jobs, system engineering jobs, png jobs, different types of tools, engineering jobs, redhat s, image files, gif creation, extract the thumbnail

Om arbejdsgiveren:
( 65 bedømmelser ) United Kingdom

Projekt ID: #2892102

Tildelt til:


See private message.

$34 USD in 14 dage
(7 bedømmelser)

4 freelancere byder i gennemsnit $29 på dette job


See private message.

$21.25 USD in 14 dage
(99 bedømmelser)

See private message.

$34 USD in 14 dage
(7 bedømmelser)

See private message.

$25.5 USD in 14 dage
(2 bedømmelser)