Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

读取透明底png图片时,如何设置data:image/png #42

Open
yezipi opened this issue Jul 4, 2017 · 2 comments
Open

读取透明底png图片时,如何设置data:image/png #42

yezipi opened this issue Jul 4, 2017 · 2 comments
Labels

Comments

@yezipi
Copy link

yezipi commented Jul 4, 2017

我试了几次,读取出来的都是data:image/jpeg,这样的话透明底的图片也变成不透明了。

@baijunjie
Copy link
Owner

目前的确存在这个问题,由于lrz压缩插件只会将图片输出成jpeg格式导致,而本插件中的 outputType 仅仅是改变输出的格式而已。另外,将图片旋转到非90度整除的角度,截取边缘时,才会有png效果(因为它和图片压缩插件无关)。

@baijunjie baijunjie added the bug label Jul 4, 2017
@baijunjie baijunjie reopened this Jul 4, 2017
@ByePastHub
Copy link

有没有什么好办法解决呢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants