$retrial = Worker::getRetrial();
$content = Photo::getImageForPhoto($photo);
- $picture = new Image($content, $photo['type']);
+ $picture = new Image($content, $photo['type'], $photo['filename']);
$height = $picture->getHeight();
$width = $picture->getWidth();
$size = strlen($content);
$picturedata = Photo::getImageForPhoto($photo);
- $picture = new Image($picturedata, $photo['type']);
+ $picture = new Image($picturedata, $photo['type'], $photo['filename']);
$height = $picture->getHeight();
$width = $picture->getWidth();
$size = strlen($picturedata);