Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gimp plugins folder ? locked
#8
Thank you both.

Well Rich I've just started up my ubuntu and Gimp again and miraculously your 2/3 image script is now there available and working!  I guess I not only needed to restart Gimp, but Ubuntu as well.  It's still the only one available in Gimp though, despite my few test scripts, but that's definitely a result.  All I need to do now is start scripting properly.

Ofnuts:  I'm very new to Linux, with the goal of being Microsoft and Apple Free by 2020, which is when MS stop supporting Win7.  So I don't yet understand how you would set up the two folders as you describe.  It does sound a good idea though, and I've made a note of it, so when I'm a little more proficient in Linux I'll be using your method.  There's still so much to learn.

Once again many thanks to both of you and now I need to delve into just why my scripts aren't there

Hmmm!  Not so fast sadly.

Rich I started by a simple modification to your 2/3 script, by just changing the parameters to 4/3 and all relevant entries.  Saved it alongside yours in the user plug-in folder, made sure it was executable.  And then NADA,  even after a Ubuntu restart. Weird or what?



!/usr/bin/python
# -*- coding: utf-8 -*-

from gimpfu import *

def plugin_four_thirds(timg, tdrawable):
    currentWidth = tdrawable.width
    currentHeight = tdrawable.height

    newWidth = currentWidth*3/2
    newHeight = currentHeight*3/2

    pdb.gimp_context_set_interpolation(2)
    pdb.gimp_image_scale(timg, newWidth, newHeight)
    pdb.plug_in_sharpen( timg, tdrawable, 60)
#    pdb.plug_in_wavelet_sharpen( timg, tdrawable, 2.0, 0.5, 0)

register(
        "python_fu_resize",
        "resize 4-3rds",
        "for imgur or BB",
        "*",
        "*",
        "2016",
        "<Image>/Tools/Resize 4-thirds...",
        "*",
        [],
        [],
        plugin_four_thirds)

main()


OKAY - got it It's the first register line needs to be renamed.  -  Onwards and upwards.
Reply


Messages In This Thread
Gimp plugins folder ? locked - by Alan Lacey - 08-04-2018, 05:24 AM
RE: Gimp plugins folder ? locked - by rich2005 - 08-04-2018, 07:44 AM
RE: Gimp plugins folder ? locked - by Alan Lacey - 08-04-2018, 08:05 AM
RE: Gimp plugins folder ? locked - by rich2005 - 08-04-2018, 08:23 AM
RE: Gimp plugins folder ? locked - by Alan Lacey - 08-04-2018, 08:33 AM
RE: Gimp plugins folder ? locked - by Ofnuts - 08-04-2018, 08:48 AM
RE: Gimp plugins folder ? locked - by rich2005 - 08-04-2018, 09:57 AM
RE: Gimp plugins folder ? locked - by Alan Lacey - 08-04-2018, 12:32 PM
RE: Gimp plugins folder ? locked - by rich2005 - 08-04-2018, 03:51 PM
RE: Gimp plugins folder ? locked - by Alan Lacey - 08-04-2018, 04:59 PM

Forum Jump: