How to cut the transparent part of an image with NodeJS and GraphicsMagick
I use the npm package gm to resize and crop images. How can I use this package to automatically cut the transparent part from top and bottom of an image?
Solution
In my case the trim() function does more or less what I wanted.