Skip to content

Convert all the image files(including sub folders) to base64 code prefixed with corresponding "data:image/XXX;base64," head

Notifications You must be signed in to change notification settings

hwoarangzk/image-to-base64-src

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

image-to-base64-src

Convert all the image files(including sub folders) to base64 code prefixed with corresponding "data:image/XXX;base64," head

The source file is written in CoffeeScript, and there is also a compiled JavaScript version

How to use:

Download the js version getBase64.js and put it under the folder where your image files are

And then enter the command line and go to the same folder above

Run the command:

node getBase64.js 

And you will get the corresponding txt output files

About

Convert all the image files(including sub folders) to base64 code prefixed with corresponding "data:image/XXX;base64," head

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published