# 为什么粘贴的 PNG 会被转换为 JPG

**URL:** <https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403>\
**Category:** Development\
**Created:** [2020年五月23日 02:54 UTC](https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403 "2020-05-23T02:54:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [2020年五月23日 03:20 UTC](https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403/5 "2020-05-23T03:20:36Z")

</div>

谢谢您的回答！我想我现在开始理解了。

```
-----------------------------149589358933568048074206291858

Content-Disposition: form-data; name="type"

composer

-----------------------------149589358933568048074206291858

Content-Disposition: form-data; name="files[]"; filename="Screenshot_2020-05-05.png"

Content-Type: image/png

```

我该如何复现这个问题？我使用了开发者工具查看请求，在粘贴 PNG 图片时看到了上述内容；当我尝试粘贴 JPG 图片时，它显示为 image/jpg。“原始位图”（raw bitmap）是什么意思？这是在使用哪个浏览器时发生的现象？（我使用的是 Firefox）

**编辑** 好的，算了，我想我可能误解了“粘贴”的含义。我实际上执行的是拖放操作。我尝试复制并粘贴一张图片，但似乎在我的系统上根本无法正常工作。它只是将这段文本添加到了编辑器中：

```
x-special/nautilus-clipboard
copy
file:///home/username/Downloads/Screenshot_2020-05-05%20.png

```

---

_[View the full topic](https://meta.discourse.org/t/why-do-pasted-png-get-converted-to-jpg/152403)._
