benoitc / benoitc/qrkit

I tried to use the library with Pillow with not too much luck

Open
#11 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Description

- Ubuntu 24.04.1 LTS
- Python 3.12.3
- libqrencode4:amd64 (4.1.1-1build2) ...
- libqrencode-dev:amd64 (4.1.1-1build2) ...

Using the readme, I tried to install it from PyPI with the following issue:

![image](https://github.com/user-attachments/assets/1112252b-9eb9-4aff-9a23-89f148ff5821)

Then I tried using `python setup.py install` which kinda worked:

![image](https://github.com/user-attachments/assets/96f5e4e9-4f68-4324-b8ca-7c16a33313a4)

I was able to run the code from the README:

![image](https://github.com/user-attachments/assets/6999fffd-9e87-4b83-ac3a-e367198de172)

**The code**

```
>>> from qrkit import qrimg
>>> img = qrimg.encode_to_img('https://youtu.be/DtSjAzqA82E'.encode('utf-8'), width=300, border=10)
>>> img.save('qrimage.png', 'PNG', quality=80)
```

But the result is not compliant:

The file contains:

![qrimage](https://github.com/user-attachments/assets/8cd1b743-c9f0-4252-a882-7b2faed98f45)

Instead of:

![image](https://github.com/user-attachments/assets/85a160a4-d2c9-47f4-b60a-3fae343605f8)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.