-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Set up imgbot to automatically compress image assets #28157
Comments
Triggered auto assignment to @muttmuure ( |
Technically this will apply to any image in this repo since @rushatgabhane let's please also stick with lossless, not aggressive/lossy compression. |
Still on HOLD. Working on getting OSBotify appified. Actively discussing in #deployer |
Taking this off HOLD |
@justinpersaud is going to help out with this 🎉 |
Cloudflare has a product to automatically compress images and it is zero effort on our part. https://developers.cloudflare.com/images/polish/
If the problem we're solving here is handling uncompressed images, we could just turn that on and see if it helps? |
@roryabraham I installed imgbot in the App repo. Seems like it will open a PR with optimized images shortly. Waiting to see what that looks like. |
wohooo! |
Hey, here is the PR #30230 Do we want to look for something specific in it? |
thanks @rlinoz I will take it for now. I think the plan is to automate merges so I'll grab it and figure out next steps. |
@rushatgabhane do you want to take a look at it too? I don't see anything that stands out at an initial glance. I will tag Shawn on it too. |
is it okay to compress images inside ios and android folder? 📂 |
rest looks good! ✅ |
Well lossless compression doesn't touch quality or dimensions, so I think it's fine. @AndrewGable maybe you have an idea if it's ok to compress images in the android/ios folders? |
Is this still true? A few other tasks that need to be done here
|
Submitted PR for the above tasks |
It's OK to compress images in iOS/Android as long as the image dimensions stay the same. |
This is mostly done, just doing some polish. The first imgbot PR was sent earlier and automatically merged: |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
I think we're all done here. We found a case where an optimized image had the colour changed slightly in the regression above. I ended up added the file to the ignore list for optimizations and reverting it. |
HOLD on https://github.com/Expensify/Expensify/issues/299601
Slack context: https://expensify.slack.com/archives/C01GTK53T8Q/p1695410267279189
Problem
Manually compressing images before uploading is a tedious task. It is easy to forget about it. However, we're adding many uncompressed images to this repo for the HelpDot site.
Solution
Add a bot that will raise a PR to losslessly compress images - imgbot is free for opensource repos.
So even if we upload an unoptimized image, the bot will take care of it 🤖
A few stipulations:
imgbot
as a GitHub Application. We currently have an Open Issue to create an open-source GitHub Application fromOSBotify
. So this is on HOLD for thatOSBotify
opens animgbot
PR, theGitHub Actions
bot will automatically approve and merge itThe text was updated successfully, but these errors were encountered: