Find Jobs
Hire Freelancers

PHP / zip file handling / image thumbnail creation

$30-40 USD

进行中
已发布超过 21 年前

$30-40 USD

货到付款
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
项目 ID: 2892102

关于此项目

4提案
远程项目
活跃21 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
See private message.
$34 USD 在14天之内
5.0 (7条评论)
2.1
2.1
4威客以平均价$29 USD来参与此工作竞价
用户头像
See private message.
$21.25 USD 在14天之内
5.0 (99条评论)
7.2
7.2
用户头像
See private message.
$34 USD 在14天之内
5.0 (7条评论)
3.9
3.9
用户头像
See private message.
$25.50 USD 在14天之内
3.6 (2条评论)
1.5
1.5

关于客户

UNITED KINGDOM的国旗
United Kingdom
5.0
65
会员自12月 11, 2002起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。