How can I crop an image from the inside?
Cropping an image from the outside is easy in Gimp: Select a rectangular part of the image, Image > Crop to Selection.
Is there an comparably easy way to crop out something? For example, when having this image:
When I want to "crop out" the unused area in the middle, how can I do that?
The expected result should be like this of course (without the black lines at the sides):
3 Answers
As others find alternatives, it does seem like this is not the best way to do it at all. Both Photoshop & Gimp it would appear have tools that can at least go part way towards this.
There's no easy way in any app I know of, but see the other answer for a quite specific 'image reducer'.
Cut one section, paste to new layer, move to desired location, crop the result [merge/flatten if appropriate].
3For the image in the post above for example, in Gimp 2.10 I used "Image > Zealous Crop" which resulted in this image.
Although not sure on the results with a more detailed image or complex background.
2Let me introduce you to the Liquid Rescale plugin. It magically knows which rows/columns should be removed. It's not perfect, but the results are sometimes impressive nevertheless.
Here's your image liquid rescaled. Keep in mind that the only parameters were the target dimensions.
This photo resized to widescreen. Again, the algorithm decides what to remove on its own, I've only changed the image height:
Now the coolest part: the same photo, but with the dog automatically removed by Liquid Rescale. I just had to paint a "feature discard" mask over the dog. The algorithm decided what pixels to put in its place.
This is what the feature discard mask looked like:
3