From 15275b3524cc5f37784212e989cd58b066db8ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 10 Aug 2023 18:29:45 +0200 Subject: [PATCH] [postprocessor:ugoira] restore 'libx264-prevent-odd' (#4407) was accidentally removed in commit be9547a5 --- gallery_dl/postprocessor/ugoira.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gallery_dl/postprocessor/ugoira.py b/gallery_dl/postprocessor/ugoira.py index 9d2cb34e..6d42567b 100644 --- a/gallery_dl/postprocessor/ugoira.py +++ b/gallery_dl/postprocessor/ugoira.py @@ -120,6 +120,8 @@ class UgoiraPP(PostProcessor): pathfmt.build_path() args = self._process(pathfmt, tempdir) + if self.prevent_odd: + args += ("-vf", "crop=iw-mod(iw\\,2):ih-mod(ih\\,2)") if self.args: args += self.args