Yuriy-Svetlov / compress-images

Minify size your images. Image compression with extension: jpg/jpeg, svg, png, gif. NodeJs
https://www.npmjs.com/package/compress-images
MIT License
596 stars 77 forks source link

How to deal with Base64 strings? #37

Closed SunboX closed 4 years ago

SunboX commented 4 years ago

Hi,

I have my images as Base64 strings. How could I deal with that? Is there an API to feed them into?

greetings and thanks, André

Yuriy-Svetlov commented 4 years ago

@SunboX Hi André,

There is not API for work with Base64 strings. Perhaps you can Base64 strings of images convert to binary, and then use 'compress-images".

greetings and thanks, Yuri