Sign up now! · Forgot password?
gimpusers.com RSS feed
58 @ identi.ca
819 @ Twitter

Gimp update and script-fu doesn't work

ForumsFor GIMP users ► Gimp update and script-fu doesn't work

Sent: 2008-12-09 15:39:38 UTC (over 3 years ago)

From: Adam Tkocz

Gimp update, script-fu and other problem

Hello,

I am Gimp fan. Actually - I was. Till last weekend. I decide to
reinstall my WinXP system. Before reinstall I used GIMP 2.2.10+GTK.
But why should I not choose at the moment newst version of GIMP?

Download GIMP 2.6.3 (no GTK needed) and... disaster.
1) Open existing jpg image. Image is hidden behind current window,
lot of clicking to show image. Unbelievable...
2) I make some corrections to colour, geometry, croping. I think
they change layout off buttons in some dialogs - before button "OK"
was always in right/down corner, "Cancel" was next... like here:
http://docs.gimp.org/2.6/pl/gimp-tool-levels.html. OK, lets say I
should read button description before hit.
3) I'm ready to finish and save a job. Apply my Script-Fu
(flatten image, resolution, sharpen) and... My script doesnt work!

That's enough for me. Download Gimp 2.2.10 + GTK, uninstal 2.6.3,
instal 2.2.10. I feel good now - windows, buttons, behaviour seems
OK. Open jpg, make correction, run script-fu (done!!!!), now just
save and... crash... once it is no problem. Try again. I do nothing,
just try to save and close image. No, it doesn't work. Gimp crashes
again.

OK. Back to 2.6.3. I have to do my job. Crying, but working. 2 weeks
ago it took me 30 minutes to tune 20-30 images. I do it every day.
Now it takes me more than one hour and I get headache every day.

Any ideas?

I'm not power user. Just using Gimp for 5 years. 2 or 3 years before
I create my first and only Script-Fu. The team (my laptop, system,
gimp, script-fu and me) was working perfect. But not today. Help me,
please :)

Adam

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-09 17:35:37 UTC (over 3 years ago)

From: John Coppens

Gimp update, script-fu and other problem

On Tue, 09 Dec 2008 15:39:38 +0100
Adam Tkocz wrote:

> 1) Open existing jpg image. Image is hidden behind current window,
> lot of clicking to show image. Unbelievable...

Try to go to Edit | Preferences (not File | Preferences - somewhat
confusing) and change Window Manager Hints to 'normal window'. But I do
believe there is an issue with the windows under Windows.

> 2) I make some corrections to colour, geometry, croping. I think
> they change layout off buttons in some dialogs - before button "OK"
> was always in right/down corner, "Cancel" was next... like here:
> http://docs.gimp.org/2.6/pl/gimp-tool-levels.html. OK, lets say I
> should read button description before hit.

No help here. I didn't feel any difference...

> 3) I'm ready to finish and save a job. Apply my Script-Fu
> (flatten image, resolution, sharpen) and... My script doesnt work!

There was a larger change in the way Sript-Fu works between 2.2.x and
2.4.x. I had to rework my scripts too - the changes aren't too
complicated to add. Check this:

http://gimp.org/docs/script-fu-update.html

BTW, going back to (or staying with) and older version is hardly a threat.
You're just missing out on all the great new things the GIMP people work
hard to add.

John

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-09 19:25:12 UTC (over 3 years ago)

From: Chris Mohler

Gimp update, script-fu and other problem

On Wed, Dec 10, 2008 at 8:39 AM, Adam Tkocz wrote:
[...]>
> Download GIMP 2.6.3 (no GTK needed) and... disaster.
> 1) Open existing jpg image. Image is hidden behind current window,
> lot of clicking to show image. Unbelievable...

As mentioned before, change the preferences - or just press "tab" to
hide the dialogs when you're not using them.

