mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Premultiply alpha channel to avoid dark artifacts during tranformation
Add `Sharp.compare(file1, file2, callback)` function for comparing images using mean squared error (MSE). This is useful for unit tests. See: - https://github.com/jcupitt/libvips/issues/291 - http://entropymine.com/imageworsener/resizealpha/
This commit is contained in:
committed by
Lovell Fuller
parent
c792a047b1
commit
ef8db1eebf
BIN
test/fixtures/alpha-premultiply-1024x768-paper.png
vendored
Normal file
BIN
test/fixtures/alpha-premultiply-1024x768-paper.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 255 KiB |
Reference in New Issue
Block a user