imagefy

1.0.2 • Public • Published

imagefy-nodejs

api client for node js based on axios

Wait, why an API client? Easy, because in cloud development scenarios, costs are calculated by using resources such as CPU, memory and disk.
By abstracting costly work to an external server, you save real money, but, increase workflow latency in a few milliseconds, consider this if you make multiple calls in sequence.

Features

  • Lossless and Lossy compression for jpg and png
  • Adaptive resizing with different action modes
  • Thumbnail creation
  • Watermark creation
  • QR Code creation

How to install?

npm i imagefy

Getting started

  • Firstly, you need to create a free account, go to the developer dashboard to do this
  • Then, copy your API key and paste into the code
import Imagefy from 'imagefy'

const imagefy = new Imagefy('MY_API_KEY')
const image = await imagefy.losslessCompress('/path/to/pic')

await image.save('result.jpg')

For more information

For more examples like resizing, thumbnails, watermark or qr-codes, see the official website
For documentation with methods names, return types, arguments and descriptions, see this link
You can also access the Swagger by clicking here

Package Sidebar

Install

npm i imagefy

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

33.5 kB

Total Files

4

Last publish

Collaborators

  • mazzcorp