removed test lines

This commit is contained in:
Andreas Preikschat 2011-06-09 12:41:02 +02:00
parent 2b1cf6cb54
commit 8fc4305b43
1 changed files with 1 additions and 4 deletions

View File

@ -154,10 +154,7 @@ def resize_image(image_path, width, height, background=QtCore.Qt.black):
The background colour defaults to black.
"""
log.debug(u'resize_image - start')
if isinstance(image_path, QtGui.QImage):
print u'wrong instance!'
else:
reader = QtGui.QImageReader(image_path)
reader = QtGui.QImageReader(image_path)
# The image's ratio.
image_ratio = float(reader.size().width()) / float(reader.size().height())
resize_ratio = float(width) / float(height)