Replies: 2 comments 1 reply
-
As of 2013194, the scaling function is only partially implemented. If deployed, given an uploaded image with id
The function parses the query and returns: {
"bucket": "littermap-backend-mediabucket-16qk04mwmtrb9",
"key": "/media/0364169bac17494730dfa103/600",
"query_parts": 3,
"object_id": "0364169bac17494730dfa103",
"requested_size": 600
} Further code doesn't run in this build, but it would correctly contact the media bucket and retrieve the image information. After that step, the code is currently faulty. Download the package: scale-image-experimental.zip |
Beta Was this translation helpful? Give feedback.
-
As of 07200f8, place this zip file into Package: scale-image.zip Might need to |
Beta Was this translation helpful? Give feedback.
-
While most of the lambda functions are currently implemented in pure nodejs, which can be deployed simply by providing the source code1, functions which include a native binary component must be built from source and packaged as a zip file.
The built packages are not included in the git source tree itself as they are a direct derivative of the source code.
This project currently includes an experimental partial implementation of an on-request image scaling function which is a native binary compiled from C++ source code. It runs directly on the CPU and does not require an interpreter.
The function is currently experimental and in development (and by default commented out in the serverless stack template).
Track this feature: #2
Technical considerations when building from source:
The process is described in the README and is made accessible by functions provided in the
manage
toolkit.However, all it takes to deploy this function is to include an already built zip package in:
Built packages can be posted in this discussion as attachments.
Footnotes
Setting the CodeUri parameter to refer to a local directory in the stack template will result in the deployment process creating a zip package of the source code for deployment. See: sam package ↩
Beta Was this translation helpful? Give feedback.
All reactions