eclipsesource / eclipsesource/tabris-js
captured Photos on Tablet are flipped 90 degrees
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
captured photos from camera are working as expected. But if I create an ImageBitmap of it, it is flipped 90 degrees.
This happend only on my Tablet (Samsung Galaxy Tab A6). On all my Smartphones it worked.
After doing some research, I think it could be in the EXIF Orientation.
I find some possible solutions with the cordova camera plugin (not tried yet) with an option `correctOrientation: true`.
But I can't set any options like this in the integrated cameraplugin in tabris.
How could I handle this problems without changing to Cordova-Camera-Plugin?
### Expected behavior
Picture should not be flipped here.
### Environment
- Tabris.js version: 3.8.0
- Device: Galaxy Tab A6
- OS: 'Android 8.1.0
### Code snippet
```js
import {app, Button, CameraView, ImageBitmap, contentView, device, ImageView, permission, Popover, Stack} from 'tabris';
app.idleTimeoutEnabled = false;
const camera = device.cameras[0];
permission.withAuthorization('camera',
() => camera.active = true,
() => console.log('"camera" permission is required.'),
(e) => console.error(e));
contentView.append(
);
async function captureImage() {
const capturedImage = await camera.captureImage({flash: 'auto'});
const imageBitmap = await ImageBitmap.createImageBitmap(capturedImage.image)
const popover = Popover.open(
popover.close()}/>
);
}
```
Contributor guide
Assessment
This issue has not been assessed yet.