• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

rbuchberger/jekyll_picture_tag: Easy responsive images for Jekyll.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

rbuchberger/jekyll_picture_tag

开源软件地址:

https://github.com/rbuchberger/jekyll_picture_tag

开源编程语言:

Ruby 100.0%

开源软件介绍:

Jekyll Picture Tag

Help Wanted

My life just got a lot busier; I'd really like a maintainer or two to help. I'm not abandoning JPT, I just don't have a ton of time to put into hacking on it.

If you've been learning Ruby and you want to move beyond tutorials and throwaway projects, I'd love to hear from you. I'd be happy to help you gain experience and credibility, if you're willing to help me maintain this project!

If you're interested, contact me: [email protected]

Logo

Tests & Formatting

Responsive Images done correctly.

It's simple to throw a photo on a page and call it a day, but doing justice to users on all different browsers and devices is tedious and tricky. Tedious, tricky things should be automated. This blog post further elaborates on that theme.

Jekyll Picture Tag automatically builds cropped, resized, and reformatted images, builds several kinds of markup, offers extensive configuration while requiring none, and solves both the art direction and resolution switching problems with a little YAML configuration and a simple template tag.

Why use Responsive Images?

Performance: The fastest sites are static sites, but if you plonk a 2mb picture of your dog at the top of a blog post you throw it all away. Responsive images allow you to keep your site fast, without compromising image quality.

Design: Your desktop image may not work well on mobile, regardless of its resolution. We often want to do more than just resize images for different screen sizes, we want to crop them or use a different image entirely.

Why use Jekyll Picture Tag?

Developer Sanity: If you want to serve multiple images in multiple formats and resolutions, you have a litany of markup to write and a big pile of images to generate and organize. Jekyll Picture Tag is your responsive images minion - give it simple instructions and it'll handle the rest.

Features

  • Generate piles of cropped, resized, and converted image files.
  • Generate corresponding markup in several different formats.
  • Configure it easily, or not at all.
  • Make Lighthouse happy.

Documentation:

https://rbuchberger.github.io/jekyll_picture_tag/

Changelog:

https://rbuchberger.github.io/jekyll_picture_tag/devs/releases

Recent releases:

  • 2.0.3 April 1, 2021

    • Improve backend format support detection
  • 2.0.2 March 31, 2021

    • Do not pass a quality argument when generating PNG files.
      • It only works on newer versions of vips, breaking builds when using older versions (such as when deploying to netlify.)
      • It's not remarkably useful in the first place.
  • 2.0.1 March 31, 2021

    • Select imagemagick deliberately when appropriate, rather than simply rescuing all vips errors and trying again. This will stop JPT from suppressing useful vips errors.
  • 2.0 March 25, 2021 - Migration guide

    • Switch from ImageMagick to libvips.

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap