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
Feature Request - Add support of Image operation for sharp adapter #70
Comments
good stuff; want! |
Not sure if it's possible/necessary to chain loaders for this. How about something like {
loader: 'responsive-loader',
options: {
adapter: require('responsive-loader/sharp'),
operations: [["rotate", 90], "extract"]
}
}
// Or even better?
{
loader: 'responsive-loader',
options: {
adapter: require('responsive-loader/sharp'),
operations: img => img.rotate(90).extract()
}
} |
That do not work in my case, I need to be able to configure it inline: For information, I think you are right, I tried to chain it properly but it did not work, I will retry it asap and open an according PR if it works. |
@Ngob: Does this loader with sharp support cropping currently? |
@strarsis not as it is. I modified code to allow cropping, but it work only with inline queries and you can not crop and resize the same image. I can share the code if you like. |
Hello,
Sharp allowing the possibility of extract an image (a crop) using http://sharp.pixelplumbing.com/en/stable/api-operation/#extract. Does it make sense to add it to this package?
With this, it would be nice to be able to chain images transformation, with something like:
this way, we can resize then extract the image (looks like another feature request).
The text was updated successfully, but these errors were encountered: