serverless-image-proxy

Resizes images using a Lambda function (aka Serverless Thumbor)

  • 所有者: prisma-archive/serverless-image-proxy
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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!

主要指標

概覽
名稱與所有者prisma-archive/serverless-image-proxy
主編程語言TypeScript
編程語言TypeScript (語言數: 1)
平台
許可證
所有者活动
創建於2017-01-21 18:50:14
推送於2019-02-15 19:22:42
最后一次提交2018-01-03 11:41:57
發布數0
用户参与
星數103
關注者數4
派生數11
提交數62
已啟用問題?
問題數16
打開的問題數9
拉請求數16
打開的拉請求數19
關閉的拉請求數8
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?