Re: [Gimp-developer] improving the tutorials - let's rock!
On Mon, 22 Sep 2008 03:30:03 +0200, Liam R E Quin [EMAIL PROTECTED] wrote: How about a Made for GIMP 2.6 icon to go on tutorials that have been checked? (or Made for 2.8) I hope one result would be that it would be easier to check the tutorials again next time round... Liam [Ankh] -- I think some indication of which version of gimp any particular guide is written for is nearly essential at this stage in view of the major rearrangment and internal changes. Older doc should probably have something added in a conspicuous place indicating either what version it related to (if that can be determined precisely) or a warning that it may be out of date and some features may have changed/moved/disappeared. Good idea, Liam. /gg ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] improving the tutorials - let's rock!
Von: Liam R E Quin [EMAIL PROTECTED] There's a lot of bad tutorials out there. Some of them are on the gimp.org site, some are on gumpusers.com, etc... (2) at each step it shows 2a. a screenshot of the image 2b. any necessary dialogue boxes with settings you must enter 2c. the layers dialogue, or anything else that will help the user know they did the earlier steps correctly 2d. guidance for what to do if you went wrong. Each step should also have a short summary at the beginning - this way we do not force advanced users to go through all the sub-steps if the do exactly know what to do. (3) everything you must do is explicitly mentioned, including select none, create new layer, select a layer again after saving the selection to a channel, choose the brush tool. Links to the user manual should be included, too. (5) should be under the GNU Free Documentation License. Is the GFDL really a suitable license for tutorials? I think that we should at löeast disallow invariant sections. Regards, Michael -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Need Information about GIMP Python and related projects
HelloI am a final year B.Tech student...I have been working with GIMP for the past 2 years..Recently i read about GIMP Python and some related project ideas such as mapping the GIMP widgets to python,enhancing the interface builder,enhancing the python console etc. and found them interesting.I would like to contribute to these.. Could anyone give me information about the current status of these projects or tell me how much of the work has been done and how much is leftEagerly waiting for your reply.. ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] newb questions re python-fu
Hi, A coupla questions from the newb... I am trying to write my first python-fu plug-in and I cannot get it to install. Heres how I am pushing it to the plugins dir: cp VanDerWalt.py ~/.gimp-2.4/plug-ins/python-fu-vanderwalt.py chmod +x ~/.gimp-2.4/plug-ins/python-fu-vanderwalt.py Then I look for it under Image/Filters/Render/ and it is not there. Its a color filter that attempts to extract the bluest pixels, like this: code RED, GRN, BLU = 0, 1, 2 bluemask = (image[...,BLU] 1.4*image[...,GRN]) \ (image[...,BLU] 1.4*image[...,RED]) blue_layer = gimp.layer(bluemask, width, height, RGBA_IMAGE, 100, NORMAL_MODE) image.addlayer(blue_layer, 0) /code Q1) Is this even close? Q2) can I continue to use numpy (as I was with wx.Python) or do these images have to be treated with scipy? This is a volunteer project for the International Environmental Data Rescue Org (http://iedro.org), so if somebody wants to help me with it... the script is attached though it has not run yet :-o It is for converting rasterized weather charts (stripcharts) to vector data for weather modeling. paul python-fu-vanderwalt.py Description: Binary data ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] newb questions re python-fu
On Mon, Sep 22, 2008 at 10:29 AM, paul taney [EMAIL PROTECTED] wrote: Hi, A coupla questions from the newb... I am trying to write my first python-fu plug-in and I cannot get it to install. Heres how I am pushing it to the plugins dir: cp VanDerWalt.py ~/.gimp-2.4/plug-ins/python-fu-vanderwalt.py chmod +x ~/.gimp-2.4/plug-ins/python-fu-vanderwalt.py Then I look for it under Image/Filters/Render/ and it is not there. Its a color filter that attempts to extract the bluest pixels, like this: code RED, GRN, BLU = 0, 1, 2 bluemask = (image[...,BLU] 1.4*image[...,GRN]) \ (image[...,BLU] 1.4*image[...,RED]) blue_layer = gimp.layer(bluemask, width, height, RGBA_IMAGE, 100, NORMAL_MODE) image.addlayer(blue_layer, 0) /code Q1) Is this even close? Q2) can I continue to use numpy (as I was with wx.Python) or do these images have to be treated with scipy? Hi Paul, I found a few mistakes here and there. The main one is that Python is very strict about indentation. After that, the import Interpolate line I changed to from scipy import interpolate as ma - I'm not sure if that is correct or not. Lastly, there were some items like PF_ITEM(foo, _(foo), foo) that I changed to PF_ITEM(foo, foo, foo) and also I added Vanderwalt to the end on the plug-in resgistration. Oh yeah - I also added an 'except' in somewhere befor a finally... So... now it still does not run correctly, but at least it registers with GIMP :| BTW - starting GIMP from the command line will show syntax errors in py-fu scripts Also editors like scite and eric (among others) show indentation problems in Python by default - these are probably in your repositories. HTH, Chris #!/usr/bin/env python ### # ## van der Walt color filter ## python gimp plugin ## by paul taney ## [EMAIL PROTECTED] # ## Licensed under GPLv3 ## see www.fsf.org for details # # installation: put this file in #$HOME/.gimp-2.n/plug-ins # then look for it under Image/Filters/Render/ ### import numpy as np from gimpfu import * # imports the symbols gimp, pdb, register and main import os, sys, string import datetime #import Interpolate as ma from scipy import interpolate as ma def getXML(dictionary): line2 = transformLine(dictionary[line]) form = string.Template(\ ?xml version=\1.0\? iedro !-- who -- operator$operator/operator !-- where -- location$location/location lat$lat/lat long$long/long !-- when -- timestamp$timestamp/timestamp datestamp$datestamp/datestamp chartdate$chartdate /chartdate !-- what -- workingdirectory$workingdirectory/workingdirectory imagepath$imagepath/imagepath datfilename$datfilename/datfilename xmlfilename$xmlfilename/xmlfilename !-- coordinate transformation -- width$width/width !-- in pixels -- height$height/height time_units$time_units/time_units world_units$world_units/world_units time_coord_min$time_coord_min/time_coord_min time_coord_max$time_coord_max/time_coord_max world_coord_min$world_coord_min/world_coord_min world_coord_max$world_coord_max/world_coord_max !-- color filter setting -- bluemask_factor$bluemask_factor/bluemask_factor !-- line -- ) s = form.substitute(dictionary) s += '\nline%r/line\n' % (dictionary[line]) if dictionary[line2]: s += '\nline2%r/line2\n' % (line2) s += /iedro if 0: print s return s def python_fu_vanderwalt(image, drawable, operator, location, lat, long, thisdate, chartdate, imagefile, xmlfilename, phenomena, time_units, world_units, time_min, time_max, world_min, world_max, bluemask_factor): [ width, height, channels ] = image.shape dictionary = { operator:operator, location:location, lat:lat, long:long, thisdate:thisdate, chartdate:chartdate, imagefile:imagefile, xmlfilename:xmlfilename, phenomena:phenomena, time_units:time_units, world_units:world_units, time_min:time_min, time_max:time_max, world_min:world_min, world_max:world_max, bluemask_factor:bluemask_factor, line:[], line2:[], width: width, height:height, channels:channels, } image.undo_group_start() try: Stefan van der Walt gave me this filter on the numpy mailing list f = bluemask_factor #pdb.gimp_message(calling vanderWalt with factor=%f % f) RED, GRN, BLU = 0, 1, 2 bluemask = (image[...,BLU] f*image[...,GRN]) \ (image[...,BLU] f*image[...,RED]) # post it as a new_layer xxx blue_layer = gimp.layer(bluemask, width, height, RGBA_IMAGE, 100, NORMAL_MODE) image.addlayer(blue_layer, 0) # from
Re: [Gimp-developer] newb questions re python-fu
Thanks very much, Chris. I am using your file now and made a coupla repairs, afaict. But it still doesnt install. Now I may know why, as running it straight up gives No module named gimpfu! I am on a Mac. Did the gimp2.4.5...dmg not compile gimpfu? Answer may be: Look for a dot .so file: find /Applications/Gimp.app/ -name gimpfu\* | grep \.so /Applications/Gimp.app//Contents/Resources/lib/gimp/2.0/python/gimpfu.py /Applications/Gimp.app//Contents/Resources/lib/gimp/2.0/python/gimpfu.pyc /Applications/Gimp.app//Contents/Resources/lib/gimp/2.0/python/gimpfu.pyo == false positive. What should I do next? paul % cd /Users/paultaney/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins % ./python-fu-Vanderwalt.py Traceback (most recent call last): File ./python-fu-Vanderwalt.py, line 20, in module from gimpfu import * # imports the symbols gimp, pdb, register and main ImportError: No module named gimpfu Then I look for it under Image/Filters/Render/ and it is not there. ...is still the case. I am also pushing it twice, like: % cp python-fu-vanderwalt.py ~/.gimp-2.4/plug-ins % chmod +x ~/.gimp-2.4/plug-ins/python-fu-vanderwalt.py % cp python-fu-vanderwalt.py ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins % chmod +x ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python-fu-vanderwalt.py code RED, GRN, BLU = 0, 1, 2 bluemask = (image[...,BLU] 1.4*image[...,GRN]) \ (image[...,BLU] 1.4*image[...,RED]) blue_layer = gimp.layer(bluemask, width, height, RGBA_IMAGE, 100, NORMAL_MODE) image.addlayer(blue_layer, 0) /code Q1) Is this even close? Q2) can I continue to use numpy (as I was with wx.Python) or do these images have to be treated with scipy? Hi Paul, I found a few mistakes here and there. The main one is that Python is very strict about indentation. After that, the import Interpolate line I changed to from scipy import interpolate as ma - I'm not sure if that is correct or not. Lastly, there were some items like PF_ITEM(foo, _(foo), foo) that I changed to PF_ITEM(foo, foo, foo) and also I added Vanderwalt to the end on the plug-in resgistration. Oh yeah - I also added an 'except' in somewhere befor a finally... So... now it still does not run correctly, but at least it registers with GIMP :| BTW - starting GIMP from the command line will show syntax errors in py-fu scripts Also editors like scite and eric (among others) show indentation problems in Python by default - these are probably in your repositories. HTH, Chris python-fu-vanderwalt.py Description: Binary data Interpolate.py Description: Binary data ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] newb questions re python-fu
On Mon, Sep 22, 2008 at 12:37 PM, paul taney [EMAIL PROTECTED] wrote: Thanks very much, Chris. I am using your file now and made a coupla repairs, afaict. But it still doesnt install. Now I may know why, as running it straight up gives No module named gimpfu! AFAIK, you can't run gimp-fu scripts outside of GIMP. There is a python-fu console (XTNS-Python-Fu-Console) that will allow you to type/paste code in. When it doesn't register, is there any console output from GIMP? Chris ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] Splash proposal for 2.6
Hello, A while ago Jimmac asked me if I could try to work on a splash screen for GIMP 2.6. I did several proposals, and here is the one that has the preference: http://aurore.d.googlepages.com/splash_proposal Tell me what you think :) Cheers, -- Aurore ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] newb questions re python-fu
Thanks very much, Chris. I am using your file now and made a coupla repairs, afaict. But it still doesnt install. Now I may know why, as running it straight up gives No module named gimpfu! AFAIK, you can't run gimp-fu scripts outside of GIMP. There is a python-fu console (XTNS-Python-Fu-Console) that will allow you to type/paste code in. When it doesn't register, is there any console output from GIMP? No, but if I try to import it in the console I get something revealing: import python-fu-vanderwalt File input, line 1 import python-fu-vanderwalt ^ SyntaxError: invalid syntax I would not be suprised if python objects to minus signs in module names, so I have fixed that in my push script: % cat push.sh cp python-fu-vanderwalt.py ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py chmod +x ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py cp python-fu-vanderwalt.py ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py chmod +x ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py Still, it does not appear in the Xtns browser or Image/Filters/Render. Maybe it has to be Capitalized , as in the script... Nope. Thats not it; I just tested for that, but it is something REALLY STUPID. itJe garantir./it paul python-fu-vanderwalt.py Description: Binary data ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] newb questions re python-fu
On Mon, Sep 22, 2008 at 5:41 PM, paul taney [EMAIL PROTECTED] wrote: Thanks very much, Chris. I am using your file now and made a coupla repairs, afaict. But it still doesnt install. Now I may know why, as running it straight up gives No module named gimpfu! AFAIK, you can't run gimp-fu scripts outside of GIMP. There is a python-fu console (XTNS-Python-Fu-Console) that will allow you to type/paste code in. When it doesn't register, is there any console output from GIMP? No, but if I try to import it in the console I get something revealing: import python-fu-vanderwalt File input, line 1 import python-fu-vanderwalt ^ SyntaxError: invalid syntax I would not be suprised if python objects to minus signs in module names, so I have fixed that in my push script: % cat push.sh cp python-fu-vanderwalt.py ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py chmod +x ~/.gimp-2.4/plug-ins/python_fu_vanderwalt.py cp python-fu-vanderwalt.py ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py chmod +x ~/gimp/gimp-2.4.7/plug-ins/pygimp/plug-ins/python_fu_vanderwalt.py Still, it does not appear in the Xtns browser or Image/Filters/Render. Maybe it has to be Capitalized , as in the script... Nope. Thats not it; I just tested for that, but it is something REALLY STUPID. itJe garantir./it Hi Paul, I did not look at it very carefully, but there are still indentation errors. I recommend opening it in Eric - it will literally show a bug on the line(s) in question. You're also missing a comma on line 92... Chris ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Splash proposal for 2.6
Aurore D. wrote: Hello, A while ago Jimmac asked me if I could try to work on a splash screen for GIMP 2.6. I did several proposals, and here is the one that has the preference: http://aurore.d.googlepages.com/splash_proposal Tell me what you think :) I quite like it:) regards, Patrick Cheers, ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] Splash proposal for 2.6
On Monday 22 September 2008, Aurore D. wrote: Hello, A while ago Jimmac asked me if I could try to work on a splash screen for GIMP 2.6. I did several proposals, and here is the one that has the preference: http://aurore.d.googlepages.com/splash_proposal Tell me what you think :) Cheers, Hi. Sorry - This is a beautiful image, but I don't think it would do a great splash screen. IMHO wilber's sleep would be too easily associated with the lack of some features that are waiting to be implemented for a long time - that among those who already know the program. Among those who don't know the program, it would be rather difficult to associate the sleeping wilber with a really great product. js -- ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] 2.6 splash screen
There have been on the list a few propostions for splash screens. It is a quite hard decision to pick one above others. It is allright if one is quietly picked up, or developed under request by one of the long time contributors. However since we alrady have more than one proposal, and from project contributors, maybe tehre should eb a more formal process for choosing a splash screen? For Gimp 2.2 we made a widerepad contest, havign to select from hundreds of entries. Maybe this time we could just formalize a deadline, and having some people to pick one from the presented entries - but without making the widespread advertisement. I do volunteer for helping picking the best one, but I am ok if we just have a date and a single person picks one and commit it. I just don't think we will have the best choice if people sparsely send their entries to this list, and whoever feels compeled enough comment on it. There is the matter of having to publicly express teh motives why one feels or thinks an entry should not qualify (like I just did) - and that is annoying both for the proponent and for the one who comments negatively on the proposal. js -- ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer