Find Jobs
Hire Freelancers

433482 Fix issues image cron script

N/A

En cours
Publié il y a plus de 13 ans

N/A

Payé lors de la livraison
Fix issues image cron script We have an image cron script made in PHP which saves images from image-urls in the MySQLdatabase. There are some issues which I would like to have solved asap. Here is what the script does exactly: 1. Download the images of all products from table ‘affiliSt_products1', column ‘prodImageURL'. An image can be in GIF or in JPEG format. 1a. If the image already exists, don't download it -> Go to point 5 (Change the old URLs...) 1b. If the image doesn't exist, download it -> Go to point 2 (Save them...) 2. Save them in the directory ‘/afbeeldingen/origineel' and use the productname (column ‘prodName') + productID of the merchant (column ‘merchantProdID') as filename. Recplace spaces in the filename with ‘+‘ and the last space before the productID with '-'. So for example a filename could be Van+der+valk+hotel+Assen-12345.jpg. 3. Resize the images in 2 formats, one which has a width of 180px and one which has a width of 250px. The image size is adjustable. 4. Save the 180px images in the directory ‘/afbeeldingen/klein' , save the 250px images in the directory ‘/afbeeldingen/groot'. This size is also adjustable. 5. Change the old URLs of the images in the database to the new ones. Update the URLs of the 250px images in column ‘prodImageURL' and the 180px images in ‘prodImageSmall'. The script works almost fine, however there are a few issues that need to be solved: 1. On a local server the script works, on my new server online (CentOS, PHP 5.2.3) it gives this error: "Notice: Undefined index: TOTAL_IMAGES in xxxx/includes/[login to view URL] on line 58" 2. When I start the script with empty local image folders, it should download all images. However the script says that 39 images are already saved and it skips them. There are 39 products of the merchant 'Fletcher' in the database. I assume something goes wrong here. 3. If there's a 'strange' character in the productname like "é,â,ä,à,å,ç,ë, etc.." the image is saved with a name like this D%FCsseldorf... and then the image can't be loaded on the webpage. This should be solved. 4. There are some GIF images which are 375 bytes in sizes and black. I think this is caused by point 3 (strange characters) but am not sure. 5. Every night the products are refreshed in the database. So all the image-urls are set back and this image script has to run again. In this case the images already exist (they're downloaded before). The script then detects the images already exist but it doesn't set the image-urls to the new urls. (point 1a, it should go to point 5). I hope this is clear, if not please let me know.
N° de projet : 2179355

Concernant le projet

1 proposition
Projet à distance
Actif à il y a 12 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
Décerné à :
Avatar de l'utilisateur
I can do this task for you fast and professional for a reasonable money.
$45 USD en 1 jour
5,0 (30 commentaires)
4,3
4,3

À propos du client

Drapeau de
5,0
4
Membre depuis juin 16, 2010

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.