inpycon2019 icon indicating copy to clipboard operation
inpycon2019 copied to clipboard

Use webp for images with fallback

Open astronomersiva opened this issue 7 years ago • 7 comments

astronomersiva avatar May 01 '19 07:05 astronomersiva

@astronomersiva Would like to take this up as well. However, little unsure where to start. Found a nice little gem that could convert images to webp. However, webp doesn't seem to behaving nice with jekyll assets as of now. With v3.1, we should be able to work with multiple srcset with <picture>

meanmachin3 avatar May 12 '19 13:05 meanmachin3

@meanmachin3, that gem sure does look interesting. If generating webp images is the issue, we can enforce checking in the webp equivalents along with the original images. That way, we will only have to worry about generating the <picture> tags. Let me know what you think.

astronomersiva avatar May 13 '19 15:05 astronomersiva

@astronomersiva Generating tag is little problematic, since you need image resizing on the fly. How about using cloudinary for this ?

They offer about 25 credits per month which is equivalent to 25k transformation per month. They offer on the fly image transformation. Let me know your thoughts.

Do we have any other medium of discussion that could be faster(Slack/Discord) ?

meanmachin3 avatar May 19 '19 17:05 meanmachin3

@meanmachin3, to start with, let's just use webp and png/jpeg. We can go for resizing later.

https://jekyllrb.com/docs/plugins/tags/ - We can use this for generating the markup.

I have mailed you my contact details 😄

astronomersiva avatar May 20 '19 05:05 astronomersiva

@meanmachin3 any updates on this?

astronomersiva avatar May 30 '19 04:05 astronomersiva

@astronomersiva Haven't worked on this piece this week. How about I put up an update by this weekend ?

meanmachin3 avatar May 31 '19 05:05 meanmachin3

Sure @meanmachin3

astronomersiva avatar May 31 '19 15:05 astronomersiva