• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    TypeScript
  • Created almost 8 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Resizes images using a Lambda function (aka Serverless Thumbor)

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 💚

schickling huvik kbrandwijk

Help & Community Slack Status

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

More Repositories

1

prep

Pre-renders your web app (React, Vue, Angular, ...) into static HTML based on your specified routes enabling SEO for single page applications.
JavaScript
373
star
2

graphcool-templates

📗 Collection of Graphcool Templates
JavaScript
361
star
3

react-native-fullstack-graphql

🚀 Starter projects for mobile applications based on React Native & GraphQL.
JavaScript
208
star
4

angular-fullstack-graphql

🚀 Starter projects for fullstack applications based on Angular & GraphQL.
TypeScript
89
star
5

graphql-transform-schema

Transform, filter & alias resolvers of a GraphQL schema
TypeScript
84
star
6

ios-graphql

iOS code examples with GraphQL, Apollo & more
C
78
star
7

cuid-java

Collision-resistant IDs for Java (like UUID)
Java
55
star
8

babel-plugin-react-relay

Babel plugin for Relay Classic which works out of the box with your GraphQL endpoint
JavaScript
53
star
9

freecom-tutorial

Full-stack tutorial series to build your own customer chat
JavaScript
38
star
10

chromeless-playground

TypeScript
33
star
11

graphcool-lib

A convenient tool to use in Graphcool functions to make requests against your Graphcool API
TypeScript
33
star
12

graphql-europe-2018

Website source for the GraphQL Europe 2018 conference
JavaScript
28
star
13

graphql-schema-cache

A decoupled schema delegate for usage in graphql.js resolvers
TypeScript
27
star
14

gcl

📖 Type-safe configuration format (similar to JSON/YAML) based on GraphQL with auto-completion and validation
JavaScript
22
star
15

graphcool-json-schema

JSON schema of graphcool.yml files
TypeScript
12
star
16

graphql-europe-2017

GraphQL Europe
CSS
6
star
17

graphiconf

Shared components for graphqlday.org & graphql-europe.org
JavaScript
5
star
18

scala-rust-playground

Scala
4
star
19

cuid-cli

cuid cli tool (based on ericelliott/cuid)
JavaScript
3
star
20

android-graphql

3
star
21

graphql-config-extension-graphcool

TypeScript
2
star
22

deprecated-api

Core API layer of the graph.cool backends
JavaScript
1
star
23

graphqlbin-backend

JavaScript
1
star
24

react-relay-types

Typescript definitions for Relay
1
star