no transcode for reporting

This commit is contained in:
Shish 2021-04-25 10:50:27 +00:00
parent 7149af7df9
commit c4ae68fb47
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class TranscodeImage extends Extension
{
global $user, $config;
if ($user->can(Permissions::EDIT_FILES)) {
if ($user->can(Permissions::EDIT_FILES) && $event->context != "report") {
$engine = $config->get_string(TranscodeConfig::ENGINE);
if ($this->can_convert_mime($engine, $event->image->get_mime())) {
$options = $this->get_supported_output_mimes($engine, $event->image->get_mime());