It is currently Sat Sep 26, 2026 4:38 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Error while running Wrap-map (ofnuts) FALSE PROBLEM!!!
PostPosted: Sun May 17, 2015 11:23 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level

List any relevant plug-ins or scripts:
wrap-map (ofnuts)

List any ERROR messages you received:
see attached screenshot



just downloaded/installed the plug-in wrap-map (ofnuts)
I get the error show on ther screenshot when trying to follow the tutorial
GIMP Tutorial: Mitered & Grooved Picture Frames Using WrapMap
(note that I run version 0.4, while the tut talks about version 0.3)
Attachment:
Ashampoo_Snap_2015.05.17_18h07m54s_001_.png
Ashampoo_Snap_2015.05.17_18h07m54s_001_.png [ 878.19 KiB | Viewed 2585 times ]


any suggestion/recommendation?
thanks

_________________
"Where am I ?"


Last edited by dinasset on Mon May 18, 2015 12:14 am, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Error while running Wrap-map (ofnuts)
PostPosted: Sun May 17, 2015 12:15 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
What shows when you click on the "+" sign next to "More information"?

_________________
Image


Top
 Post subject: Re: Error while running Wrap-map (ofnuts)
PostPosted: Sun May 17, 2015 12:48 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
sorry for the delay (I was out for a while)
here the display when clicking on +
Attachment:
Ashampoo_Snap_2015.05.17_19h49m43s_001_.png
Ashampoo_Snap_2015.05.17_19h49m43s_001_.png [ 789.65 KiB | Viewed 2533 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Error while running Wrap-map (ofnuts)
PostPosted: Sun May 17, 2015 11:49 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
two questions:
1-could someone try to follow the same tutorial and check? (using latest version 0.4)
2-does someone have the previous version 0.3 which I could try?

--------------------------------------------------------------------------------------------------

Edit:
problem doesn't exist! My fault.
In spite of the fact that the selected map seemed to be correct, it was not!
Selecting the appropriate map the filter works!
I beg your pardon, Ofnuts, and all Gimp-chatters...

_________________
"Where am I ?"


Top
 Post subject: Re: Error while running Wrap-map (ofnuts)
PostPosted: Mon May 18, 2015 6:23 am  (#5) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
dinasset wrote:
two questions:
1-could someone try to follow the same tutorial and check? (using latest version 0.4)
2-does someone have the previous version 0.3 which I could try?

--------------------------------------------------------------------------------------------------

Edit:
problem doesn't exist! My fault.
In spite of the fact that the selected map seemed to be correct, it was not!
Selecting the appropriate map the filter works!
I beg your pardon, Ofnuts, and all Gimp-chatters...

Glad you solved the problem, but that still means there is a bug, because it should have complained and not crashed. Can you post your image (or a small extract that still exhibits the problem) and tell me exactly what you were doing when encountering the problem?

_________________
Image


Top
 Post subject: Re: Error while running Wrap-map (ofnuts) FALSE PROBLEM!!!
PostPosted: Mon May 18, 2015 7:03 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
It's not a problem of the image, it's due to the fact that in my procedure (it's an ongoing script I am writing) I do the following:
- open an image
- duplicate it
- create a square small selection
- duplicate the base layer
- from the selection create a palette using a filter (plug-in-smooth-palette) which create a new image (visible or not, user choice)
- then from that palette-image create a gradient
- overlay the selection with that gradient
at this point, during the development, I tried to perform the next steps interactively:
- select none
- create a new empty layer on the duplicated image
- select all
- select border 1 pixel
- run your script

because I tought that the default map selected was correct (the palette-layer was selected and visually it looks as the overlayed square layer of the duplicated image) I tried to run your script accepting the default!
once detected my error I modified the selection of the map (using the correct overlayed square layer of the image in process) adn the script worked fine.

Thus, if you want to investigate the missing check in your script, I guess you should control whether the wrong selection of an EXTERNAL layer-map (i.e. something NOT related to the image in process) could be checked and get a warning message.

_________________
"Where am I ?"


Top
 Post subject: Re: Error while running Wrap-map (ofnuts) FALSE PROBLEM!!!
PostPosted: Mon May 18, 2015 9:37 am  (#7) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
dinasset wrote:
It's not a problem of the image, it's due to the fact that in my procedure (it's an ongoing script I am writing) I do the following:
- open an image
- duplicate it
- create a square small selection
- duplicate the base layer
- from the selection create a palette using a filter (plug-in-smooth-palette) which create a new image (visible or not, user choice)
- then from that palette-image create a gradient
- overlay the selection with that gradient
at this point, during the development, I tried to perform the next steps interactively:
- select none
- create a new empty layer on the duplicated image
- select all
- select border 1 pixel
- run your script

because I tought that the default map selected was correct (the palette-layer was selected and visually it looks as the overlayed square layer of the duplicated image) I tried to run your script accepting the default!
once detected my error I modified the selection of the map (using the correct overlayed square layer of the image in process) adn the script worked fine.

Thus, if you want to investigate the missing check in your script, I guess you should control whether the wrong selection of an EXTERNAL layer-map (i.e. something NOT related to the image in process) could be checked and get a warning message.


It could work with a layer in another image (IIRC I designed it that way). What I don't understand is that the code retrieves the pixel color (which is a tuple or 1 to 4 elements, one for each channel, depending in the layer/image type), extracts/recreates the necessary R,G,B,A channels, and then divides them by 255. And the error is the division complaining that the dividend isn't a number but a tuple, and I can't image how the code could get a tuple there since that would mean that some elements of the color tuple are tuples themselves.

_________________
Image


Top
 Post subject: Re: Error while running Wrap-map (ofnuts) FALSE PROBLEM!!!
PostPosted: Mon May 18, 2015 12:35 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14835
Location: roma, italy
..phantom error...

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group