Yummypets / YPImagePicker

📸 Instagram-like image picker & filters for iOS
MIT License
4.31k stars 976 forks source link

Allow suppression of flipping front camera #652

Open schveiguy opened 3 years ago

schveiguy commented 3 years ago

Is your feature request related to a problem? Please describe. My app that uses YPImagePicker is used to take pictures of things used in auditing. In many cases, the pictures are of nameplate data (i.e. volts amps, etc), and in many cases it's easier to use the front camera to take the picture instead of the rear camera. When this happens, the nameplate text is shown backwards. I understand this is the de-facto standard from Instagram, but it would be quite simple to add a configuration for suppressing the flipping of front camera photos.

Describe the solution you'd like A config option to avoid flipping front camera photos.

Describe alternatives you've considered Currently, the users take pictures using their phone camera app and then import into my app to avoid the reverse text. I considered flipping the image, but it seems like a waste since YPImagePicker is already going out of its way to modify the provided data, it would be less work to just not flip it in the first place.

I currently am using a custom fork of YPImagePicker to avoid flipping the photos.

Additional context None

schveiguy commented 3 years ago

Note, I still would want the preview to be flipped, just not the resulting image.

NikKovIos commented 3 years ago

Hi. You can make a PR for that.