diff --git a/pysstv/examples/gimp-plugin.py b/pysstv/examples/gimp-plugin.py index 10caa8d..98336db 100755 --- a/pysstv/examples/gimp-plugin.py +++ b/pysstv/examples/gimp-plugin.py @@ -72,6 +72,10 @@ class ProgressCanvas(Canvas): width, height = image.size if height / float(width) > 1.5: width *= 2 + elif width < 200: + width *= 2 + height *= 2 + if (width, height) != image.size: image = image.resize((width, height)) Canvas.__init__(self, master, width=width, height=height) self.tk_img = ImageTk.PhotoImage(image)