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

Images miss-aligned and colour distorted #1

Open
anisghaoui opened this issue May 17, 2019 · 2 comments
Open

Images miss-aligned and colour distorted #1

anisghaoui opened this issue May 17, 2019 · 2 comments

Comments

@anisghaoui
Copy link

Hello,

I have just tested your functions and i found them really useful.

However, there seems to be a problem with slightly small size bmp images (below 500x500) where the re-encoded image seems to have a horizontal offset to the right.

I tested it with a 500x393 it bugs , while i tested it with another image 500x333 and it worked. I used both functions with some other images and i can't find the pattern. I also went through your code and tried to find what was creating the offset.

Have a nice day.

@vallentin
Copy link
Owner

I have an idea what might be the cause. Would it be possible for you to share an image, that I can use testing?

@anisghaoui
Copy link
Author

I have just tested this image :

http://www.partow.net/programming/bitmap/images/tiger.bmp - IT WORKS

Now if you go to this website :

https://image.online-convert.com/convert-to-bmp

and convert the image as I just did, you will obtain an image with an offset in the bottom left corner that makes the images shift right (you code does it well).

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

No branches or pull requests

2 participants