node-pureimage
node-pureimage copied to clipboard
Make JPEG quality configurable
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [X] My code follows the code style of this project.
- [X] My change requires a change to the documentation.
- [X] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
Description
This change adds a parameter for making the JPEG output quality configurable. The default of 50 is too low in many cases so I thought why not directly make it configurable.
Cheers
Thank you for this PR @andypotato . Adding quality control is a good feature to have. However, with the way you've implemented this change the quality setting is required. Would it be possible to make it optional? If the developer doesn't pass in a quality setting then a default one would be supplied?
thanks!