Skip to content

NEW 'Compress Images' workflow#837

Merged
mauteri merged 1 commit intoGatherPress:mainfrom
carstingaxion:feature/image-compression-workflow
Sep 2, 2024
Merged

NEW 'Compress Images' workflow#837
mauteri merged 1 commit intoGatherPress:mainfrom
carstingaxion:feature/image-compression-workflow

Conversation

@carstingaxion
Copy link
Copy Markdown
Collaborator

@carstingaxion carstingaxion commented Sep 2, 2024

While working on the second iteration (#822, #838) of the Screenshots workflow, I wanted to make sure, the generated images don't get too big, because Playwright usually created the screenshots with 300 - 500 kb, which is a lot.

Description of the Change

This PR introduces a new GitHub action workflow, that reduces images sizes.

A Github Action that automatically compresses JPEGs, PNGs and WebPs in Pull Requests.

https://github.com/marketplace/actions/image-actions

This workflow will run against all PRs containing images.
It should be triggered automatically whenever screenshot PRs are created.

Closes #

How to test the Change

Upload an image within a PR and get it shrinked automatically.

Changelog Entry

Added - New Image compression workflow (for the 🌳🌳🌳)

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@carstingaxion
Copy link
Copy Markdown
Collaborator Author

The need for such an workflow shows this screenshot:

image-compression

@mauteri mauteri merged commit 26a496d into GatherPress:main Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants