clean: Compress images#2645
Open
github-actions[bot] wants to merge 1 commit intomasterfrom
Open
Conversation
Contributor
Up to standards ✅🟢 Issues
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR optimizes repository assets by compressing 44 images within the documentation directories, resulting in a 63.9% size reduction (2.0 MB saved). While Codacy indicates the PR is up to standards, the primary risks involve potential visual degradation and metadata loss due to high compression ratios (exceeding 80% for certain files). Verification is needed to ensure images remain renderable and artifact-free.
About this PR
- Automated compression of this scale (up to 81.3% for some images) carries a risk of metadata loss or visual degradation. A manual audit of the impacted documentation images is recommended.
- No binary diffs or previews were provided in the review environment, making it impossible to verify if the files were correctly updated and remain functional in the filesystem.
Test suggestions
- Verify that all compressed images are valid binary files and can be rendered by browsers/viewers.
- Visual quality check to ensure that high compression levels (e.g., >80% for some files) did not introduce visible artifacts.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify that all compressed images are valid binary files and can be rendered by browsers/viewers.
2. Visual quality check to ensure that high compression levels (e.g., >80% for some files) did not introduce visible artifacts.
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Images automagically compressed by Calibre's image-actions ✨
Compression reduced images by 63.9%, saving 2.0 MB.
docs/organizations/reporting/images/organization-overview-coverage.pngdocs/repositories-configure/integrations/images/github-integration.pngdocs/organizations/images/ai-risk-hub.pngdocs/organizations/images/security-risk-management-container-upload-cicd.pngdocs/repositories-configure/integrations/images/pull-request-summary.pngdocs/organizations/images/ai-risk-inventory.pngdocs/organizations/images/ai-risk-tools-wf-overview.pngdocs/organizations/images/ai-risk-ai-asset-tab.pngdocs/organizations/images/ai-risk-tools-wf-expanded.pngdocs/organizations/images/security-risk-management-container-image-card-list.pngdocs/organizations/images/security-risk-management-container-upload-manually.pngdocs/organizations/images/security-risk-management-container-delete-image.pngdocs/organizations/images/security-risk-management-container-tag-list.pngdocs/organizations/images/ai-risk-repositories.pngdocs/organizations/images/ai-risk-ai-asset-overview.pngdocs/organizations/images/ai-risk-resource.pngdocs/organizations/images/ai-risk-inventory-overview.pngdocs/organizations/images/ai-risk-policy-compliance.pngdocs/organizations/images/ai-risk-checklist.pngdocs/organizations/images/ai-risk-level.pngdocs/repositories/images/pull-requests-tab-coverage.pngdocs/organizations/reporting/images/organization-overview-duplication.pngdocs/repositories/images/pull-requests-false-positives.pngdocs/organizations/reporting/images/organization-overview-complexity.pngdocs/organizations/reporting/images/organization-overview-grade.pngdocs/repositories/images/issues-false-positive-context.pngdocs/organizations/reporting/images/organization-overview-code-health-security.pngdocs/repositories/images/issues-false-positive-menu.pngdocs/organizations/images/security-risk-management-app-scanning-see-results.pngdocs/organizations/images/security-risk-management-overview.pngdocs/organizations/reporting/images/codacy-usage-dashboard.pngdocs/repositories/images/files-duplication.pngdocs/repositories-configure/images/ignored-files.pngdocs/organizations/images/repositories-list.pngdocs/organizations/images/security-risk-management-finding-ignore.pngdocs/organizations/images/security-risk-management-overview-top-risk.pngdocs/organizations/images/security-risk-management-finding-unignore.pngdocs/organizations/images/repositories-evolution.pngdocs/organizations/images/security-risk-management-scan-type-distribution.pngdocs/organizations/images/security-risk-management-finding-unignore-list.pngdocs/organizations/images/repositories-distribution.pngdocs/repositories/images/pull-requests-detail-status.pngdocs/organizations/integrations/images/default-git-provider-settings-apply-all.pngdocs/organizations/images/security-risk-management-overview-distribution.png289 images did not require optimisation.