Gimp-Forum.net
How to stretch the edge of a picture. - 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 stretch the edge of a picture. (/Thread-How-to-stretch-the-edge-of-a-picture)



How to stretch the edge of a picture. - enginestar - 04-21-2018

Say I crop a picture.
On the left I have an edge that is 5 pixels - after my object.
I want to have a border around my object be 20 pixels say.

How can I stretch the edge and make it 20 pixels?
I used to do this in Photoshop.

As an example see the image below
[Image: HUstPk.jpg]

Say I want to stretch the left hand side.
Ignore the shadows! This is just an image I took off the internet to help ask my question!

Thanks.


RE: How to stretch the edge of a picture. - Blighty - 04-21-2018

1. Image>Canvas Size and increase size by 15 pixels
https://imgur.com/a/kVPoTOK

2. Right click on layer and Layer to Image Size

3. Make a selection on the left edge of the image
https://imgur.com/a/EyrqtUr

4. Use the Scale Tool to stretch the selection to the left.

5. The scale tool creates a new Floating Selection in the layers dialogue
https://imgur.com/a/smqWgWO

6. Right click the floating selection and select To New Layer

7. (If necessary - use the Move Tool to move the new layer 1 pixel to prevent a gap between the two layers)

8. (If necessary - use Layer Masks to blend the two layers)


RE: How to stretch the edge of a picture. - rich2005 - 04-21-2018

No info on your OS but another way is seam-carving using a Gimp plugin liguid-rescale

see: http://liquidrescale.wikidot.com/

briefly: Paint in a 'keep' mask. Set the new width. Apply and hope it comes out the way you want.

Looks like: screenshot https://i.imgur.com/YJQv9wX.jpg

gives

[Image: b1qYEnk.jpg]


RE: How to stretch the edge of a picture. - Ofnuts - 04-21-2018

Also, with the resynthesize plugin:

- Image>Canvas size, add width and drag the image to the right
- Layer>Layer to image size
- Filters>Enhance>Heal transparency, select appropriate sampling width (more or less the current margin) and tick Inwards towards center 

[attachment=1644]



RE: How to stretch the edge of a picture. - enginestar - 04-22-2018

u guys are awesome.
trying out all solutions given above now.
THANKS

+ i will add in signature what my OS is