My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: Efficiency of image output (8-bit vs 1-bit)
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by adrian.b...@gmail.com, Oct 2, 2011
What steps will reproduce the problem?
1. Run the inbuilt example testqr.py
Alternatively, use the function qr.makeImage()

What is the expected output? What do you see instead?
The output BMP file is 700kb. The correct size for a BMP of that size should be about 31kb.
The BMP uses the RGB colorspace. Instead it should use the monocrome (1-bit) colorspace.

changing the code:
im = Image.new("RGB", (pixelsize, pixelsize), "white")
to
im = Image.new("1", (pixelsize, pixelsize), "white")

fixes the issue. I've changed my copy, but it should be considered for the repository.

What version of the product are you using? On what operating system?
r3

Please provide any additional information below.
Mac OS X Lion. Python 2.7 using Fink to install.

Powered by Google Project Hosting