Skip to content
This repository has been archived by the owner on Sep 27, 2018. It is now read-only.

Jekyll tag that converts images from the internet to base64

Notifications You must be signed in to change notification settings

Terminal/jekyll_image_encode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Jekyll Image Encode

already abandoned? jeez, it's like circ town here

This project is no longer required for Discord_Fork, and as such, is no longer maintained. like it ever was to begin with

Original README.md

is a fork of another project

This Jekyll plugin fetches images from the web and renders their corresponding base64 codes.

For example, a 1x1 clear PNG would become:

<img src="data:image;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAAXNSR0IArs4c6QAAAAxJREFUCNdj+P//PwAF/gL+3MxZ5wAAAABJRU5ErkJggg== " />

Be sure to know your reasons when using this plugin.

Installation

Dunno. I don't Ruby. This is a bodge to allow defaults, and also to grab data from the page

Usage

This grabs page.data.avatar, and if the URL doesn't exist, defaults to /assets/images/logo.png, relative to the Jekyll

<img href="{% base64 data.avatar;/assets/images/logo.png %}" />

About

Jekyll tag that converts images from the internet to base64

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%