serverless-image-proxy

Resizes images using a Lambda function (aka Serverless Thumbor)

  • Owner: prisma-archive/serverless-image-proxy
  • Platform:
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

serverless-image-proxy Build Status Greenkeeper badge

Resizes images using a Lambda function (aka Serverless Thumbor)

Note: For this to work in a browser you have to add "/" to binary Media Types in API Gateway console.

Notes

  • Images are cropped before they are resized
  • Cropping starts from left-top corner

Syntax

URL: DOMAIN / VERSION / PROJECT_ID / FILE_SECRET / [ CROP / ] RESIZE [ / NAME ]

Resize

Format: [ X ] x [ Y ]

  • 500x300: Fit into 500px x 300px rectangle
  • 500x300!: Forced resize
  • 500x: Resize to 500px width maintaining aspect ratio
  • x300: Resize to 300px height maintaining aspect ratio

Crop

Format: X x Y : WIDTH x HEIGHT

  • 0x0:400x400: Crops the image taking the first 400x400 square

Name

Name of image to improve indexing of images with search engines.

Supported extensions:

  • png
  • jpg
  • jpeg
  • svg
  • gif
  • bmp
  • webp

Development

Docker required to pre-build native NPM modules (sharp).

Install

npm install --ignore-scripts
npm run prepare
serverless deploy

Contributors

A big thank you to all contributors and supporters of this repository ?

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!

Main metrics

Overview
Name With Ownerprisma-archive/serverless-image-proxy
Primary LanguageTypeScript
Program languageTypeScript (Language Count: 1)
Platform
License:
所有者活动
Created At2017-01-21 18:50:14
Pushed At2019-02-15 19:22:42
Last Commit At2018-01-03 11:41:57
Release Count0
用户参与
Stargazers Count103
Watchers Count4
Fork Count11
Commits Count62
Has Issues Enabled
Issues Count16
Issue Open Count9
Pull Requests Count16
Pull Requests Open Count19
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private