How do you use Jekyll Picture Tag? #210
rbuchberger
started this conversation in
General
Replies: 2 comments 1 reply
-
|
I use it on a site that I created to document the restoration and modification of my car. I don't use it anywhere near as well as I should but perhaps I'll improve the site in future. For now, it works ok. https://rlw7w.uk/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
@rbuchberger I also am trying to wrangle my head around the liquid and data presets. Here's what I have for blog header:media_queries:
mobile: 'max-width: 480px'
tablet: 'max-width: 800'
laptop: 'max-width: 800'
desktop: 'max-width: 800'
wide: 'min-width: 800'
presets:
blog-header:
formats: [webp, original] # Order matters!
widths: [200, 400] # Image widths, in pixels.
sizes:
mobile: calc(100vw - 16px)
tablet: 80vw
size: 400px
link_source: false
quality: 75
format_quality:
webp: 50
avif: 30
jp2: 30
strip_metadata: true
dimension_attributes: true
nomarkdown: false
attributes:
parent: data-downloadable="true"
picture: 'loading="lazy" class="image featured u-photo"'
# ____ ______
# / _/___ ___ ____ _____ ____ /_ __/___ _____ _
# / // __ `__ \/ __ `/ __ `/ _ \ / / / __ `/ __ `/
# _/ // / / / / / /_/ / /_/ / __/ / / / /_/ / /_/ /
# /___/_/ /_/ /_/\__,_/\__, /\___/ /_/ \__,_/\__, /
# /____/ /____/
# ASCII-Font › http://patorjk.com/software/taag/#p=display&f=Slant&t=Phlow
picture:
source: "assets/images/_fullsize/"
output: "assets/images/generated/"
suppress_warnings: no
nomarkdown: true
ignore_missing_images: true
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
Since we just hit 500 stars, I'd like to know how people are using this little plugin! My involvement with Jekyll Picture Tag started something like this:
I was a newly self-taught web developer, creating a portfolio site. I figured that if I want to be hired, said website should probably have a near-perfect lighthouse score, so I went about addressing the various recommendations made by it. One of those recommendations was to offer webp images, which led me to start learning responsive images. After a brief investigation I thought "Holy crap this is painful. Surely there's a plugin to do it all for me." This led me to JPT.
At the time it hadn't been updated in years and didn't support multiple image formats. I dove into the source code, thinking I might add the feature myself. There were some open long-open pull requests and a few issues I could handle, so I pinged the original maintainer (@robwierzbowski) asking for push access which he graciously gave me.
From there I started what I thought would be some light refactoring, but which quickly turned into a complete rewrite. That was released as version 1.0. After some time Rob gave the repo to me entirely, and the rest is in the changelog.
So I'd love to know: What's your use case? What cool things are you doing with JPT?
Beta Was this translation helpful? Give feedback.
All reactions