Image Cropper

免费增值
通过 BLACKTREES | 已更新 16 days ago | Tools
人气

7.2 / 10

延迟

1,773ms

服务等级

100%

Health Check

N/A

返回所有讨论

is there any way to get the image in base64 format?

gf

Rapid account: Blacktrees
blacktrees Commented 2 years ago

Hi, thanks for reaching out. I am always interested to implement feature requests. But i have to make sure this fits in the main purpose of the API.

Base64 encoding looks like a good addition. But it is useless without the mimetype. I can implement a JSON response with the aditional meta information. Somthing like:

{ 
	'mime': 'image/png', 
	'encoding': 'base64', 
	'data': 'Rw0KGgoAAA...'
}

from here it is simple to build a image uri or save it for other usecases.

<img src="data:image/jpeg;base64,Rw0KGgoAAA...">

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论