LoadBMP icon indicating copy to clipboard operation
LoadBMP copied to clipboard

Images miss-aligned and colour distorted

Open anisghaoui opened this issue 6 years ago • 2 comments

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.

anisghaoui avatar May 17 '19 19:05 anisghaoui

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

vallentin avatar May 17 '19 19:05 vallentin

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).

anisghaoui avatar May 17 '19 20:05 anisghaoui