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

Add functionality to apply lossless image optimization #659

Merged
merged 10 commits into from
Jul 15, 2020

Conversation

tmp-hallenser
Copy link
Contributor

Implement lossless image optimization (#630)
Uploaded original photo is not touched, only medium, small and thumbnails.

Requirements: jpegoptim, optipng, pngquant, gifsicle, webp

@codecov
Copy link

codecov bot commented Jul 11, 2020

Codecov Report

Merging #659 into master will decrease coverage by 1.37%.
The diff coverage is 65.21%.

Copy link
Member

@ildyria ildyria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Do we want to add warnings if the executables are not available ?
Or in the diagnostic page, if optimized is set to 1 but the softwares are not there?

@tmp-hallenser
Copy link
Contributor Author

LGTM.

Do we want to add warnings if the executables are not available ?
Or in the diagnostic page, if optimized is set to 1 but the softwares are not there?

Good idea. The library already provides some logging, we need to specify a logging interface (type Psr\Log\LoggerInterface) -> can we use the Lychee Logging?

@ildyria
Copy link
Member

ildyria commented Jul 11, 2020

What I am also worried, is, if you enable the optimizer but the software are not here, does it raises exceptions or does it just append to the logs ?

@ildyria
Copy link
Member

ildyria commented Jul 15, 2020

@tmp-hallenser can you double check ?

Logger functionality has been fixed in v1.6.2
@sonarcloud
Copy link

sonarcloud bot commented Jul 15, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 1 Security Hotspot to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tmp-hallenser
Copy link
Contributor Author

tmp-hallenser commented Jul 15, 2020

works, thanks. Nice job with the logger.

@tmp-hallenser tmp-hallenser merged commit fb2681c into master Jul 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the optimize_images branch July 15, 2020 19:54
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