Skip to content
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

Image Minify: Skip files without minifier & replace faulty message (Backport to 2.x) #1058

Open
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

pixelbrackets
Copy link
Contributor

Backport of PR #1057 to 2.x version branch.

In case of an error the message contains placeholders which
are not replaced anymore downstream
(`Minified {filecount} out of {filetotal} images into {destination}`).
Print the result message as info and then return a short task message
without placeholders instead.
Early return for all files which have no minifier set,
to avoid fatal error with ambigous error message
“Minifier method  cannot be found!”.
For example when webp images exist in the image directory.
The files are added to the error list right away,
to that the task may continue to minify other images and
show a result message (“Minified X of Y files”) at the end.
@pixelbrackets pixelbrackets changed the base branch from 3.x to 2.x November 10, 2021 18:20
@pixelbrackets pixelbrackets changed the title Image Minify: Skip files without minifier & replace faulty message Image Minify: Skip files without minifier & replace faulty message (Backport to 2.x) Nov 10, 2021
@pixelbrackets
Copy link
Contributor Author

Hey, can I help with anything to get this merged?

@pixelbrackets
Copy link
Contributor Author

Hey @greg-1-anderson May I help you with any additional robo management tasks to work off the PR queue?

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.

1 participant