Closed sug0 closed 2 years ago
Using jpeg-encoder v0.5.0, I get the following picture:
jpeg-encoder v0.5.0
Which should have been a red circle. To reproduce this, I am using the following code:
https://git.sr.ht/~sugo/feim/tree/jpeg-bug/item/examples/encode.rs
In turn, this code is calling into your library to perform the actual encoding:
https://git.sr.ht/~sugo/feim/tree/jpeg-bug/item/src/image/jpeg/mod.rs#L167
Could this be some logic error in my code, or is there an issue with the encoding process in your end? If I switch the output format from jpeg to, for instance, farbfeld, this program works as expected.
This was a bug in the encoder. I've released 0.5.1 that should fix this.
Thank you! :)
Using
jpeg-encoder v0.5.0
, I get the following picture:Which should have been a red circle. To reproduce this, I am using the following code:
https://git.sr.ht/~sugo/feim/tree/jpeg-bug/item/examples/encode.rs
In turn, this code is calling into your library to perform the actual encoding:
https://git.sr.ht/~sugo/feim/tree/jpeg-bug/item/src/image/jpeg/mod.rs#L167
Could this be some logic error in my code, or is there an issue with the encoding process in your end? If I switch the output format from jpeg to, for instance, farbfeld, this program works as expected.