@jimp/plugin-displace
Displace an image.
Displaces the image based on the provided displacement map
Usage
- @param {object} map the source Jimp instance
- @param {number} offset the maximum displacement value
- @param {function(Error, Jimp)} cb (optional) a callback for when complete
import jimp from "jimp";
async function main() {
const image = await jimp.read("test/image.png");
image.displace(map, 10);
}
main();
v0.22.2 (Mon Feb 06 2023)
:tada: This release contains work from new contributors! :tada:
Thanks for all your work!
:heart: Ollie Chick (@olliechick)
:heart: Andrey Kutejko (@andy128k)
🚀 Enhancement
@jimp/core
- Change type of mime from string to string|number to fix #990 #1182 (@olliechick)
📝 Documentation
Authors: 2