//name: Hermite resize //about: Fast image resize/resample using Hermite filter with JavaScript. //author: ViliusL //forkedby: calvintwr var Hermite = { init: function(workerPath) { var copy = Object.create(this); if (!workerPath) throw new Error('Fail to provide worker\'s path when initializing.'); copy._workerPath = workerPath; copy.init = undefined; return copy; }, resize: function(obj, callback) { var self = this; var mandatory = ['source', 'width', 'height']; for(var i=0; i