I'm working on my new signature image, and it incorporates information for the current song I'm listening to in itunes. One of the things it will display is the applicable album cover for the song.
Right now its set to know if the variable $imageurl is set. I run into problems when the image link is a dud or a blank. An example of this blank image output is:
Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: in /home/webusers/axonmedia/axonmedia.ca/www/itunes/itunes.php on line 183
Warning: imagecreatefromjpeg(): 'http://images.amazon.com/images/P/B0006TIJNA.01.THUMBZZZ.jpg' is not a valid JPEG file in /home/webusers/axonmedia/axonmedia.ca/www/itunes/itunes.php on line 183
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/webusers/axonmedia/axonmedia.ca/www/itunes/itunes.php on line 184
Warning: imagedestroy(): supplied argument is not a valid Image resource in /home/webusers/axonmedia/axonmedia.ca/www/itunes/itunes.php on line 185
So I just want to know, how can I tell the size of the image? Any other suggestions?
Question
Axon
Hey guys,
I'm working on my new signature image, and it incorporates information for the current song I'm listening to in itunes. One of the things it will display is the applicable album cover for the song.
Where I'm running into trouble is with:
Right now its set to know if the variable $imageurl is set. I run into problems when the image link is a dud or a blank. An example of this blank image output is:
http://images.amazon.com/images/P/B0006TIJNA.01.THUMBZZZ.jpg
And I get the following errors:
So I just want to know, how can I tell the size of the image? Any other suggestions?
Thanks,
-Ax
Edited by AxonLink to comment
Share on other sites
2 answers to this question
Recommended Posts