ImageMagick – Remove black borders

It is as simple as:

magick mogrify -fuzz 4% -define trim:percent-background=0% -trim +repage -format jpg img.jpg

Source: Stack Overflow

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.