tnfe / FFCreator

A fast video processing library based on node.js (一个基于node.js的高速视频制作库)
http://tnfe.github.io/FFCreator/
MIT License
2.84k stars 405 forks source link

Image style - Add background shadow #243

Open armandolio opened 2 years ago

armandolio commented 2 years ago

Hello! I'm trying to add style to an image:

avatarImageFF.setStyle({
    dropShadow: true,
    dropShadowBlur: 4,
    dropShadowAngle: Math.PI / 6,
    dropShadowDistance: 6,
    dropShadowColor: '#000000',
});

but I receive this error: avatarImageFF.setStyle is not a function is it not possible to add style to an image?

thanks!

drawcall commented 2 years ago

Oh, the FFImage does not support the style