~ubuntu-branches/ubuntu/saucy/hplip/saucy-proposed

« back to all changes in this revision

Viewing changes to scan.py

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
958
958
                log.error("Resize parameter is incorrect. Resize must be 0% < resize < 400%.")
959
959
                log.error("Using resize value of 100%.")
960
960
            else:
961
 
                new_w = pixels_per_line * resize / 100
962
 
                new_h = lines * resize / 100
963
 
                log.info("Resizing from %dx%d to %dx%d..." % (pixels_per_line, lines, new_w, new_h))
 
961
                new_w = int(pixels_per_line * resize / 100)
 
962
                new_h = int(lines * resize / 100)
 
963
                log.info("Resizing image from %dx%d to %dx%d..." % (pixels_per_line, lines, new_w, new_h))
964
964
                im = im.resize((new_w, new_h), Image.ANTIALIAS)
965
965
 
966
966
        file_saved = False