If I pass a simple png like the below, the trim function seems to trim far too much
This is before:

but this is after:

sharp(file)
.trim()
.toFile(`./toUpload/${final}.png`)
It's worth noting that I have had success with other images, but it doesn't seem to be consistent
If I pass a simple png like the below, the trim function seems to trim far too much
This is before:

but this is after:

It's worth noting that I have had success with other images, but it doesn't seem to be consistent