forked from openlp/openlp
removed test lines
This commit is contained in:
parent
2b1cf6cb54
commit
8fc4305b43
@ -154,9 +154,6 @@ def resize_image(image_path, width, height, background=QtCore.Qt.black):
|
|||||||
The background colour defaults to black.
|
The background colour defaults to black.
|
||||||
"""
|
"""
|
||||||
log.debug(u'resize_image - start')
|
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.
|
# The image's ratio.
|
||||||
image_ratio = float(reader.size().width()) / float(reader.size().height())
|
image_ratio = float(reader.size().width()) / float(reader.size().height())
|
||||||
|
Loading…
Reference in New Issue
Block a user