Просмотр исходного кода

fix some png images being discarded

pull/18/head
czaks 9 лет назад
Родитель
Сommit
300e9e7e71
1 измененных файлов: 3 добавлений и 2 удалений
  1. +3
    -2
      inc/image.php

+ 3
- 2
inc/image.php Просмотреть файл

@@ -363,9 +363,10 @@ class ImageConvert extends ImageBase {
$this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {

if (strpos($error, "known incorrect sRGB profile") === false) {
if (strpos($error, "known incorrect sRGB profile") === false &&
strpos($error, "iCCP: Not recognizing known sRGB profile that has been edited") === false) {
$this->destroy();
error('Failed to resize image!', null, array('convert_error' => $error));
error(_('Failed to resize image!')." "._('Details: ').nl2br(htmlspecialchars($error)), null, array('convert_error' => $error));
}
if (!file_exists($this->temp)) {
$this->destroy();


Загрузка…
Отмена
Сохранить