A 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, funct