Make gradient from panoramics photographs

With this script is easy to create gradients that they simulate a sunset or a natural landscape. You take a photo panoramic, it selects a thin vertical strip and it rotates it in counter-clockwise direction. You read the maximum width of the image and insert it (width / 2) like number of segments in the dialog box of the plugin.

Examples of images created with the plugin

panorama image and gradient

On the left original photo, to right the gradient.

Tutorial

Author web site: xoomer.virgilio.it/lwcon/gimp/python/make-gradient.htm

AttachmentSize
make-gradient.zip1.78 KB

Comments

This script can't work !

Maybe by mistake was zipped and uploaded a wrong file

Anyway as it is now this script can't work except to register itself in a menu and display errors if used

see also http://www.gimptalk.com/forum/problem-with-python-fu-script-t45473.html

It works if you create an advanced gradient file...

What you have to do:

Open the gradient dialog and create a new gradient, name it whatever you want and save.

Then when opening the Py gradient plug-in, browse to that gradient file and select it, then set your color parameters and activate the plug-in.

Refresh your gradients dialog and presto, there will be the new gradient file.

I edited my subject line as it was misleading. The above explanation is just one method of getting it to work. Sorry for initial goof.

Ahhh

So basically the script need to overwrite the active gradient ?

And i suppose gives all those errors if the active gradient file has "read only " permission or is in a read only folder?

Compliment to have guessed its logic and to have found a workaround to use it...even without overwriting files not created for the purpose

(apparently the plugin doesn't need the file to overwrite be a gradient file, if is a image overwrite the image, and then crash for the rest of the gimp session )

anyway in my vision a script should NEVER delete or overwrite files without asking confirm

I'm trying to find that solution

You hit the nail on the head, PC. It's refusing to budge on read only folders. Wondering what the big difference between XP and Vista is on this very issue. As of now I have no clue.

should be no much difference

i believe ,in theory "read only" should prevent editing and so overwriting.

But Vista is more mean and severe on the matter, while Xp may allow more easily to overwrite "read only" files

Confusing

Wow. That seems counter-intuitive, having to create a gradient in order to create a gradient!

There are calls in the PDB to create a gradient, given a gradient name. Would that not be a more user-friendly?

-Rob A>

If I knew more about Python, I'd make the changes

Yes, I agree, but it was just "one" way it allowed me to use it. I wasn't suggesting that its how it suppose to work, just offering a method.

It's probably a simple change in syntax in Python for Windows that is blocking Vista machines from creating a file, as it throws a permissions error. I am reading up on it. It worked on my XP machine without any problems.

there are better alternative

as this script http://registry.gimp.org/node/15847 that does the same in a much more intuitive way ... and with no risks to overwrite files
(..and there is a similar script to sample a gradient along a path)

But this python script fired my curiosity because for about 18 hours nobody, including volunteers with some practice of Python scripting , was able to make it work

Make gradient

I'm a real noobie to all of this, but this plug-in really peaked my interest, BUT... I'm having trouble getting it to go. Do I have to do something to my original photograph to make it 'drawable' and therefore usable by this plug-in? Any help would be appreciated, or if you could point me in the direction of a little step by step action. Thanks and love the site.

Great idea!

As a non-artistic tech guy, this is like a shortcut to emotive color choice. Great work.

Insecure website ?

I really like to read his tutorial, but Firefox WOT always inform me "xoomer.virgilio.it/lwcon/gimp/python/make-gradient.htm" would not be secure and suggests not to visit the site due to fishing, malware, worm. How can I get the information? Thanks for an reply. "Eisenhans"

False positive

The message of Firefox is a false positive, at bottom of the page is an innocuous javascript to write link at the site. This is the code: "document.writeln(sito)"

Insecure website ?

I think may be a "false positive" ,is the side of a Italian Architect Obviously i can't be sure that the side is not hjacked , If you suspect that the side may be not safe now, the cache of WayBackMachine (http://www.archive.org/web/web.php ) may solve, allowing you to get the page as was at a date you chose.
Syndicate content