Suoritettu

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

Taidot: PHP, HTML, DOM, Image Processing

Näytä lisää: 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

Tietoa työnantajasta:
( 3 arvostelua ) Lac-Beauport, Canada

Projektin tunnus: #29419282

Myönnetty käyttäjälle:

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 Lisää

$100 CAD 2 päivässä
(13 Arvostelua)
3.9

8 freelanceria on tarjonnut keskimäärin $139 tähän työhön

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 Lisää

$150 CAD 1 päivässä
(69 arvostelua)
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 Lisää

$190 CAD 4 päivässä
(61 arvostelua)
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 Lisää

$140 CAD 7 päivässä
(18 arvostelua)
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 Lisää

$200 CAD 2 päivässä
(35 arvostelua)
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 , Lisää

$200 CAD 1 päivässä
(9 arvostelua)
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 Lisää

$100 CAD 1 päivässä
(1 arvostelu)
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 Lisää

$35 CAD 1 päivässä
(0 arvostelua)
0.0