[Image-SIG] pildriver.py can't resize image

Bill Janssen janssen at parc.com
Wed Mar 1 00:14:59 CET 2006


This turns out to be another bug in pildriver.py:

    def do_resize(self):
        """usage: resize <int:xsize> <int:ysize> <image:pic1>

        Resize the top image.
        """
        ysize = int(self.do_pop())
        xsize = int(self.do_pop())
        image = self.do_pop()
        self.push(image.resize(xsize, ysize))

should be

    def do_resize(self):
        """usage: resize <int:xsize> <int:ysize> <image:pic1>

        Resize the top image.
        """
        ysize = int(self.do_pop())
        xsize = int(self.do_pop())
        image = self.do_pop()
        self.push(image.resize((xsize, ysize,)))

Bill


More information about the Image-SIG mailing list