No commit activity in last 3 years
No release in over 3 years
Fetch remote images and apply transforms using Cloudinary
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.2

Runtime

~> 3.5
 Project Readme

Jekyll::CloudinaryFetcher

Custom Liquid Tag for Jekyll. Fetch remote images and apply transforms using Cloudinary.

Requirements

Installation

Add this line to your application's Gemfile:

gem 'jekyll-cloudinary_fetcher', group: :jekyll_plugins

And then execute:

$ bundle install

Usage

Add the following to your Jekyll config:

Name Default Description
cloudinary_cloud_name "Cloud name" assigned in https://cloudinary.com/
cloudinary_fetch_url site.url Publicly accessible URL
cloudinary_fetch_skip_transform [] Global list of file formats to which Cloudinary transforms should never be applied

Now you can use the cloudinary_fetch tag in any of your Liquid templates to make use of Cloudinary's Fetch feature.

<img src="{% cloudinary_fetch 'assets/image.png' %}">
<img src="https://res.cloudinary.com/<cloudinary_cloud_name>/image/fetch/<cloudinary_fetch_url>/image.png">

You can also combine transformations with the Fetch feature to transform your images.

<img src="{% cloudinary_fetch 'assets/image.png', w:600, q:auto, f:auto %}">
<img src="https://res.cloudinary.com/<cloudinary_cloud_name>/image/fetch/w_600,q_auto,f_auto/<cloudinary_fetch_url>/image.png">

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/fictivekin/jekyll-cloudinaryfetcher.

License

The gem is available as open source under the terms of the MIT License.