This will give you perfect shadow everytime for your images.
Runn the following command to install.
npm i shadowmagic --save
import {shadowmagic} from "shadowmagic";
shadowmagic({
shadow_type: 'soft',
padding: false
});
- shadow_type - hard | soft (Defaults to soft)
- padding - boolean (Defaults to false)