Imagecrop, resize and rename functions (selection area part is done)
$150-190 USD
Completed
Posted about 8 years ago
$150-190 USD
Paid on delivery
I have a small simple GD-project for you. I only want php-experts. I do NOT want you to copy-paste from pre-made scripts. If you do this, it will not be accepted. $190 is max price for this project (I have that available in funds here at freelancer, so if you bid like just $5 more, you have automatically locked yourself out of the competition).
The task is to write a function that crop, resize or resize a image file already on the server. The GUI/interface for this is mostly done and the forms are working when you click on the buttons. Even some php-work is done (non-object oriented). See attached [login to view URL] file for a code-snippet of what is ready for you.
The cordinates selected on image are sent over to next page (x1, x2, y1, y2), along with image-size of the original image. So you don't have to worry about that. Attached I have shown you the part where your PHP-code goes.
The amount of code for crop is somewhat apparent in gallery-borrowed.jpg. Here I show you a ready made function borrowed from another script. I want original code that YOU and YOU only write so that I will own the code. But this gives you an idea of how little coding you actually have to do for the crop-part of the project. DO NOT IMPLEMENT gallery-borrowed.jpg. Write something else that does the same thing.
Main Tasks you have to code in PHP:
1. Implement crop-function better and different than gallery-borrowed.jpg.
2. The cropped images generated are stored as new files "[login to view URL]".
3. Implement resize-function (just a bit smaller code than crop-function).
4. The resized-images are stored as new files "[login to view URL]".
5. Implement rename-function (renames all the files, including original AND imagename-version-n.jpg.
6. All new files are show under the cropped/resized image (see [login to view URL]) as soon as your crop/resize. Including the original file (in a html-scaled down version, I already have the html-style for this - you just need to output the filenames of all the related versions).
MOST IMPORTANT:
This project can easly be done by a beginner in PHP, but I want someone that is experienced and know how to code. Just making the script work is alone not good enough.
Note #1: When I refer to version-n above, n is replaced by a higher number for each thumbnail/image. So, if there is a file named "[login to view URL]", you must make sure to call this image "[login to view URL]". Just one number higher than the one present.
Note #2: Should support jpg/jpeg, png, gif, tiff.
Note #3. I do not want more files. All your code must go into [login to view URL] (no extra javascript or framework-files etc). At most, I can accept a [login to view URL] where you keep your php-functions for the project. I do not want more javascript-functions either. Simply php/html and no database-storage.
Note #4. You only have 3 days - if you use more than one day for this job anyway, you are most likely not skilled enough for this project(!). I will not change the budget if you see that you will use more time than you estimated - either before or after project start. If you are not ready with the code in 3 days from accepting the project, I reserve the rigth to cancel it and open a dispute-case for the full amount.
Note#5. The goal is to have beutifull code, easy to read (not object-oriented) and the script working nicely. I don't want to have to refresh-page for your code to work - it should just work. A major part, I would say the most important one, is that you test your code so it works 100%. This project is easy to do if you just code it, but to have it working 100% is the biggest thing.
Note #5: How to work: You get the file [login to view URL] from me and get it to work locally (you must remove some calls to [login to view URL] and some non-needed code). Send the file back to me or show a working example on your website.
Hello, client
I have read your job post carefully.
I have rich experiences in jQuery and PHP.
If you hire me, i will do my best to satisfy you in this project.
Thanks
Best regards