@电容器/相机图像质量问题在Web平台上

发布于 2025-02-11 11:39:54 字数 397 浏览 3 评论 0原文

我们使用@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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

匿名。 2025-02-18 11:39:54

您是否更改了“宽度”和“高度”选项以检查是否有任何更改?

Did you change the option for "width" and "height" to check if there is any change?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文