It is currently Sat Jul 20, 2024 11:24 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 9:45 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
Hi, all,

I've been wrustling with changing my mind which has resulted in wanting to make a picture frame wider, but still frame the image.

I'd like to scale the outer border to a new location, leaving the inner border fixed.

Why not just recreate it (my voices ask)?

The original took a long time to create, bein' as it were a hobcobulation of WrapMap (thank you, ofnuts!) and PathBlend (thank you, RobA!).

I'll super-glue a image here. (No, wait! The upload displays "transparent" as, well, transparent! So, imagine that the frame ends with the last gray pixels, and I need it to "get bigger". I hope I'm not being too technical.)

Thank you for reading.


Attachments:
PitcherFrameToStretchToCorners.png
PitcherFrameToStretchToCorners.png [ 85.46 KiB | Viewed 3526 times ]

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 9:47 am  (#2) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
If I understand correctly, the following script should prove helpful:

http://chiselapp.com/user/saulgoode/rep ... tend-layer

Let me know if you have any questions.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 7:33 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
saulgoode wrote:
If I understand correctly, the following script should prove helpful:

http://chiselapp.com/user/saulgoode/rep ... tend-layer

Let me know if you have any questions.
I love your clever scripts!
I can't believe I've overlooked Extend to Image Size on your site before today.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 7:47 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I sure agree with ya there odin. Saul's scripts are great.

_________________
Image


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 9:55 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Saulgoode just tried your script, it's great thank you for posting :tyspin

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 10:35 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
@saulgoode
> If I understand correctly,

Perfectly.

> the following script should prove helpful:

Should be perfect, but not working for me and my v2.6. It runs through it awful fast.

So I have a square picture frame with a transparent middle and an outer transparent area between the picture frame and the image size.

I selected the inner transparent square and grew it five pixels to assure it wouldn't be scaled, then called the script.

It ran awful fast and left no apparent change. However, Edit offers to Undo Extend to Image Size. (The screengrabd result is attachd.)

(BTW for my future reference and any other needy people, the script shows up in Layer->ExtendToImageSize.)


Attachments:
File comment: Post-ExtendToImageSize
PitcherFrameToStretchToCorners_grabd.png
PitcherFrameToStretchToCorners_grabd.png [ 92.22 KiB | Viewed 3443 times ]

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."
Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Wed Feb 20, 2013 10:57 pm  (#7) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
gramp wrote:
It ran awful fast and left no apparent change. However, Edit offers to Undo Extend to Image Size. (The screengrabd result is attachd.)

(BTW for my future reference and any other needy people, the script shows up in Layer->ExtendToImageSize.)
I'm not sure but you may need to add a temporary background to the transparent part so the script has more pixels to reference.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Thu Feb 21, 2013 12:48 am  (#8) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
gramp wrote:
I selected the inner transparent square and grew it five pixels to assure it wouldn't be scaled, then called the script.

Perform "Layer->Autocrop Layer" on your frame layer before running the script.

@Odinbc, Molly, and graechan, thank you for the kind words.

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Thu Feb 21, 2013 1:34 am  (#9) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
works flawlessly but make sure you have the correct layer selected and it is has not been changed to the new image size

example of a frame below↓

from (selection is black and white, layer is black and yellow

Image

to

Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Stretch a picture frame to new corners?
PostPosted: Thu Feb 21, 2013 8:32 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Apr 20, 2011
Posts: 287
Location: Dane-ish Co., West Gonsin
Suc Cess!
@odinbc
You had the essence of it.

I suspected that I was violating the spirit of the thing by trying to run this on a simple "1-layer" .PNG file.

@saulgoode
Precisely so. I needed two layers. My original, and a larger, image layer to stretch to.

I was telling the fine script to "stretch everything outside the selection to the image border OF THE ORIGINAL IMAGE (doh!) to the image border."

It ran so fast because the distance between the edge of the unselected region was already AT the image border. (No wonder the script stared at me in amazement after I asked for it multiple times...)

(In fairness, I returned the favor--opening and staring at IT. A work of art, saulgoode, not least for the spirit which motivates you to offer such as these to such as us.)

Thank you very much, all. You know how sometimes you just can't SEE something that's right there (in the example) until someone points it out to you?

Well, that pretty much describes my day... :^)

Cheers!


Attachments:
PitcherFrameToStretchToCorners.png
PitcherFrameToStretchToCorners.png [ 166.25 KiB | Viewed 3409 times ]

_________________
--
GraMP
"Once you sit on your glasses, the rest of getting old seems obvious."
Top
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) What's the best tool to snip out corners

2

No new posts How do I stretch a selection (not scale)

4

No new posts Attachment(s) GEGL Circular Pixel Stretch.

14

No new posts Attachment(s) Transparent Frame

3

No new posts Attachment(s) glass-frame-effect.scm

23



* Login  



Powered by phpBB3 © phpBB Group