@zujo/thumbnail-generator
thumbnail all the things
Last updated a year ago by immynk .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @zujo/thumbnail-generator 
SYNC missed versions from official npm registry.

npm install @zujo/thumbnail-generator

thumbnail all the things

creates a queue of images and converts them asynchronously into thumbnails

Features

  • Resize Image
  • Scale Resize
  • crop image
  • generate multiple resolution of image

Command - Lines And Usage

npm install @zujo/thumbnail-generator

API:collision:

const { ScaleThumb,generateThumb,Resize,cropthumbCoor,generateThumbwithsize} = require("@zujo/thumbnail-generator");

Similar Requirement for the all functions

const  filepath = "./test.jpg"
const  jpgpath = path.join(__dirname, './test');
const  fileName = String;

Usage

generateThumb(source, destination  path, imagefileType)
generateThumb(
filepath,
`${jpgpath}/${fileName}`,
`${'.png'}`
)
generateThumbwithsize(source, destination  path, sizes,type)
generateThumbwithsize(
filepath,
`${jpgpath}/${fileName}`,
500,`${'.png'}`
)
ScaleThumb(source, destination  path, type,current_image_width,current_image_height,ratio_with_floating_point)
ScaleThumb(
filepath,
`${jpgpath}/${fileName}`,
`${'.png'}`,
500,500,0.2)
cropthumbCoor(source,destination  path,type,top,left,width,height)
cropthumbCoor(filepath,
`${jpgpath}/${fileName}`,
`${'.png'}`,
20,20,200,200)
Resize(source,destination  path,type,height,width)
Resize(
filepath,
`${jpgpath}/${fileName}`,
`${'.png'}`,
500,500)

installation

npm install @zujo/thumbnail-generator 

Authors and Acknowledgment

Mayank Pandav, Arjun Kava

Thanks And Credits

Akhil Ramani, Chintan Rajpara

Organization

Copyright 2019 Made with :heartbeat: By ZUJO

Current Tags

  • 0.0.8-alpha                                ...           latest (a year ago)

8 Versions

  • 0.0.8-alpha                                ...           a year ago
  • 0.0.7-alpha                                ...           a year ago
  • 0.0.6-alpha                                ...           a year ago
  • 0.0.5-alpha                                ...           a year ago
  • 0.0.4-alpha                                ...           a year ago
  • 0.0.3-alpha                                ...           a year ago
  • 0.0.2-alpha                                ...           a year ago
  • 0.0.1-alpha                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (8)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |