Đã hoàn thành

Rename uploaded images, convert functions to ImageMagick in php

I use simple_html_dom to retrieve data from a file ([login to view URL]).

At the moment, the code I have in place in [login to view URL] finds, resizes, sharpen and upload them to my server. It works if each image name is different, but it doesn't if all the images have the same name (ex: same name, but downloaded from different directories). In this particular case, all images are named 300x500.jpg.

1. Modify the script so that if data is found between the h4 attributes in the [login to view URL] file, use it as new names for the images ([login to view URL], [login to view URL], [login to view URL], etc. instead of [login to view URL]). If no data is found in h4, keep the original image names (last image in data file is like that).

I do not need anything fancy, no timestamp or unique ids, the data in the h4 attributes will already be unique.

2. Add a function that checks if the file already exists on my server before creating the image. Only create the image if it doesn't already exist.

3. Convert the current GD functions to imagemagick and clean up unnecessary code. I believe the script was originally written to use the longest side of the image as the max size but it doesn't work. I would like that function to work (use the $max = 200 as the size of the longest side of the thumbnail).

I would also like to use the following imagemagick command to modify/sharpen the images:

-strip -sharpen 0.7x1 -enhance -sampling-factor 4:2:0 -interlace JPEG

Since I will be using imagemagick command to sharpen/modify the thumbs, I am guessing you can remove the actual "imagesharpe" function.

I, of course, want to retain the ability to choose the quality of the thumbnails (ex: $quality = 80).

This script will be running on php 7.3+

I want quality, easy to read/understand, code.

Thanks

Kĩ năng: PHP, HTML, DOM, Image Processing

Xem nhiều hơn: convert xml jpg php, convert swf jpg php, convert xml rss php, convert numbers text php, convert image transparent php, convert asp page php page, php upload resize rename multiple images, resizing uploaded images php, php rename resize images, rename uploaded photo php, approve uploaded images php, attach uploaded images mail php, convert imagemagick php, rename uploaded file php, php rename uploaded file keep extension, convert images to video in php

Về Bên Thuê:
( 3 nhận xét ) Lac-Beauport, Canada

ID dự án: #29419282

Được trao cho:

kishan1383

Dear Sir/Ma'am, I am full time experienced web developer. I have read your project details and I am ready to start work on your project and give you best results as you want. If you want to check my previous work then Thêm

$100 CAD trong 2 ngày
(13 Đánh Giá)
3.9

8 freelancer chào giá trung bình$139 cho công việc này

imTuyen

Hello. I can do this project right now. I am a professional Linux and developer in PHP, Wordpress, Laravel, Magento, Joomla, Prestashop, OpenCart, Yii, NodeJS, Angular, Vue.js, HTML5, CSS3 and jQuery. I can do this pro Thêm

$150 CAD trong 1 ngày
(69 Nhận xét)
6.0
purplemaestro

Hi. Hope are doing fine. I have high level expertise in PHP and imagick Library. I have your requirements and can complete all those 3 within the given timeline. I have few questions in mind. Ready to discuss those in Thêm

$190 CAD trong 4 ngày
(61 Nhận xét)
5.5
AleksandarDikic

Hi, I am a fullstack web developer and a PHP expert. I read the description carefully and I am sure I can do the job very well. As a seasoned PHP developer I have the following skills: - Profound knowledge of Ajax, j Thêm

$140 CAD trong 7 ngày
(18 Nhận xét)
5.7
NabeelAbid22

Hey, I have used ImageMagic in my previous project. I understand your need, you want to check first if file already exists in directory or not. Other thing you want to name file as mentioned in h4 tag, and name in h4 Thêm

$200 CAD trong 2 ngày
(35 Nhận xét)
5.5
wadielnatrontv

Hi there , How are you? This is Qandil I am web developer, having over 3 years of experience on freelancer . I can work on your project to deliver you according to the requirements. For more discussion on the project , Thêm

$200 CAD trong 1 ngày
(9 Nhận xét)
3.7
Elena1810

Hi there,I read your proposal and understood. I am sure about your project becasue I have a rich experience about your project. I will sure give you 100% good quality work untill you satisfy. please discuss more detail Thêm

$100 CAD trong 1 ngày
(1 Nhận xét)
1.7
irfanbaloch779

Greetings Sir/Madam I saw your project details and being a website Developer and having 5 years of experience in website development and Graphic designing i assure you that I will do Your project work efficiently wit Thêm

$35 CAD trong 1 ngày
(0 Nhận xét)
0.0