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

feat: sharp as optional image processor #6

Merged
merged 3 commits into from
Sep 21, 2018

Conversation

ekoeryanto
Copy link
Contributor

Fix #4

const sharpImg = require('sharp')(path)

sharpImg
.webp({ quality: 10 })
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should we change to specific format, or just use the same format?

Copy link
Member

Choose a reason for hiding this comment

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

webp is only support by chrome, so it should definitely default to something else. You should run some examples through to see what ends up smaller, I don't recall the rest of the results from my original tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested it. jpeg is smaller than tiff or png, also I have implemented it in https://apek.or.id/about

@KaelWD KaelWD changed the base branch from master to feat/sharp September 21, 2018 14:27
@KaelWD KaelWD merged commit 804eb3f into vuetifyjs:feat/sharp Sep 21, 2018
@ekoeryanto ekoeryanto deleted the sharp branch September 21, 2018 15:11
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