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 Image Optimisation strategy #6

Merged
merged 10 commits into from Sep 27, 2019
Merged

Add Image Optimisation strategy #6

merged 10 commits into from Sep 27, 2019

Conversation

kyranb
Copy link
Contributor

@kyranb kyranb commented Aug 22, 2018

As discussed here: czim/laravel-paperclip#24 (comment)

This uses https://github.com/spatie/image-optimizer/ behind the scenes to take care of image optimisation.

Right now it's just using Spatie's defaults, but it could be extended to accept optimisation options as well.

Don't require the the image optimizer package, suggest it instead. It should not be a hard dependency of this package!
Cleanup: removed todo comment, adjusted code style, renamed for abbreviation
Minor docblock and newline tweak
Minor newline tweak
Documentation tweak for ImageOptimizationStrategy
@czim
Copy link
Owner

czim commented Aug 24, 2018

Had a chance to check this, and it's looking good. If you can find the time to add test(s) for this strategy, that would be great!

@kyranb
Copy link
Contributor Author

kyranb commented Aug 24, 2018 via email

@czim
Copy link
Owner

czim commented Aug 24, 2018

My bad, then -- looks like I will need to update those too. Good catch :]

Renames ImageOptimizeStrategy to ImageOptimizationStrategy to be consistent.
@kyranb
Copy link
Contributor Author

kyranb commented Jan 23, 2019

Sorry for leaving you hanging on this one. I've just followed the same testing style as the others, it doesn't exactly assert that the image has been optimised, but it asserts that the class does perform the function on the same file.

@kyranb
Copy link
Contributor Author

kyranb commented Sep 23, 2019

Any chance of getting this merged in?

@czim czim merged commit c742d62 into czim:master Sep 27, 2019
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.

None yet

2 participants