Sign up now! · Forgot password?
RSS/Atom feed Twitter

Script- FU registering

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Script- FU registering Juliet Jennifer Mari R 01 Jun 20:54
  Script- FU registering Joel 01 Jun 22:50
Juliet Jennifer Mari R
2002-06-01 20:54:53 UTC (over 19 years ago)

Script- FU registering

As I have already posted in yesterdays' mailboard, there is some problem with registering scripts in the script- fu database. 1.) Prompting the scripts' name as commandline in the script- fu console does not create any impact, although the scripts are stored in the proper scripts directory of the actual gimp version. 2.) When Browsing the disk for the scripts (in the conso9le window too) the distinct scripts folder cannot be found nor accessed. 3.) Furthermore the scripts contain automatic registering methods for registering two methods per script in the database and make them allocateable in the pop- up menu. The automated registering looks like this:

register "brushed_metal", "Create a brushed metal surface effect", "Use...",
"...",
"/Filters/Render/BrushedMaterial", [ distinct defined parameters ],
\&perl_fu_brushed_metal;

How-o-ever, the scripts cannot be accessed through commands neither in the popup- menu nor in the main menu. How else can I access and call the two methods of the script? :( Juliet

On Thu, 30 May 2002, gimp-user-request@lists.xcf.berkeley.edu wrote:

Sender: gimp-user-admin@lists.xcf.berkeley.edu To: gimp-user@lists.xcf.berkeley.edu Delivered-To: icqmail.com%julietjmarie@icqmail.com Received: (cpmta 6749 invoked from network); 30 May 2002 12:01:04 -0700 Received: from 128.32.247.242 (HELO lists.XCF.Berkeley.EDU) by smtp.c012.snv.cp.net (209.228.35.208) with SMTP; 30 May 2002 12:01:04 -0700 Received: from lists.XCF.Berkeley.EDU (lists.XCF.Berkeley.EDU [127.0.0.1]) by lists.XCF.Berkeley.EDU (Postfix) with ESMTP id 4828F1F0D7; Thu, 30 May 2002 12:01:06 -0700 (PDT) Content-Length: 3789
Content-Type: text/plain
List-Archive:
List-Subscribe: ,

X-Received: 30 May 2002 19:01:04 GMT Errors-To: gimp-user-admin@lists.xcf.berkeley.edu Precedence: bulk
List-Unsubscribe: ,

List-Post: Subject: Gimp-user digest, Vol 1 #369 - 3 msgs List-Help:
From: gimp-user-request@lists.xcf.berkeley.edu List-Id:
X-Mailman-Version: 2.0.8
X-Beenthere: gimp-user@lists.xcf.berkeley.edu Return-Path:
Mime-Version: 1.0
Reply-To: gimp-user@lists.xcf.berkeley.edu Date: Thu, 30 May 2002 12:01:06 -0700 (PDT) X-Mailer: Mailman v2.0.8
Message-Id:

Send Gimp-user mailing list submissions to gimp-user@lists.xcf.berkeley.edu

To subscribe or unsubscribe via the World Wide Web, visit http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user or, via email, send a message with subject or body 'help' to gimp-user-request@lists.xcf.berkeley.edu

You can reach the person managing the list at gimp-user-admin@lists.xcf.berkeley.edu

When replying, please edit your Subject line so it is more specific than "Re: Contents of Gimp-user digest..."

Today's Topics:

1. Losing precision (John Culleton) 2. Re: Losing precision (Roland Roberts) 3. Re: Losing precision (Jon Winters)

--__--__--

Message: 1 From: John Culleton
To: gimp-user@scam.xcf.berkeley.edu
Date: Thu, 30 May 2002 12:02:18 -0400 Subject: [Gimp-user] Losing precision

I have a JPEG that was scanned at say 300dpi. I reduce it in size in Gimp= =2E Now=20
the dpi shoots up in proportion. I want to use the reduced image on a web= =20
page where anything over 75dpi is overkill. I know I can scale back the=20 precision when I save the file but what is the relationship if any betwee= n=20
the percentages shown on the save dialogue and the dpi of the saved image= ?=20
--=20
John Culleton
Able Indexers and Typesetters=20
http://wexfordpress.com

__________________________________________________ D O T E A S Y - "Join the web hosting revolution!" http://www.doteasy.com

--__--__--

Message: 2 To: gimp-user@scam.xcf.berkeley.edu
Subject: Re: [Gimp-user] Losing precision From: Roland Roberts
Date: 30 May 2002 13:30:24 -0400

"John" == John Culleton writes:

John> I have a JPEG that was scanned at say 300dpi. I reduce it in John> size in Gimp. Now the dpi shoots up in proportion. I want to John> use the reduced image on a web page where anything over John> 75dpi is overkill. I know I can scale back the precision John> when I save the file but what is the relationship if any John> between the percentages shown on the save dialogue and the John> dpi of the saved image?

If you are putting it on the web, ignore DPI. You don't care about DPI, you care about dimensions. DPI will have *no* effect on what you see for a web image.

roland

Joel
2002-06-01 22:50:49 UTC (over 19 years ago)

Script- FU registering

Ahhhhhhhh! I see the problem. (I think)

Does this sound familiar? You are writing your own script based on the Gimp's glowing_steel script. You made the changes you wanted and asked the Gimp to show your new script (BrushedMaterial) in the /Filters/Render/ menu. But it's not showing up.

Assuming that's the case, I think I have the answer. There are two things you'll need to do:

First, you are currently trying to register your new script with the same name as an existing script. When gimp sees two scripts with the same name, it tosses out the second one, throwing up a "Gimp-WARNING **: removing duplicate PDB procedure ." So, in your script, change:

register "brushed_metal" to: register "BrushedMaterial"

Second, Gimp keeps a cache of every plug-in that it has seen. When it gets two scripts with the same name, it might cache erroneous information. The best way to solve this is to force Gimp to re-generate the cache file. To do this, just delete the cache:

rm ~/.gimp-1.2/pluginrc

The next time you load the Gimp, it'll rebuild its cache file (so it'll be a bit slower to start up), and your new script should appear in the menu.

--Joel

As I have already posted in yesterdays' mailboard, there is some problem with registering scripts in the script- fu database. 1.) Prompting the scripts' name as commandline in the script- fu console does not create any impact, although the scripts are stored in the proper scripts directory of the actual gimp version. 2.) When Browsing the disk for the scripts (in the conso9le window too) the distinct scripts folder cannot be found nor accessed. 3.) Furthermore the scripts contain automatic registering methods for registering two methods per script in the database and make them allocateable in the pop- up menu. The automated registering looks like this:

register "brushed_metal", "Create a brushed metal surface effect", "Use...",
"...",
"/Filters/Render/BrushedMaterial", [ distinct defined parameters ],
\&perl_fu_brushed_metal;

How-o-ever, the scripts cannot be accessed through commands neither in the popup- menu nor in the main menu. How else can I access and call the two methods of the script?