GSI / jekyll_image_encode

Jekyll tag that renders base64 codes of images fetched from the web
13 stars 7 forks source link

Invalid Format in output for base64 #7

Open inetbiz opened 5 years ago

inetbiz commented 5 years ago

See https://en.wikipedia.org/wiki/Data_URI_scheme#Syntax

<img src="data:image/png;base64,iVBORw0KGgoAAA
ANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4
//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU
5ErkJggg==" alt="Red dot" />
inetbiz commented 5 years ago

This is a sample of what I get on output:

LOGO;ENCODING=b;TYPE=image/PNG:data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAPoAAADICAYAAADBXvybAAAABmJLR0Q
inetbiz commented 5 years ago

Here was my jekyll snippet

PHOTO;ENCODING=b;TYPE=image/PNG:{% base64 http://legaldemo.strikehawk.com/assets/images/balance-scale-solid.png %}