Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: non integer image position #70

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

Adam-Alj
Copy link
Contributor

When embedding an image, it is currently possible to have the image placed in a non-integer position.

The result is that QR "bits" are partially covered.

This can be replicated by modifying the existing embed example by calling image_size(4f64) on the ImageBuilder.

Here is the (erroneous) output before this change:
nofix

Here is the (correct) output with this change:
withfix

@Adam-Alj Adam-Alj marked this pull request as ready for review October 27, 2024 06:25
@erwanvivien
Copy link
Owner

Hey @Adam-Alj, thanks for the pull request 🚀
DO you mind merging those two commits? I can do it if you prefer :)

fix: maintain center position
@Adam-Alj
Copy link
Contributor Author

Hi @erwanvivien , sorry this took so long, life gets in the way.

Squashed those commits, lmk if you need anything else from my end, thanks!

@erwanvivien erwanvivien merged commit f4aafcb into erwanvivien:master Nov 26, 2024
4 checks passed
@Adam-Alj
Copy link
Contributor Author

Adam-Alj commented Nov 27, 2024

@erwanvivien thanks for merging! Could you please publish a new version with this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants