Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended the library with new features #20

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Rohithzr
Copy link

For my own use I have extended the library with a few useful scenarios. I am not sure of the author of the original repo would want to extend the repo itself because it kind of goes beyond the purview of the library itself. But I am still happy to contribute and assist.

For anyone curious to try the extended version, below are the details.

Additional Features

  • Generate thumbnails in webp format
  • Generate small images (.5x) in webp format
  • Specifiy output sub directory for webp images

Additional Dependencies

  • fastimage

Installation instructions

group :jekyll_plugins do
  gem 'jekyll-webp', git: 'https://github.com/Rohithzr/jekyll-webp-ext', branch: 'extend'
end

Sample config

webp:
  enabled: true
  quality: 100
  thumbs: true
  img_dir: ["/blog_images"]
  output_img_sub_dir: "/optimized"
  thumbs_dir: "/thumbnails"
  formats: [".jpeg", ".jpg", ".png", ".tiff"]
  regenerate: true
  generate_50p: true

Happy to hear back from you. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant