Images miss-aligned and colour distorted
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.
I have an idea what might be the cause. Would it be possible for you to share an image, that I can use testing?
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).