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

Support toFormat('jpg') #814

Merged
merged 7 commits into from May 22, 2017
Merged

Support toFormat('jpg') #814

merged 7 commits into from May 22, 2017

Conversation

jingsam
Copy link
Contributor

@jingsam jingsam commented May 21, 2017

No description provided.

@lovell
Copy link
Owner

lovell commented May 21, 2017

Hello, thanks for this, please can you fix the linting errors.

@lovell
Copy link
Owner

lovell commented May 21, 2017

Please can you add a unit test for this.

@jingsam
Copy link
Contributor Author

jingsam commented May 22, 2017

It seems there is no independent unit test for output.js. Where should I start writing a test for this?

@lovell
Copy link
Owner

lovell commented May 22, 2017

Thanks for the update, please add a test to test/unit/io.js for now (sorry that file is so big, it needs breaking up).

test/unit/io.js Outdated
@@ -253,6 +253,21 @@ describe('Input/output', function () {
});
});

it('Support output to jpg format', function (done) {
sharp(fixtures.inputJpg)
Copy link
Owner

Choose a reason for hiding this comment

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

Is it worth selecting an input image in a format other than JPEG?

@coveralls
Copy link

coveralls commented May 22, 2017

Coverage Status

Coverage increased (+0.007%) to 99.322% when pulling b641c8a on jingsam:patch-1 into 4cd3b66 on lovell:master.

@lovell lovell merged commit 4c6804e into lovell:master May 22, 2017
@lovell
Copy link
Owner

lovell commented May 22, 2017

Thank you!

@lovell lovell added this to the v0.18.0 milestone May 22, 2017
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

3 participants