Précédent   Forum des professionnels en informatique > PHP > Bibliothèques et frameworks > Images > GD
GD Forum d'entraide pour l'extension GD permettant de manipuler des images en PHP. Avant de poster -> tutoriels GD
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 29/05/2006, 19h54   #1
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Par défaut Obtention aléatoire d'un message d'erreur et l'image enregistrée est toute noire

Salut à tous,
Je recompile toutes mes images en GD, et des fois j'ai ce message d'erreur :

Citation:
Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in photo2.php on line 22

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'photos/test.jpg' is not a valid JPEG file in photo2.php on line 22

Warning: imagecopyresized(): supplied argument is not a valid Image resource in photo2.php on line 28

L'image s'enregistre toute en noir.
Comment résoudre le problème ?
Merci d'avance.
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 20h00   #2
Membre Expert
 
Avatar de Nemesys
 
Étudiant
Inscription : mars 2006
Messages : 1 910
Détails du profil
Informations personnelles :
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mars 2006
Messages : 1 910
Points : 2 086
Points : 2 086
Citation:
If you get this error: "Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error" then check the JPEG files. If they are saved in CMYK format (instead of RGB) then GD will fail to load them (tested with GD 2.0.12)
Nemesys est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 20h18   #3
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Comment faire pour vérfier les fichiers ci ils sont en CMYK (au lieu de RGB) ?
Merci d'avance.
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 21h02   #4
Membre Expert
 
Avatar de Nemesys
 
Étudiant
Inscription : mars 2006
Messages : 1 910
Détails du profil
Informations personnelles :
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mars 2006
Messages : 1 910
Points : 2 086
Points : 2 086
A priori tu es en CMYK comme dit très bien l'erreur. Je pense que ça se voit simplement à la qualité, tu peux voir sur le net la différence. Ainsi pour que le navigateur affiche l'image il a besoin qu'elle soit en mode RBG. Fais donc la conversion CMYK=> RBG à l'aide de cette utilitaire : http://www.aspjpeg.com/

Cordialement.
Nemesys est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 22h08   #5
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Je connais pas du tout l'asp, et de plus je n'ai pas de seveur ASP.
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 22h20   #6
Membre Expert
 
Avatar de Nemesys
 
Étudiant
Inscription : mars 2006
Messages : 1 910
Détails du profil
Informations personnelles :
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mars 2006
Messages : 1 910
Points : 2 086
Points : 2 086
Je vois pas le rapport avec l'asp ?? Telecharge l'outil ici : http://www.aspjpeg.com/download.html
Nemesys est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 22h36   #7
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Citation:
1.1 What is AspJpeg?

AspJpeg is an advanced image management component to be used in a Microsoft IIS environment.

AspJpeg enables your ASP/ASP.NET application to dynamically create high-quality thumbnails of images in just a few lines of code. An original image may be in any of the following formats: JPEG, GIF, BMP, TIFF or PNG.

This component can be used in tandem with AspUpload, the leading file upload component from Persits Software, Inc., to create thumbnails of images as they are being uploaded to the Web server.
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 29/05/2006, 22h51   #8
Membre Expert
 
Avatar de Nemesys
 
Étudiant
Inscription : mars 2006
Messages : 1 910
Détails du profil
Informations personnelles :
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mars 2006
Messages : 1 910
Points : 2 086
Points : 2 086
Ok comme c'est en anglais j'ai pas trop cherché a comprendre... je croyais que c'etait un simple soft... cependant n'en voyant pas d'autres je ne sais quoi te proposer...
Nemesys est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/05/2006, 09h39   #9
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Il ya pas une fonction PHP de transformation ?
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/05/2006, 09h48   #10
Membre Expert
 
Avatar de Nemesys
 
Étudiant
Inscription : mars 2006
Messages : 1 910
Détails du profil
Informations personnelles :
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Étudiant

Informations forums :
Inscription : mars 2006
Messages : 1 910
Points : 2 086
Points : 2 086

http://redux.imagemagick.org/discuss...pic.php?t=4709

hihi
Nemesys est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/05/2006, 10h14   #11
Invité de passage
 
Inscription : mai 2006
Messages : 32
Détails du profil
Informations forums :
Inscription : mai 2006
Messages : 32
Points : 2
Points : 2
Etant débutant, je ne comprend pas trop comment faire pour un dossier avec 5000 photos ;-
Parce que je crois que ce scrypte marche pour une photo à la fois.
maty2006 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 21h48.


 
 
 
 
Partenaires

Hébergement Web