- Issue created by @g011um
- 🇨🇦Canada g011um Saskatoon
I think replacing lines 40-48 in src/Plugin/MediaThumbnail/MediaThumbnailJp2.php with something like the following will address the issue. I'll see if I can create a fork and merge request with this change.
// Convert the JP2 to a thumbnail JPEG $output=null; $retval=null; $cmd = "convert " . $path . " -resize " . $width . "x" . $width . " /tmp/" . $filename . ".jpg 2>&1"; exec($cmd, $output, $retval); if ($retval !== 0) { $this->logger->warning($output); return NULL; }
- Merge request !1Replace try/catch with a test of the return value of the exec() call → (Open) created by g011um