-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
默认返回gif格式的base64,有没有参数指定或修改返回的格式? #8
Comments
The developer is not Chinese, so I suggest you use English to ask questions. By the way, I am also a Chinese, and my English is very poor. I usually use Baidu Translation to solve this problem. Maybe imagescript or imagemagick can help you. Please refer to: This is a sample, I use other libraries to solute another problem: =========================================================================== 也许deno库imagescript或imagemagick能帮助到您,请参考: 以下是我结合其它库来解决另一个问题的例子: |
OK, I'll answer in English, if you don't mind. For the time being, no, that's the format returned, with the intention that it's included directly in an HTML const data = base64string.slice(22);
const bytes = Uint8Array.from(atob(data), (c) => c.charCodeAt(0));
await Deno.writeFile("tests/test.gif", bytes); We might include that as an upgrade to this library, it wouldn't be too hard. |
data:image/gif;base64,base64编码的gif图片数据
data:image/png;base64,base64编码的png图片数据
The text was updated successfully, but these errors were encountered: