Skip to content

maclovin/khumbor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Khumbor (Thumbor url builder)

Khumbor is a new Thumbor client for Node JS

(A improved version of https://github.com/PolicyMic/thumbor)

Usage after clone or install

var Khumbor = require('khumbor');

var thumbor = new Khumbor('[key]', 'http://thumbor.localhost.dev:8888');
var img = 'http://upload.wikimedia.org/wikipedia/en/a/ab/King_of_the_Beach_(Wavves)_album_cover.jpg';

// 3 different sizes of the same image, with the same instance. 
var thumborUrl = [
	thumbor.setImagePath(img).fitIn(355, 355).halign('center').buildUrl(),
	thumbor.setImagePath(img).fitIn(250).halign('center').buildUrl(),
	thumbor.setImagePath(img).fitIn(160).filter('fill(white)').buildUrl()
];
                                           

Improvements

  • Now you can set blank values to "Resize" and "Fitin" (100x or x100).
  • I decided to create a check on the filtersCalls push. In this way, we don't need to create another Thumbor instance to use the same filters with another image url.

hail ⚕

About

A new Thumbor client for Node JS

Resources

License

Stars

0 stars

Watchers

3 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors