def resizeImage(self, max, image_data):
        # disable WebP for now, due a memory leak in python library
        imtype = imghdr.what(StringIO.StringIO(image_data))
        if imtype == "webp":
            with open(AppFolders.imagePath("default.jpg"), 'rb') as fd:
                image_data = fd.read()
        
        im = Image.open(StringIO.StringIO(image_data))
        w,h = im.size
        if h < max:
            im.thumbnail((w,max), Image.ANTIALIAS)
            output = StringIO.StringIO()
            im.save(output, format="JPEG")
            return output.getvalue()
        else:
            return image_data
dataset/ETHPy150Open beville/ComicStreamer/comicstreamerlib/server.py/ImageAPIHandler.resizeImage/swapped operands of `<`