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
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
@Gargron You mean, with a black or transparent box in the middle? You could use ImageMagick's mogrify command to draw it: 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: @Gargron This maybe helps https://www.imagemagick.org/Usage/crop/#crop_tile_centered Also, maybe you could create a smaller empty image and paste it centered on the one you want to crop? |
@Gargron could chain together a convert to make a transparent shape for the middle then composite it with the original image