Closed evilrace closed 1 year ago
This is not a bug.
JPEG images are a lossy format which do not exactly reproduce the original compressed image. The exact nature of that inexact reproduction is not defined by the JPEG specification; there is no standard correct way to decode a given JPEG. Every decoder is potentially different, and producing different values from other decoders is the execpted behavior.
Describe the bug A clear and concise description of what the bug is. I load a image using stb_image.h library. but the values of image are different with values loaded by other libraries(opencv, window paint app) In detail, the value at position (47,27,2 h,w,c) of image is 128, but stb image read this as 130. the difference points are displayed as below. this shows difference between original image loaded by opencv and stb image scaled up by 255 times![image](https://github.com/nothings/stb/assets/34363323/f15ceb64-ecb1-48be-8d33-0e5449f7f819)
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
loaded values are different.
Screenshots If applicable, add screenshots to help explain your problem.