PHP expert |
|
Ik krijg deze error en ik snap er niets van want heb dit nog nooit gezien:
Citaat: Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in *****/inc/class/picture.php on line 101
Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '*****/pictures/image/Zip/Logboek2.jpg' is not a valid JPEG file in *****/inc/class/picture.php on line 101
Dit is regel 91 tot regel 102
<?php
switch($this->extension) {
case 'png':
$this->resource = imagecreatefrompng($image);
break;
case 'gif':
$this->resource = imagecreatefromgif($image);
break;
default:
$this->resource = imagecreatefromjpeg($image);
break;
?>
<?php switch($this->extension) { case 'png': $this->resource = imagecreatefrompng($image); break; case 'gif': $this->resource = imagecreatefromgif($image); break; default: $this->resource = imagecreatefromjpeg($image); break; ?>
En dat bestand logboek2.jpg heeft als bestandstype JPEG-afbeelding volgens Windows. Hoe kan ik dit oplosen?
|