From c8692be41903791764de314c099ead7f078eed20 Mon Sep 17 00:00:00 2001 From: pacien Date: Wed, 29 Jan 2020 22:17:13 +0100 Subject: compiler: fix picture item type without resize GitHub: closes #52 --- compiler/src/Processors.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/Processors.hs b/compiler/src/Processors.hs index 4e7c5a7..f2ade63 100644 --- a/compiler/src/Processors.hs +++ b/compiler/src/Processors.hs @@ -138,8 +138,8 @@ itemFileProcessor maxResolution cached inputBase outputBase resClass inputRes = (processor, props) = processorFor maxResolution $ formatFromPath inputRes processorFor :: Maybe Resolution -> Format -> (FileProcessor, Resource -> GalleryItemProps) - processorFor Nothing _ = (copyFileProcessor, Other) processorFor (Just maxRes) PictureFormat = (resizePictureUpTo maxRes, Picture) + processorFor Nothing PictureFormat = (copyFileProcessor, Picture) processorFor _ Unknown = (copyFileProcessor, Other) -- TODO: handle video reencoding and others? -- cgit v1.2.3