News for hackers. Stuff that matters.
Re:Xiaomi Camera censoring German postal voting documents by ipsum2 on Thursday September 02, 2021 @01:40PM (#28395017)
I doubt this is a censorship, or a anti-counterfitting feature. It's most likely something wrong with the codec used to display images, possibly 10-bit heif photos are being interpreted as 8-bit jpegs. See other people getting the exact same shade of green in random photos:

https://forums.androidcentral.com/ask-question/912123-photos...

https://www.reddit.com/r/oneplus/comments/4p2ief/pictures_on...

https://forums.oneplus.com/threads/solid-green-photos.453215...

Re:Xiaomi Camera censoring German postal voting documents by verall on Thursday September 02, 2021 @02:54PM (#28395889)
There is nothing special about this shade of green that causes it to come from a codec issue. This green is what you get when you convert a 0-buffer from YUV to RGB. Depending on what colorspace you convert with it will be a slightly different shade.

You can play around with this yourself in imagemagick:

    dd if=/dev/zero of=zero.yuv bs=480 count=240
    convert -depth 8 -size 320x240 yuv:zero.yuv green.png
Conversion from YUV to RGB will be at one of the last steps of the image capture pipeline. Anything in between could wipe the buffer to 0s. It could be due to a simple bug in the image pipeline or it could be censorship. It tells you nothing.
Re:Xiaomi Camera censoring German postal voting documents by trompetenaccoun on Thursday September 02, 2021 @02:29PM (#28395590)
When you click OPs link you get to the reddit thread where as an explanation they cite your very comment here on HN. And we've come full circle.
Re:Xiaomi Camera censoring German postal voting documents by nix0n on Thursday September 02, 2021 @02:48PM (#28395816)
I don't think that's right.

Why would a codec problem, repeatably, affect images of a particular document, but not other images?

Re:Xiaomi Camera censoring German postal voting documents by ipsum2 on Thursday September 02, 2021 @02:54PM (#28395885)
Note that in the OPs photo (https://imgur.com/a/SCHGo4N) it happens to every other image consistently. If you were shooting raw (with Pixel, not familiar with Xiaomi camera), it would save the raw and jpeg together. The gallery not being able to display the raw image results in the green image would be consistent with whats being shown.
Re:Xiaomi Camera censoring German postal voting documents by gpas on Thursday September 02, 2021 @04:18PM (#28396836)
FWIW the redmi note 8 pro main 64mp camera (it's a Samsung sensor shared by many phones) can shoot in raw but only with a gcam port, not with the default Xiaomi camera app.
Re:Xiaomi Camera censoring German postal voting documents by GuB-42 on Thursday September 02, 2021 @02:56PM (#28395917)
Making a guess here, the envelope has a distinct shade of pink, which may trigger some processing. It looks like it is in "AI" mode, and who knows what "AI" does.
Re:Xiaomi Camera censoring German postal voting documents by minxomat on Thursday September 02, 2021 @02:00PM (#28395265)
Yes indeed. This was a really common bug on iOS 13 beta, too.
Re:Xiaomi Camera censoring German postal voting documents by ipsum2 on Thursday September 02, 2021 @02:16PM (#28395452)
@dang or other mods, can you change the title to be a little less inflammatory?