imagecreatefromjpeg() returns an image identifier representing the image obtained from the given filename.
imagecreatefromjpeg() returns an empty string on failure. It also outputs an error message, which unfortunately displays as a broken link in a browser. To ease debugging the following example will produce an error JPEG:
Suggerimento: È possibile utilizzare una URL come un nome di file con questa funzione se è stata abilitata l'opzione "fopen wrappers". Per maggiori informazioni vedere fopen().
Attenzione |
la versione per Windows i PHP non supporta, al momento, l'accesso remoto ai file da parte di questa funzione, anche se allow_url_fopen è abilitato. |