> 2) I make some corrections to colour, geometry, croping. I think
> they change layout off buttons in some dialogs - before button "OK"
> was always in right/down corner, "Cancel" was next... like here:
> http://docs.gimp.org/2.6/pl/gimp-tool-levels.html. OK, lets say I
> should read button description before hit.

I did not notice this either - but "Alt-O" should confirm most dialogs.

> 3) I'm ready to finish and save a job. Apply my Script-Fu
> (flatten image, resolution, sharpen) and... My script doesnt work!

Yes - there have been changes - if you post your script-fu here,
someone might help you update it.

Chris

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-09 20:16:23 UTC (over 3 years ago)

From: Adam@storm

Gimp update, script-fu and other problem

John Coppens said the following on 2008-12-09 17:35:
> On Tue, 09 Dec 2008 15:39:38 +0100
> Adam Tkocz wrote:
>
>> 1) Open existing jpg image. Image is hidden behind current window,
>> lot of clicking to show image. Unbelievable...

> Try to go to Edit | Preferences (not File | Preferences - somewhat
> confusing) and change Window Manager Hints to 'normal window'. But I do
> believe there is an issue with the windows under Windows.

Well, thx John. I've just tried some "combination" and the problem
seems to be solved. I will be sure tomorrow at the office - at home
I try it on images on local HD. The problem appeared at the office,
where I usually work on images saved to linux server volumes.
But now I have new hope and some "how to" directions :)

>> 2) I make some corrections to colour, geometry, croping. I think
>> they change layout off buttons in some dialogs - before button "OK"
>> was always in right/down corner, "Cancel" was next... like here:
>> http://docs.gimp.org/2.6/pl/gimp-tool-levels.html. OK, lets say I
>> should read button description before hit.
>
> No help here. I didn't feel any difference...

Well, there is no chance to help. I just have to change or modify
some fixed behaviours. It will be easier to understand if U will
know, that last 5 years I made about 30'000 pictures and maybe
100'000 simple operations. I REMEMBER that "Ok" button is in
Right/Down Corner. In G 2.6.3 in this corner is "Cancel" button.
So... after applying levels, curves, resolution or so... I just
confirm operation by moving pointer over the right/down corner
button, click and... "play it again, Sam" :D

But trully it is not big matter. After next 5 years I will move
mouse to another button, and they will back to "old config" ;)

>> 3) I'm ready to finish and save a job. Apply my Script-Fu
>> (flatten image, resolution, sharpen) and... My script doesnt work!
>
> There was a larger change in the way Sript-Fu works between 2.2.x and
> 2.4.x. I had to rework my scripts too - the changes aren't too
> complicated to add. Check this:
>
> http://gimp.org/docs/script-fu-update.html

Yeah, this is proper info. Thanks. I need few days to refresh my
knowledge about script-fu, but I see that there is important
difference in using "let" operator and generally they change
variables settings. I need one day and fresh brain and maybe I will
manage with it. Today is late here and... I'm tired a bit.

> BTW, going back to (or staying with) and older version is hardly a threat.
> You're just missing out on all the great new things the GIMP people work
> hard to add.

U R Right. But old guys (me?) sometimes are not quick and clever
enought to follow all changes.

Anyway. Thanks for really BIG help.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-09 20:30:57 UTC (over 3 years ago)

From: Adam@storm

Gimp update, script-fu and other problem

Chris Mohler said the following on 2008-12-09 19:25:
> On Wed, Dec 10, 2008 at 8:39 AM, Adam Tkocz wrote:
> [...]>
>> Download GIMP 2.6.3 (no GTK needed) and... disaster.
>> 1) Open existing jpg image. Image is hidden behind current window,
>> lot of clicking to show image. Unbelievable...
>
> As mentioned before, change the preferences - or just press "tab" to
> hide the dialogs when you're not using them.

Yes, I applied John's advice and it seems OK. But it is not dialog
matter, but Windows Explorer window (file list in folder). Maybe
tomorrow I will be able to re-call the problem and make screenshot
wich will explain it better than my poor english.

