Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Easy responsive images for Jekyll.
The Jekyll Picture Tag plugin for Jekyll automatically generates cropped, resized, and reformatted responsive images from a single source image and a simple Liquid template tag, with optional YAML configuration. It is an open-source project maintained on GitHub, with 628 stars, and is designed to solve both art direction and resolution switching for responsive web pages.
Jekyll Picture Tag is a Ruby plugin that runs during the Jekyll build process. It accepts a source image and a small set of instructions (via a Liquid tag and YAML presets) and outputs a set of optimized images plus the HTML markup needed to serve them. Since version 2.0, the plugin uses libvips for image processing, which is significantly faster than ImageMagick, and it falls back to ImageMagick for formats libvips cannot handle. It requires Ruby 2.6 or higher and Jekyll 4.0 or higher.
keep option controls this behavior.format_quality settings for WebP, AVIF, and JPEG 2000, and supports per-format write options.jpt- prefix so you can use it with no setup.magick and convert, adding Windows support without breaking Ubuntu or other distributions with older ImageMagick.srcset markup.crop and keep settings for art direction.srcset, so browsers download only what they need.In your Jekyll template, you place a Liquid tag that names a source image and, optionally, a YAML preset. At build time, the plugin reads the configuration, generates the required image variations into the site's output directory, and replaces the tag with the appropriate <picture> and <img> markup. The 2.0 rewrite simplified cropping to aspect ratios only, removed the old markup_presets and media_presets in favor of presets and media_queries, and added input validation for clearer error messages.
Free — Jekyll Picture Tag is open source and available on GitHub. There are no paid tiers or subscription plans.
Yes, it is open source and distributed through GitHub. You can use it in any Jekyll project without paying a license fee.
Jekyll Picture Tag 2.0 and later require Ruby 2.6 or higher and Jekyll 4.0 or higher. The image processing backend is libvips, with ImageMagick used as a fallback. Version 2.1.3 also fully supports Windows.
The plugin includes default quality settings for WebP, AVIF, and JPEG 2000, and can output any format supported by libvips or ImageMagick. PNG output is handled without a quality argument, which avoids issues on older vips versions.
Yes, since version 2.1.3, Jekyll Picture Tag decides whether to call magick or convert based on the environment, which adds Windows support without breaking Linux distros that ship older ImageMagick.
The 2.0 release switched from ImageMagick to libvips, introduced smartcrop, renamed markup_presets and media_presets to presets and media_queries, added stock jpt- presets, and dropped support for the old naming. It also raised the minimum Ruby version to 2.6 and Jekyll to 4.0.
