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 Jimp image operations #506

Merged
merged 28 commits into from Mar 11, 2019
Merged

Add Jimp image operations #506

merged 28 commits into from Mar 11, 2019

Conversation

j433866
Copy link
Member

@j433866 j433866 commented Mar 7, 2019

As requested in #451 , this PR adds some image operations to better make use of the Jimp module.

I've added:

  • Blur image (both fast blur and gaussian blur)
  • Contain image
  • Cover image
  • Crop image (with automatic cropping option)
  • Dither image
  • Flip image
  • Image brightness / contrast
  • Image filter (greyscale or sepia)
  • Image Hue / Saturation / Lightness
  • Image opacity
  • Invert image
  • Resize image (with an option to maintain aspect ratio, so a scale image operation isn't needed)
  • Rotate image

I haven't added a print text operation, as I can't work out how to get Jimp's built in bitmap fonts to be available on the client side.

I've also added min, max and step options to the 'number' argument type to make it less likely for someone to input the wrong value.

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