From e5bbf384a370a80e0664e9a072382bf888e348a0 Mon Sep 17 00:00:00 2001 From: idzuibenko Date: Wed, 29 Sep 2021 09:22:22 +0300 Subject: [PATCH] fixed create_image in backgrounds format --- pym/calculate/lib/format/backgrounds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/calculate/lib/format/backgrounds.py b/pym/calculate/lib/format/backgrounds.py index c090e2d..3091888 100644 --- a/pym/calculate/lib/format/backgrounds.py +++ b/pym/calculate/lib/format/backgrounds.py @@ -95,8 +95,8 @@ class backgrounds(TemplateFormat): if self.convert != "gfxboot" and ( (width == self.source_width and height == self.source_height) and (source.rpartition('.')[2] == target.rpartition('.')[2])): - with writeFile(target) as sf: - sf.write(readFile(source)) + with writeFile(target, binary=True) as sf: + sf.write(readFile(source, binary=True)) return True if self.chroot_cmd: source = self.trim_chroot_path(source)