@电容器/相机图像质量问题在Web平台上
我们使用@Capacitor/Camera
插件来获取图像。这是当前的实现:
await Camera.getPhoto({
quality: 100,
allowEditing: true,
resultType: CameraResultType.Base64,
source: CameraSource.Camera,
direction: CameraDirection.Front,
});
然后,如果我们下载图像(将图像保存到firebase之后)并检查其DPI(每英寸点),它始终会导致72像素/英寸
,无论图像是什么大小是。
关于如何增加DPI的任何建议吗?
We use the @capacitor/camera
plugin to get the image. Here is the current implementation:
await Camera.getPhoto({
quality: 100,
allowEditing: true,
resultType: CameraResultType.Base64,
source: CameraSource.Camera,
direction: CameraDirection.Front,
});
Then if we download the image (after saving it to firebase) and check its DPI(dots per inch), it always results in 72 pixels/inch
, no matter what the image size is.
Any suggestion on how to increase the DPI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否更改了“宽度”和“高度”选项以检查是否有任何更改?
Did you change the option for "width" and "height" to check if there is any change?