- Maintenance, babelify upgrade: switch to @babel/core and @babel/preset-env.
- Added bounds check for invalid output canvas size (#155).
- Maintenance: dev deps bump.
- Should return result via promise (regression), fix #139.
- Resize in multiple steps for big scales, fix #135.
- Multimath bump, should fix issue with broken WebAssembly engine in IOS 11.2.x Webkit (Safary/Chrome).
- Attempt to fix failure when WebAssembly disabled via CSP.
- Internals rewritten to use
multimath
library. - WebAssembly implementation for
unsharp mask
, as bonus.
- More constrains for
createImageBitmap()
use. Filter out browsers withoutImageBitmap.prototype.close()
method (Chrome 51 etc).
- Avoid Promise use in webworker. Should help with IE11, which suddently fixed creating of webworkers from data URI.
- IE fix.
- Fixed non working
.createImageBitmap()
resize, but disabled by default due bad quality. - Added debug messages.
- Fix wasm crash on upscale, #87.
- Add missed
.set()
fallback for ancient browsers.
- Major rewrite. New API, promise-based.
- Drop WebGL resizer.
- Add async image decode via createImageBitmap().
- Add WebAssembly resizer.
- Add createImageBitmap() resizer.
- Add .toBlob() method.
- Set default number of CPUs (workers) to 1 if
navigator.hardwareConcurrency
not supported (ancient browsers).
- Fix Safary bug (grid could appear on downscaled image).
- WEBGL shaders rework (still buggy, not for production).
- Fix tiler math: bad rounding could produce tiles out of src area, #61.
- Fix mem leak: release objectURL, used to create Web Workers.
- Deps bump (
webworkify
). Previous version had problems with IE Edge, #56.
- Deps bump. Use fresh
webworkify
with proper ObjectURL release, #55.
- Optimised previous fix.
- Fixed garbage on image edge tiles when alpha exists.
- Support
Image()
as input src. - Architecture rework: images are now splitted to tiles to restrict memory use and allow parallel processing.
- Built-in WebWorkers manager to use all available CPU cores.
- Feature flags (WW, WEBGL) are forced to
false
after resize call, if feature not supported or disabled due fatal error. unsharpRadius
range restricted to 0.5..2.0.- Experimental code for WebGL support (noisy & buggy, disabled by default).
.resizeBuffer()
is no longer recommended for use. It does not use webworkers anymore (and optiontransferable
is not used too).
- Bumped
glur
version to fix bug in unsharp mask with vertical images.
- Unsharp mask now useable.
- Fixed brightness loss due missed value rounding in convolvers.
- Fixed alpha reset for images without alpha channel (regression in 1.0.5).
- Removed alpha correction, because canvas data is not premultipled (#13). Thanks to @devongovett.
- Expose WebWorker on pica call, to allow early termination of task.
- Minor speed opts.
- Added transferable objects support.
- Fixed demo to fork over ssl too.
- ~25% speed boost (thanks to @mraleph for advice).
- Added unsharp mask implementation (very naive). Need futher work.
- Improved capabilities detection.
.WW
now shows if pica can use Web Workers or not.
- Added IE workarounds. Thanks to @noomorph.
- Enchanced API to allow pass destination buffer by reference.
- First release.