Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/atoidejouer/tools/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'atoidejouer/tools/image.py')
-rw-r--r--atoidejouer/tools/image.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/atoidejouer/tools/image.py b/atoidejouer/tools/image.py
index f5ff573..c2d966c 100644
--- a/atoidejouer/tools/image.py
+++ b/atoidejouer/tools/image.py
@@ -63,9 +63,6 @@ def compute_width_height(width, height, max_width, max_height, use_max=False):
# compute ratio
_ratio_scr = max_width / float(max_height)
_ratio_img = width / float(height)
- # DEBUG
- logger.debug('[tools.image] compute_width_height - r_src/r_img: %s/%s' % (_ratio_scr, _ratio_img))
- # ..
if width > max_width\
or height > max_height:
if _ratio_img > _ratio_scr:
@@ -77,14 +74,9 @@ def compute_width_height(width, height, max_width, max_height, use_max=False):
else:
width = max_width
height = max_height
- # DEBUG
- logger.debug('[tools.image] compute_width_height - w/h: %s/%s' % (width, height))
- logger.debug('[tools.image] compute_width_height - max_w/max_h: %s/%s' % (max_width, max_height))
return width, height
- # ..
elif use_max is True:
return max_width, max_height
- # ..
else:
return width, height