08-04-2018, 12:32 PM
(This post was last modified: 08-04-2018, 01:56 PM by Alan Lacey.)
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.
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.