Browse Source

fix pngs better

pull/40/head
czaks 10 years ago
parent
commit
7283c4caee
  1. 8
      inc/image.php

8
inc/image.php

@ -361,10 +361,10 @@ class ImageConvert extends ImageBase {
$this->width, $this->width,
$this->height, $this->height,
escapeshellarg($this->temp)))) || !file_exists($this->temp)) { escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
//if (!preg_match ('/sBIT: invalid/', $error)) { if (!file_exists($this->temp)) {
// $this->destroy(); $this->destroy();
// error(_('Failed to resize image!'), null, $error); error(_('Failed to resize image!'), null, $error);
//} }
} }
if ($size = $this->get_size($this->temp)) { if ($size = $this->get_size($this->temp)) {
$this->width = $size[0]; $this->width = $size[0];

Loading…
Cancel
Save