Open dabutvin opened 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
+1 we would be happy to use imgbot to downscale images in our Docusaurus repo, for our site showcase page.
Those images are user-submitted, quite big by default (we never display them full-screen) and resizing them manually is a time-consuming process.
Set something in the
.imgbotconfig
to saymaxwidth: 3000
and when ImgBot goes through all the images in the repo, if the width of the image exceeds this it will resize the image before doing the compression routine.The idea here is, if you check in a 10,000 pixel wide image, even if we run the compression on it, it will still be way oversized for downloading. This will let you specify an upper-limit for the whole repo and have ImgBot check on it for you on a continual basis so you don't have to.
As a part of this we will probably need to extend the pull request template to break out resized from compressed. Maybe want to show the dimensions of all the images in the table too