DEV Community

Alberts Kresi
Alberts Kresi

Posted on

How can I remove blank part of image using javascript?

Image description

PNG image is taken from canvas.
But there is blank part.
This is the image.

How can I remove blank part of image using javascript?
If anyone knows, please help me.

Thank you.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Retry later