-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add automatic compression to uploaded images #2342
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This would be a great addition to the core software not only for PNG but for JPGs as well. I am doing this manually via a script inside of my docker image, but would be great to have as the images were uploaded. |
Hi out there, I wrote the following bash script to optimize uploaded images:
I'll maintain the script here: |
We came here after reading the blog post about the 25.05 release which mentions the support of AVIF and links to the amazing article about AVIF by @jakearchibald. It would be great to have an optional setting inside BookStack to optimise uploads because I think a lot of instances would benefit massively from compression. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature you'd like
Add option to reduce all loaded png images from 24-bit to 256 or even 64 colors.
https://about.gitlab.com/blog/2020/01/30/simple-trick-for-smaller-screenshots/ --- article
Program to use - pngquant
Example:
pngquant 64 --skip-if-larger --strip --ext=.png --force *
Add option to convert new .png images during upload, but I don't know if it's possible.
Describe the benefits this feature would bring to BookStack users
Screenshots by default are saved as 24-bit png files. With this feature you can reduce BookStack's folder size and open site pages quickly.
The text was updated successfully, but these errors were encountered: