From f1a071d460507fd1bb1721deafd2a8d9f88f5b05 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 23 Oct 2018 16:14:21 +0200 Subject: Implement lightweight cleaning for png and tiff --- libmat2/images.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmat2/images.py') diff --git a/libmat2/images.py b/libmat2/images.py index ad80892..03cecd3 100644 --- a/libmat2/images.py +++ b/libmat2/images.py @@ -35,6 +35,8 @@ class PNGParser(exiftool.ExiftoolParser): raise ValueError def remove_all(self) -> bool: + if self.lightweight_cleaning: + return self._lightweight_cleanup() surface = cairo.ImageSurface.create_from_png(self.filename) surface.write_to_png(self.output_filename) return True -- cgit v1.3