-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for the operations exposed by the 'sharp' library. Fixes #6.
NOTE: The test doesn't work yet, but it seems to be working fine when just getFilterInfosAndTargetContentTypeFromQueryString from an external app.
- Loading branch information
1 parent
236225d
commit b624be0
Showing
3 changed files
with
143 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is pretty awesome. Does this also incidentally remove the gm requirement on resizing images?
b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could. Both modules expose
resize
with the same signature. My intention is to makesharp
the default engine once I have that test passing. Then the graphicsmagick binary would only be required for the operations that aren't supported by sharp.b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
sharp
author here, thanks for using it with yourexpress-processimage
module.Please feel free to open issues (or +1 existing issues) for any additional features you need.
I'm currently working on lovell/sharp#42 which should remove the overhead of manually installing libvips.
b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lovell Thanks for getting in touch! Really liking your library. I sent you a couple of PRs for the very minor issues I found.
Good to hear that you're working on lovell/sharp#42. That one gets my vote. It would be a great win not to have any non-npm prerequisites.
@Munter Yeah, that means we're not quite there yet wrt. resize without having to install separate libraries. It's either graphicsmagick or libvips. I guess I should make
sharp
an optional dependency until we can deliver that.b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have experience with making things optional, so that's fine.
@lovell I am very happy to hear that you are putting in time on trying to remove the non-npm dependencies. This module is used in the larger contexts of assetgraph-builder and livestyle, which both require some time investment by the user in order to install the external dependencies. Any one of these we can remove means a better user impression and higher adoption :)
b624be0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tak!