Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caravaggio

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caravaggio

A blazing fast image processor service

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
31
decreased by-39.22%
Maintainers
1
Weekly downloads
 
Created
Source

caravaggio logo

Caravaggio

pipeline status coverage report

A blazing fast ⚡ image manipulation service.

Note

This is an early release of this software! This is not yet suitable for production.
The docker image is not yet production ready.
The api can change without any warning.
Feel free to contribute to make this an amazing project!

Installation

Docker

An image is provided

docker pull ramielcreations/caravaggio

Refer to the page on the docker store for its configuration

Node

npm i -g caravaggio
caravaggio

Git

git clone git@gitlab.com:ramiel/caravaggio.git
cd caravaggio
npm install
npm start

Using the service

The service is avaiable at http://localhost:8565/

and can be used sending a set of options and an image:
http://localhost:8565/rotate_90/https://image.com/pony.jpg

Options

operationDescriptionexample
resizeResize the image. Both width and height can be specified. If only one is specified the other is auto-scaled.resize_640x480
resize_640x
resize_x480
Values between 0 and 1 will be considered percentage of the image sizeresize_0.6x0.3
resize_0.5x
resize_x0.5
cropCrop the image. Coordinates or gravity can be specified
Gravity: north, northeast, east, southeast, south, southwest, west, northwest, center and centre.crop_200x200xeast Crop the resized image (200wx200h) with gravity at east
Otherwise you can specify x, y, width and heightcrop_50x60x200x200 starting from x=50 y=60 drop a subimage of 200w and 200h
qSet the quality for the resulting image (1 to 100). Default is 80.
Note: this has no effect on PNGs
q_65
q_10
rotateRotate the image of a multiple of 90° If nothing is specified it rotates depending on the exif Orientation valuerotate
rotate_90
rotate_270
flipFlip the image horizontally or verticallyflip_x
flip_y
blurAdd a blur effect to the imageblur_10
blur_0.4
progressiveReturn the image as progressive.progressive_true
progressive_false

Thank you

This project is possible thanks to

  • sharp - A js image processing library
  • micro - A fast microservice library
  • A lot of other great developers

Keywords

FAQs

Package last updated on 07 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc