Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Add image resize #6

Open
pavelpromin opened this issue Aug 12, 2013 · 1 comment
Open

Add image resize #6

pavelpromin opened this issue Aug 12, 2013 · 1 comment

Comments

@pavelpromin
Copy link

In printImage() function add image resize
for example:

if width > 384:
            width = 384
            height = int(float(width) / 384 * height)
            image = image.resize((width, height))
@tiaod
Copy link

tiaod commented Jul 20, 2014

Actually,it is:
height = int(384/float(width) * height)

cfreshman referenced this issue in cfreshman/Python-Thermal-Printer Feb 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants