vibster / js-image-resizer Goto Github PK
View Code? Open in Web Editor NEWA quality two-pass resizing algorithm for images written in JavaScript. Pass your three or four channel (order agnostic) image framebuffer to the "resize" function of the Resize object created and your resized image will be returned. Initialize by calling "new Resize(int fromWidth, int fromHeight, int toWidth, int toHeight, bool alphaChannelPresent, bool interpolationPass, bool useWebWorker, function resizeCallback)" before using the resize function of it to initiate scaling.
Home Page: http://www.grantgalitz.org/image_resize/