Skip to content

Automate using webp for images to save repository size #1549

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

Open
honzajavorek opened this issue Apr 28, 2025 · 0 comments
Open

Automate using webp for images to save repository size #1549

honzajavorek opened this issue Apr 28, 2025 · 0 comments
Labels
t-academy Issues related to Web Scraping and Apify academies. t-docs Issues owned by technical writing team. t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@honzajavorek
Copy link
Collaborator

Under #1424, @vdusek suggested using webp would result in much smaller images. @B4nan agrees:

The size of the repo is also important, if the difference is 5x let's just go with webp. We use them pretty much exclusively in the crawlee blog posts too for the same reason.
#1424 (comment)

Since the images are already technically part of the repository, replacing them with optimized webp images would just add to the repo size right now. As this is not the first time we're discussing images under PRs, I think this topic deserves a tracking issue.

What is the preferred way to handling images? My take:

I’m already putting new images through optimizt every time before commit, and it has an option to convert to webp. I just wonder if we could have it as a pre-commit so I don’t have to think about it. But changing extension breaks the path to the image, so I guess this must be a manual process… Unless I write myself a Python script to do the magic… 😅
#1424 (comment)

Alternatively, the pre-commit would at least prevent me from committing other than webp images, so that I'm forced to do the manual work and not to forget about it.

The Docusaurus site should optimize the images automatically on deploy, so we're talking only about the repository size here – there should be no impact on viewers of the site, either way.

@honzajavorek honzajavorek added t-academy Issues related to Web Scraping and Apify academies. t-docs Issues owned by technical writing team. t-tooling Issues with this label are in the ownership of the tooling team. labels Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t-academy Issues related to Web Scraping and Apify academies. t-docs Issues owned by technical writing team. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

1 participant