-
Notifications
You must be signed in to change notification settings - Fork 538
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
outputFormat option not honored #116
Comments
…on the request in Default mode
Hey @leviwilson - Thanks for providing a corresponding PR to this. I've added it to our review board and hope to have it pushed out in the next minor release. Appreciate your time and effort on this! |
We have updated our solution, and I believe your issue has been fixed. If you still see the issue with the latest version (v4.2), please feel free to reopen the issue. You can refer to the recent changes here |
@georgebearden @beomseoklee - I am using the latest version and I still see the issue. |
@adrienne Can you provide how you are using so that I can reproduce? |
Here's an example of something that doesn't work. I get a webp image regardless of
|
Currently, there's a bug related to webp, and you can see how to fix at #200. Meanwhile, can you try the below one? var obj = JSON.stringify({
"bucket": "s3-media",
"key": "images/products/revised/PRODUCT_1.png",
"edits": {
"toFormat": "png",
"resize": {
"width": 1170,
"height": 600,
"fit": "contain",
"background": {
"r": 255,
"g": 255,
"b": 255,
"alpha": 1
}
},
"flatten": {
"background": {
"r": 255,
"g": 255,
"b": 255,
"alpha": null
}
}
}
});
console.log(btoa(obj)); |
@beomseoklee - i had to switch to using your above code (with |
@adrienne Can you check 2 things?
|
In
image-handler.js
there is an option for setting theoutputFormat
of the image:However, the manner in which the
image-request.js
feeds thatrequest
object into there doesn't actually pass that through from the actual request:Are we missing something or are we unable to tell the serverless-image-handler what the output format of the file should be?
The context is we have TIFF images and need them to be converted (see #45 for more details).
The text was updated successfully, but these errors were encountered: