Đã hoàn thành

240148 Quick PHP+Imagemagick Script

Hi there, thanks for looking at our little project!

This is a fairly simple script, but we need it URGENTLY -- this same day. So please don't bid unless you are confident that you can do it and ready to write it on the spot.

Here is the situation:

On our website, we have several directories.

Their names are:





and so on.

Inside each one of these directories, there is a single database, which is a simple tab-delineated flat text file. The databases are named:

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

[url removed, login to view]

and so on.

Aside from the text database, each directory also contains some image files.

That's the setup. We need a script that will perform its action on each of these databases/directories, one after the other. The script should contain a "config" section, where those directories and their corresponding database files can be specified. It should be able to handle a list of 10, 15, 20 or more of these directories/databases. Does that make sense?

This is the action that we need the script to do, within each directory:

1 - Delete all files in directory -except- the database file.

2 - Open the database file. Each record, on field 19 (column 18, in PHP) contains a local image URL (local, but not in this same directory).

3 - One record at a time, get each of these images. With imagemagick, convert the image in the following way:

A. Change image size to : Height 1.066 inch, Width 0.8 inch, res. 600 ppi

B. Sharpen the image

C. Convert mode to CMYK

D. Save it as a TIFF in the immediate directory. The filename should be the that record's field 9 [PHP: column 8], plus ".tif".

Then go to next record, repeat the process, until all images have been loaded, and processed, and saved.

Please note that we need to convert, not mogrify the images in the URLs. Those original images should not be changed.

ImageMagick path on our server is /usr/local/bin/convert.

When it's done with a directory/data file, the script should go on to

the next one in its "config" file ... for example, when it's done with /production/amu/ and [url removed, login to view], it should go on to /production_lmm/ and lmm_listings.txt. Just to make sure it's clear: when switching to a new database, all actions need to switch to the immediate directory of the new database. For example, when working on [url removed, login to view], that means that the "delete all files except database" action #1 above applies to /production_lmm/ directory, and this is also the directory where the new files are saved.

We need this script urgently, this same day, and I will choose a progammer within an hour or two of posting this. So, please don't bid unless you're familiar with Imagemagick and PHP and flatfiles, and, hopefully, good at "getting it right the first time"! Thank you and please let me know if you have any questions!

Kĩ năng: Bất kì công việc gì, PHP

Xem nhiều hơn: project list in php, looking for a progammer php, action script list, convert txt files, php tiff, php list directory files, php save data file, php list directory, image can loaded sure path, flat php, php list files, php list file directory, write simple php database, php save image database, script website changed, php databases, php script path, convert imagemagick php, write script file, php flat

Về Bên Thuê:
( 101 nhận xét ) Olympia, United States

ID dự án: #1986396

Được trao cho:


Check pmb plz

$50 USD trong 1 ngày
(2 Đánh Giá)