>> 2) I make some corrections to colour, geometry, croping. I think
>> they change layout off buttons in some dialogs - before button "OK"
>> was always in right/down corner, "Cancel" was next... like here:
>> http://docs.gimp.org/2.6/pl/gimp-tool-levels.html. OK, lets say I
>> should read button description before hit.
>
> I did not notice this either - but "Alt-O" should confirm most dialogs.

Alt-0 (or sometimes Enter) when U use keybord to confirm. In some
cases it is faster to use keybord, in some cases is faster to use
mouse. But it is not big matter. I just wonder why? Why somebody
change the buttons layout. Leaving buttons untouched costs nothing,
so why did they put so big time to change the laayout?

>> 3) I'm ready to finish and save a job. Apply my Script-Fu
>> (flatten image, resolution, sharpen) and... My script doesnt work!
>
> Yes - there have been changes - if you post your script-fu here,
> someone might help you update it.

OK, thanks. Tomorrow I will check update info, than I post my
script-fu here and ask some question.

A.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-09 21:32:21 UTC (over 3 years ago)

From: Sven Neumann

Gimp update, script-fu and other problem

Hi,

On Tue, 2008-12-09 at 20:16 +0100, Adam@storm wrote:

> Well, there is no chance to help. I just have to change or modify
> some fixed behaviours. It will be easier to understand if U will
> know, that last 5 years I made about 30'000 pictures and maybe
> 100'000 simple operations. I REMEMBER that "Ok" button is in
> Right/Down Corner.

The button order follows the system preferences (since GIMP 2.4). The UI
designers of your operating system have chosen to place the confirmative
button leftmost. GIMP, or rather GTK+, follows this preference and
places dialog buttons according to the rules that all applications on
your system should obey. You could of course change this by setting the
"gtk-alternative-button-order" property in your gtkrc.

> U R Right. But old guys (me?) sometimes are not quick and clever
> enought to follow all changes.

That's why we have release notes with every major release:

http://gimp.org/release-notes/gimp-2.4.html
http://gimp.org/release-notes/gimp-2.6.html

Sven

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-12 11:19:09 UTC (over 3 years ago)

From: Adam@storm

Gimp update and script-fu doesn't work

Chris Mohler said the following on 2008-12-09 19:25:

> Yes - there have been changes - if you post your script-fu here,
> someone might help you update it.
>
Okay, pasted script lost text formating in e-mail.
So I put it here:
http://ak-studio.com.pl/adam/gimp/FinishJob.scm
and here:
http://ak-studio.com.pl/adam/gimp/FinishJob.txt

I need some help. First off all - how to modify this script to run
properly in new enviroment (error msg: unbound variable...). I
suppose the probblem is in set! operator in few lines on beginning
of script.
When script was working (2.2.10) it saved me lot of time

Another question is "How to save opened jpg image" at the end of
script. I've tried to do it by myself, but after one month I gived
up. Only thing I can do is read file name. Nothing more

My everyday work is:
1) double click on existing .jpg file
2) make some retouching on picture, fix colors, geometry etc
3) when image is ready I would like script to do:
a) scale image to 400 pxl height (perfect for target www)
b) sharpen image (factor 40 - is great for my cameras)
c) flatten image (than is ready for save .jpg)
d) save file, exactly save, not save As - raw copy is still saved
on camera flash card
e) close image

If somebody can help me I will be grateful to

TIA

--
Adam
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-12 16:19:50 UTC (over 3 years ago)

From: saulgoode@flashingtwelve.brickfilms.com

Gimp update and script-fu doesn't work

Quoting "Adam@storm" :

> Chris Mohler said the following on 2008-12-09 19:25:
>
> > Yes - there have been changes - if you post your script-fu here,
> > someone might help you update it.
> >
> Okay, pasted script lost text formating in e-mail.
> So I put it here:
> http://ak-studio.com.pl/adam/gimp/FinishJob.scm
> and here:
> http://ak-studio.com.pl/adam/gimp/FinishJob.txt
>
> I need some help. First off all - how to modify this script to run
> properly in new enviroment (error msg: unbound variable...). I
> suppose the probblem is in set! operator in few lines on beginning
> of script.

