Find Jobs
Hire Freelancers

PHP / zip file handling / image thumbnail creation

$30-40 USD

In Progress
Posted over 21 years ago

$30-40 USD

Paid on delivery
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
Project ID: 2892102

About the project

4 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$34 USD in 14 days
5.0 (7 reviews)
2.1
2.1
4 freelancers are bidding on average $29 USD for this job
User Avatar
See private message.
$21.25 USD in 14 days
5.0 (99 reviews)
7.2
7.2
User Avatar
See private message.
$34 USD in 14 days
5.0 (7 reviews)
3.9
3.9
User Avatar
See private message.
$25.50 USD in 14 days
3.6 (2 reviews)
1.5
1.5

About the client

Flag of UNITED KINGDOM
United Kingdom
5.0
65
Member since Dec 11, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.