Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drklrd/remage
Get Image with resizing options.
https://github.com/drklrd/remage
Last synced: 10 days ago
JSON representation
Get Image with resizing options.
- Host: GitHub
- URL: https://github.com/drklrd/remage
- Owner: drklrd
- Created: 2016-11-29T15:34:25.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T02:19:47.000Z (almost 8 years ago)
- Last Synced: 2024-09-24T03:48:50.179Z (about 2 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Remage
Node middleware to get image with resizing options.# Installation
npm install remage# Usage
In node controller , add a route using this middleware
app.use('/testimage',require('remage').process);In your view , attribute the src as
img(src="/testimage?width=200&height=100&url=https://nodejs.org/static/images/logos/nodejs-new-pantone-black.png")If you dont pass in the width and height options, the deafult image size will be fetched.
#Dependencies
sharp
request
image-size