Hi,
I'm new to ImageMagick, I'm usign this (actually RMagick) to generate thumbnails.
I can do that very easily but I would like to trim black borders (letterbox) if present in the source jpg.
Is there a function for this, or a way to do that?
I could access pixel by pixel and understand where to crop, but I don't know how to do that.
Thanks in advance
bye
crop black border
Re: crop black border
I do not know about Rmagick but -trim should do it.
http://www.imagemagick.org/script/comma ... s.php#trim
http://www.imagemagick.org/script/comma ... s.php#trim
Re: crop black border
Thanks, I'll try that.
What I don't know is what would happen if I have a black image with just a writing in the center.
What I don't know is what would happen if I have a black image with just a writing in the center.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: crop black border
it will crop the image so the text is all touching the borders of the resulting image.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/