Gimp-Forum.net
how to fill middle of image by drag/zoom rest of image - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: how to fill middle of image by drag/zoom rest of image (/Thread-how-to-fill-middle-of-image-by-drag-zoom-rest-of-image)

Pages: 1 2


how to fill middle of image by drag/zoom rest of image - chuckd833 - 05-15-2022

I have an image and I cut out the middle and want to fill the transparent middle part by dragging in the remaining image from the edges of the cut out part.

Any ideas?


RE: how to fill middle of image by drag/zoom rest of image - rich2005 - 05-15-2022

There is a set of plugins that might do what you require. Resynthesizer (compiled plugin) + 'heal' python plugins

Then it depends on your version of linux and does Gimp come with python enabled ?

Before going any further, check this https://i.imgur.com/s8Wy6AV.mp4 3 different settings used. Do any get near to your requirement ?


RE: how to fill middle of image by drag/zoom rest of image - chuckd833 - 05-15-2022

Thanks. The Imgur you posted doesn't exactly get what I'm after but it's pretty close that I could use it. Here's the original image before cutting out the middle. Maybe that might change things.


RE: how to fill middle of image by drag/zoom rest of image - rich2005 - 05-15-2022

It does not really make any difference if the center is solid or transparent. Sorry, I cannot think of any quick way. I tried stroking a spiral path with a pattern brush without success. Warp tool no good either.

This is tedious but does not take long. Make an annular selection, copy and paste as a new layer. https://i.imgur.com/ohijWCr.jpg

Successive duplicate layer and scale to fit. Once you get a few done a new from visible then the duplicate layer, scale works a bit faster. Basically a pyramid of rings. https://i.imgur.com/XShnz9R.jpg


RE: how to fill middle of image by drag/zoom rest of image - Ofnuts - 05-15-2022

Two ways:

  1. "Pinch" part of Filters > Distorts > Whirl and pinch but the pinch isn't completely along radial lines
  2. Filters > Distorts > Polar coordinates
    • Apply once to unroll (To polar: off)
    • Scale the layer to cover the white part
    • Apply again to re-roll (To polar: on`)
[attachment=7912]



RE: how to fill middle of image by drag/zoom rest of image - PixLab - 05-15-2022

Take your first image (the one with a hole in the middle
Then Filters ➤ Map ➤ Recursive Transform...
First thing first check Paste below, then move the squared handle as in the screenshot below, adjust iterations to closed the hole once you have moved the 4 squared handles as you need

[attachment=7913]


RE: how to fill middle of image by drag/zoom rest of image - chuckd833 - 05-16-2022

(05-15-2022, 04:05 PM)Ofnuts Wrote: Two ways:

  1. "Pinch" part of Filters > Distorts > Whirl and pinch but the pinch isn't completely along radial lines
  2. Filters > Distorts > Polar coordinates
    • Apply once to unroll (To polar: off)
    • Scale the layer to cover the white part
    • Apply again to re-roll (To polar: on`)

Thanks. This is a great solution. I had trouble implementing it though.

When I un-check To polar box it only maps the top of the image. Was To Polar meant to be on or is there another setting I am supposed to change?


RE: how to fill middle of image by drag/zoom rest of image - Ofnuts - 05-16-2022

(05-16-2022, 07:07 PM)chuckd833 Wrote:
(05-15-2022, 04:05 PM)Ofnuts Wrote: Two ways:

  1. "Pinch" part of Filters > Distorts > Whirl and pinch but the pinch isn't completely along radial lines
  2. Filters > Distorts > Polar coordinates
    • Apply once to unroll (To polar: off)
    • Scale the layer to cover the white part
    • Apply again to re-roll (To polar: on`)

Thanks. This is a great solution. I had trouble implementing it though.

When I un-check To polar box it only maps the top of the image. Was To Polar meant to be on or is there another setting I am supposed to change?

What I get:

[attachment=7920]

What do you see? Any selection active?


RE: how to fill middle of image by drag/zoom rest of image - chuckd833 - 05-16-2022

(05-16-2022, 08:29 PM)Ofnuts Wrote:
(05-16-2022, 07:07 PM)chuckd833 Wrote:
(05-15-2022, 04:05 PM)Ofnuts Wrote: Two ways:

  1. "Pinch" part of Filters > Distorts > Whirl and pinch but the pinch isn't completely along radial lines
  2. Filters > Distorts > Polar coordinates
    • Apply once to unroll (To polar: off)
    • Scale the layer to cover the white part
    • Apply again to re-roll (To polar: on`)

Thanks. This is a great solution. I had trouble implementing it though.

When I un-check To polar box it only maps the top of the image. Was To Polar meant to be on or is there another setting I am supposed to change?

What I get:



What do you see? Any selection active?

Yep. That's exactly what I got. Thanks for posting. When I resize it only resizes that section - being the top section

Then when I run the polar coord. the 2nd time it doesn't look like yours


RE: how to fill middle of image by drag/zoom rest of image - Ofnuts - 05-16-2022

yet another way (could be the simplest) is to use a displace map. More or less like whirl pinch but with more control:

[attachment=7921]

Playing with the "shape" of the gradient (using Levels/Curves) on the map layer allows you to fine-tune the pinch behavior.