15
b2plane
3y

Can I git commit? 🙂

Comments
  • 6
    Because people expect the front camera to be mirrored, but not the back. Think about the typical use case.
  • 1
    Lmmfao !!! Those look like my comments lol lol lol
  • 0
    Is that ts ?
  • 0
    @Root that is weird
  • 2
    Because front camera acts like a mirror, you fucking idiot.
  • 0
    @killames It's Dart; notice the async isn't at the front of the function declaration but instead between argument list and opening brace. BuildContext is the class used to access information Flutter provides you with when building widgets.
  • 2
    @Cyanide or does it? It's a camera. It does not have to be a mirror.
  • 3
    Mate, 8f you think you are done then grab yourself a cold one and listen to this:

    Yes, you are on the right track that collected image from the front camera is mirrored, however that is not fixed. A stock camera app also provides a setting to turn it off (mirrored by default). And on top of that my research led me to believe that on OS level a OEM (eg. Samsung, OnePlus etc) can be also define their own defaults. So your code needs a few more checks to cover most cases. Sadly, the raw image given to the app does not have a flag whether the image has been flipped so until that's available (if ever) you can only achieve "best effort"
  • 0
    @iiii Then it would be counter intuitive. We are not used to seeing our front self.
  • 3
    @Cyanide Lot of the times you have to handle both things. For example in MS Teams (and I guess other video messaging apps do the same) you see yourself mirrored, but the other participants see you normally, without mirroring. So I think it is a totally valid usecase.
  • 1
    @Cyanide but photos aren't for us most of the times.
  • 2
    The preview of front camera image should be mirrored by default, but there should be an option to disable mirroring. The captured images should never be mirrored. Any other implementation is fucked up and should be disposed.
Add Comment