Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GSI/jekyll_image_encode
Jekyll tag that renders base64 codes of images fetched from the web
https://github.com/GSI/jekyll_image_encode
Last synced: about 1 month ago
JSON representation
Jekyll tag that renders base64 codes of images fetched from the web
- Host: GitHub
- URL: https://github.com/GSI/jekyll_image_encode
- Owner: GSI
- Created: 2013-08-10T08:39:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T15:08:08.000Z (almost 7 years ago)
- Last Synced: 2024-10-20T12:18:56.163Z (about 2 months ago)
- Language: Ruby
- Size: 6.84 KB
- Stars: 13
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
- awesome-jekyll-plugins - **Image Encode Tag** - - tag that renders base64 codes of images fetched from the web. (Images & Pictures)
README
h1. Jekyll Image Encode
This Jekyll plugin fetches images from the web and renders their corresponding base64 codes.
For example, a **1x1 clear PNG** would become:
pre.
Be sure to know your reasons when using this plugin.
h2. Installation
Set the constant @PATH_TO_JEKYLL_SITE@ correctly and run these commands accordingly:
pre. cd ${PATH_TO_JEKYLL_SITE}
echo "gem 'jekyll_image_encode'" >> Gemfile
bundle
echo "require 'jekyll_image_encode'" >> _plugins/ext.rb*Alternatively* you may accomplish the same without @echo@ and @bundle@:
# Install the plugin by running @gem install jekyll_image_encode@
# Add the line @require 'jekyll_image_encode'@ to *_plugins/ext.rb*h2. Usage
In the source attribute of an HTML *img* element, call the *base64-tag* providing the image URL as the only parameter:
pre.
This works for both remote (http://...) and local urls within your jekyll project.
h2. License
Jekyll Image Embed is released under the "MIT License":http://www.opensource.org/licenses/MIT.