Updated script:
http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/Reworked-FinishJob.scm

> Another question is "How to save opened jpg image" at the end of
> script. I've tried to do it by myself, but after one month I gived
> up. Only thing I can do is read file name. Nothing more

I believe the most significant problem you were experiencing is that
the action of flattening your image results in a newly created layer
and all the original layers disappear; i.e., the original "Drawable"
value that you were using in your 'file-jpeg-save' call was no longer
valid after the script flattened the image.

> My everyday work is:
> 1) double click on existing .jpg file
> 2) make some retouching on picture, fix colors, geometry etc
> 3) when image is ready I would like script to do:
> a) scale image to 400 pxl height (perfect for target www)
> b) sharpen image (factor 40 - is great for my cameras)
> c) flatten image (than is ready for save .jpg)
> d) save file, exactly save, not save As - raw copy is still saved
> on camera flash card
> e) close image

It is not possible to perform step 3e) -- scripts can only close
images which they themselves open or create. Images that are opened or
created from the menus must be closed from the menus.

The updated script will result in the image being marked as saved, so
that closing the image does not generate a warning about losing
changes. I am not entirely comfortable about doing this because not
ALL image changes are saved with the JPEG format and closing your
image after running the script will result in the loss of some
information -- e.g., any channels or paths you've created, as well as
the degradation of the picture owing to JPEG's lossy compression.
Nonetheless, given your work flow, it seems appropriate as long as you
remain aware of this limitation. If you should prefer to still be
warned about losing data then remove the line which calls
'gimp-image-clean-all'.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message

Sent: 2008-12-12 18:47:28 UTC (over 3 years ago)

From: Adam@storm

Gimp update and script-fu doesn't work

saulgoode@flashingtwelve.brickfilms.com said the following on
2008-12-12 16:19:

>
> Updated script:
> http://flashingtwelve.brickfilms.com/GIMP/Scripts/Temp/Reworked-FinishJob.scm

Great!!! It works perfect 4 me! Big thanks :)

> I believe the most significant problem you were experiencing is that
> the action of flattening your image results in a newly created layer
> and all the original layers disappear; i.e., the original "Drawable"
> value that you were using in your 'file-jpeg-save' call was no longer
> valid after the script flattened the image.

It is dificult to say.. I have seen syntax error, or... no action,
but I believe U R right.

> It is not possible to perform step 3e) -- scripts can only close
> images which they themselves open or create. Images that are opened or
> created from the menus must be closed from the menus.

Lets say if it is impossible than I have to find a benefit...
think... think... well, there is benefit:
I have "undo" working and if something is wrong with a picture (i.e
to heavy sharpen) I can go step back and make all things manually.
Kind of final check out. In this point it will be better when
displayed image is viewed 100% (1:1). It is one command... but I do
not remember...

> The updated script will result in the image being marked as saved, so
> that closing the image does not generate a warning about losing
> changes. I am not entirely comfortable about doing this because not
> ALL image changes are saved with the JPEG format and closing your
> image after running the script will result in the loss of some
> information -- e.g., any channels or paths you've created, as well as
> the degradation of the picture owing to JPEG's lossy compression.
> Nonetheless, given your work flow, it seems appropriate as long as you
> remain aware of this limitation. If you should prefer to still be
> warned about losing data then remove the line which calls
> 'gimp-image-clean-all'.

Your notes are very important, thank U. But I know the limitation of
.jpg files. This way I make just for one puprpose: network preview
of real estate, for example:
http://www.burg.com.pl/mieszkanie/sprzedaz/59192/

For printed matters I can work one or two (or more) hours with each
image and no script is necessary :)

One more time - thanks.

Adam.

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

» Reply to this message