summaryrefslogtreecommitdiff
path: root/libmat2/images.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmat2/images.py')
-rw-r--r--libmat2/images.py2
1 files changed, 2 insertions, 0 deletions
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):
35 raise ValueError 35 raise ValueError
36 36
37 def remove_all(self) -> bool: 37 def remove_all(self) -> bool:
38 if self.lightweight_cleaning:
39 return self._lightweight_cleanup()
38 surface = cairo.ImageSurface.create_from_png(self.filename) 40 surface = cairo.ImageSurface.create_from_png(self.filename)
39 surface.write_to_png(self.output_filename) 41 surface.write_to_png(self.output_filename)
40 return True 42 return True