Email or username:

Password:

Forgot your password?
Eugen Rochko

Hmm... Anyone know how to remove the middle part of an image with imagemagick? Leave only the edges, just erase the pixels in the middle

No comments
Sam the Octopus

@Gargron could chain together a convert to make a transparent shape for the middle then composite it with the original image

Bernie

@Gargron You mean, with a black or transparent box in the middle? You could use ImageMagick's mogrify command to draw it:
imagemagick.org/script/command

If you want to remove a horizontal or vertical band in the middle, you could use -copy to move the bottom / rightmost rectangle next to the other one, then crop:
imagemagick.org/script/command

Virallinen Kumikäki

@Gargron This maybe helps imagemagick.org/Usage/crop/#cr

Also, maybe you could create a smaller empty image and paste it centered on the one you want to crop?

gudenau

@Gargron One way is to make a new image and copy it over to the original in the center.

Go Up