Find Jobs
Hire Freelancers

PHP / zip file handling / image thumbnail creation

$30-40 USD

Status
Publicerad över 21 år sedan

$30-40 USD

Betalning vid leverans
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

Om projektet

4 anbud
Distansprojekt
Senaste aktivitet 21 år sedan

Ute efter att tjäna lite pengar?

Fördelar med att lägga anbud hos Freelancer

Ange budget och tidsram
Få betalt för ditt arbete
Beskriv ditt förslag
Det är gratis att registrera sig och att lägga anbud på uppdrag
Tilldelad till:
Använd avatar
See private message.
$34 USD Om 14 dagar
5,0 (7 omdömen)
2,1
2,1
4 frilansar lägger i genomsnitt anbud på $29 USD för detta uppdrag
Använd avatar
See private message.
$21,25 USD Om 14 dagar
5,0 (99 omdömen)
7,2
7,2
Använd avatar
See private message.
$34 USD Om 14 dagar
5,0 (7 omdömen)
3,9
3,9
Använd avatar
See private message.
$25,50 USD Om 14 dagar
3,6 (2 omdömen)
1,5
1,5

Om kunden

Flagga för UNITED KINGDOM
United Kingdom
5,0
65
Medlem sedan dec. 11, 2002

Kundverifikation

Tack! Vi har skickat en länk för aktivering av gratis kredit.
Något gick fel med ditt e-postmeddelande. Vänligen försök igen.
Registrerade Användare Totalt antal jobb publicerade
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Laddar förhandsgranskning
Tillstånd beviljat för geolokalisering.
Din inloggningssession har löpt ut och du har blivit utloggad. Logga in igen.