Repository navigation
feat(docs-infra): add profile picture size check - #41253
AndrewKushnir wants to merge 2 commits into
Conversation
|
@gkalpak I've created this PR as a followup after reviewing PR #41204. There is a couple questions that I need your input on:
Please let me know what do you think. |
84672a9 to
6b4d230
Compare
|
How about we just reduce the size of these 12 files? |
|
Wow, I didn't realize we have such large image files in there 🤯 @StephenFluin has been trying to keep images under 20kb (#28437 (comment), #32518 (review), #33516 (comment)), but apparently some larger ones have slipped in lately 😱 Given that these images are only displayed as 168px x 168px, it doesn't make sense to have large images there. (Keep in mind that all these images are downloaded and stored in the cache for all users via the SW, so it makes a lot of sense to try to keep them at reasonable sizes. EDIT: To clarify, these images are part of the docs-lazy asset group, so they are only cached if the user visits the I would think that a 30kb limit is enough. For the existing images that exceed that limit (currently 26), I think it would be preferable to add them to an exception list and over time try to get them below the limit (e.g. we could ping the "owners" or even reduce the sizes ourselves). (We could even go as far as using |
This commit updates the logic that validates contributors.json data and introduces a new check that verifies that profile images don't exceed specified limit.
6b4d230 to
4d93d5e
Compare
|
Thanks for the comments @gkalpak and @petebacondarwin 👍 I've added a blocklist for now and reduced the limit to 30kb and George proposed. Could you please take another look at the changes when you get a chance? Thank you. |
|
Why not just reduce the image size right now? It seems like a lot more work to have to add and then remove the blocklist later. |
gkalpak
left a comment
There was a problem hiding this comment.
Thx, @AndrewKushnir!
Reducing the image sizes would be great of course, but I wouldn't block the PR on that.
This commit updates the logic that validates contributors.json data and introduces a new check that verifies that profile images don't exceed specified limit. PR Close #41253
|
FYI, I have created #41287 to track reducing the image sizes. |
In angular#41253 the size of contributor images was limited, but some images were already too large. So an exclusion list was added. These images have now been reduced, so the exclusion list is no longer needed. The files were reduced by a combination of running them through the https://tinyjpg.com/ online service and manually setting their size to 168px wide or tall using the MacOS Image Preview app.
In #41253 the size of contributor images was limited, but some images were already too large. So an exclusion list was added. These images have now been reduced, so the exclusion list is no longer needed. The files were reduced by a combination of running them through the https://tinyjpg.com/ online service and manually setting their size to 168px wide or tall using the MacOS Image Preview app. PR Close #41292
In #41253 the size of contributor images was limited, but some images were already too large. So an exclusion list was added. These images have now been reduced, so the exclusion list is no longer needed. The files were reduced by a combination of running them through the https://tinyjpg.com/ online service and manually setting their size to 168px wide or tall using the MacOS Image Preview app. PR Close #41292
This commit updates the logic that validates contributors.json data and introduces a new check that verifies that profile images don't exceed specified limit. PR Close angular#41253
In angular#41253 the size of contributor images was limited, but some images were already too large. So an exclusion list was added. These images have now been reduced, so the exclusion list is no longer needed. The files were reduced by a combination of running them through the https://tinyjpg.com/ online service and manually setting their size to 168px wide or tall using the MacOS Image Preview app. PR Close angular#41292
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This commit updates the logic that validates contributors.json data and introduces a new check that verifies that profile images don't exceed specified limit.
PR Type
What kind of change does this PR introduce?
Does this PR introduce a breaking change?