The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Remove Black Borders From An Image With ImageMagick

TODO: Pull subtitle into page object
Code
magick input.jpg -fuzz 7% -trim output.jpg

Updating an existing image

Code
magick mogrify -fuzz 7% -trim +repage image.jpg


Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Remove Black Borders From An Image With ImageMagick

Making a new image:

-- code
-- bash

magick input.jpg -fuzz 7% -trim output.jpg

-- p

Updating an existing image

-- code
-- bash

magick mogrify -fuzz 7% -trim +repage image.jpg




-- ref

- https://www.imagemagick.org/script/command-line-options.php#trim

- https://www.imagemagick.org/script/command-line-options.php#fuzz

- https://stackoverflow.com/a/55755082/102401 - The exmaple on this page
is only working once for me. If it's re-run over the same image
it turns everything white and throws an error.

- https://imagemagick.org/script/convert.php

- https://imagemagick.org/script/mogrify.php


-- blurb

-- categories
-- ImageMagick 

-- metadata
-- date: 2023-04-08 15:58:43
-- id: 2o9s2vrr
-- site: aws
-- type: post
-- status: published