Bugfix Image Configurator on first startup

This commit is contained in:
2023-06-30 02:02:01 +02:00
parent 1fc69f7e86
commit 11fa9e31c5

View File

@@ -196,10 +196,13 @@ class ImageConfigurator:
imageId (int): The number of the preview (0-8)
imageURI (str): URI to the new image
"""
try:
pixbuf = GdkPixbuf.Pixbuf.new_from_file(imageURI)
pixbuf = pixbuf.scale_simple(300, 200, GdkPixbuf.InterpType.BILINEAR)
self.img_previews[imageId].set_from_pixbuf(pixbuf)
except:
pass
def extractHeifImages(self, imageURI: str):