It is currently Mon Apr 15, 2024 8:20 am


All times are UTC - 5 hours [ DST ]


Switch to mobile style

Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 6:10 pm  (#21) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
so far I found this..........http://www.cs.huji.ac.il/~yweiss/Colorization/

http://zenthought.org/content/project/colorize-gimp

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 8:09 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
Win 7 - 64bit, Gimp 2.6.11 and I downloaded color_source.png from this thread. I had the color_source.png as my top layer, and a solid white layer (no alpha channel) and ran the filter on the white base layer. The layer has a slight bit of the color from the top layer, but barely anything. Any suggestions as to what I am doing wrong with it??

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 8:32 pm  (#23) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
If you use a white background for layer, you need to toggle the white layer mask option, otherwise use a transparent layer instead.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 9:00 pm  (#24) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12516
Got to be a transparent layer Gregg. If you have little color and then rest white, the white will color in most of the image. White is a ligit color by the way fyi. Keeping the top layer transparent also makes sense since you got to be able to see what you are doing. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 9:23 pm  (#25) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
With only 512 mb of ram this plug-in isn't for me. :lol
Still waiting for a 640x400 gradient to color itself. (started 35 minutes ago)
It has just now reached the halfway mark.
Probably why it crashed in the first place on my 2600x2600 image.

By the way when i desaturated the image it automatically removed the alpha channel
so that wasn't the problem i do not think.
Pretty sure now that it was my sloooow machine. :)

Oh well.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Apr 26, 2011 11:26 pm  (#26) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
i had do some test
1490x1120 seem was the maximum work size


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Wed Apr 27, 2011 10:17 am  (#27) 
Offline
GimpChat Member
User avatar

Joined: Jul 04, 2010
Posts: 2253
Location: Retired Moderator Slowly Returning to the Living.
My top layer is transparent with some painted areas, and my bottom layer has no alpha channel. My bottom layer was white. I tried it with an actual photo as my bottom layer and my transparent top layer. I'm getting some results, so I will keep playing with it. It is a sweet plugin with immense potential once I get it.

_________________
Artists aren't crazy! We're eccentric! ~G.M. Ross

Image

My Sigs = My Photos
Check out my work at http://www.flickr.com/photos/photomastergreg.


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Wed Apr 27, 2011 1:22 pm  (#28) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
It works real fast as long as the colors are blocks.On gradients it needs to render more colors so it's much slower.With 1gig ram or better it should render pretty quickly either way.
PhotoMaster here is what i did.
I created a new white bg doc at 640 pixels wide and 400 pixels tall.
Then i created 3 equal horizontal rectangles like a French flag on the new doc layer.
After that i added a new transparent layer on top and gave it 3 different colored paint strokes.
I chose the bg layer and ran the plug-in
I chose the colored layer and clicked okay - 3 minutes later i had a French flag colored pink, green, and powder blue on the bottom bg layer.
It seemed though that all my paint lines were brighter than the rest of the colors that were rendered in.
I could see the lines in the colored stripes as a lighter color.Could be just my machine but i don't know.

My advice is to not run this plug-in on a machine with less than 1 gig ram. :)
In my case a selection and then a gradient map or colorize would be faster. :lol

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Wed Apr 27, 2011 5:38 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
Thanks Jimi, Thanks James

By the way
Good people live in Taiwan, Thanks :bigthup
Image

_________________
Image


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Sun May 01, 2011 3:53 am  (#30) 
Offline
GimpChat Member
User avatar

Joined: Apr 22, 2010
Posts: 123
Thanks for the update, the new plug-in works fast and well.
The next updates to please let us know, send a message.
Once again, thanks for the nice plug. :tyspin

_________________
Image


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon May 02, 2011 1:25 am  (#31) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
pogogogo wrote:
Thanks for the update, the new plug-in works fast and well.
The next updates to please let us know, send a message.
Once again, thanks for the nice plug. :tyspin


I just try to fix that the image too big caused by crash problem
now it seem no longer crashes
but the image result was not good.
Image

sorry for my poor English.


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon May 02, 2011 11:58 am  (#32) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Quote:
I just try to fix that the image too big caused by crash problem
now it seem no longer crashes


Did you updated the binary ?

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon May 02, 2011 5:28 pm  (#33) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
It does look a little off.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon May 02, 2011 7:42 pm  (#34) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
PhotoComix wrote:
Quote:
I just try to fix that the image too big caused by crash problem
now it seem no longer crashes


Did you updated the binary ?


Yes, last weekend

Rod wrote:
It does look a little off.

Because it was divide into several part to process(only when image size bigger than 1400x1050)


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue May 31, 2011 6:35 pm  (#35) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
JamesH wrote:
mahvin wrote:
Does the Windows binary allow you to work on multiple images in one GIMP session? It won't allow you to do so in Ubuntu. I have to close GIMP and restart if I want to work on a separate image and this totally sucks.


if you compile yourself, you can add this line
colorizevals.marked_id = default_drawable->drawable_id;
to the file "colorize-plugin.c" as the following code show

static gboolean colorize_dialog(GimpDrawable *default_drawable)
{
   GtkWidget *dialog, *combo;
   GimpDrawable *marked;
   gint status;

   gimp_ui_init("colorize", TRUE);

   dialog = gimp_dialog_new(
      "Colorize", "colorize",
      NULL, 0,
      gimp_standard_help_func, "plug-in-colorize",
      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
      GTK_STOCK_OK, GTK_RESPONSE_OK,
      NULL
   );

   gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)), 12);
   gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(dialog)->vbox), 6);
   // add this line set marked_id to default to avoid get invalid id error
   colorizevals.marked_id = default_drawable->drawable_id;
   if (colorizevals.marked_id == -1)
      colorizevals.marked_id = default_drawable->drawable_id;
   marked = gimp_drawable_get(colorizevals.marked_id);
   if (!marked) return FALSE;


I had to come back and re-read this post to see what I wasn't getting in regards to my errors, and I quickly realized that although I did have this:

if (colorizevals.marked_id == -1)
      colorizevals.marked_id = default_drawable->drawable_id;
   marked = gimp_drawable_get(colorizevals.marked_id);
   if (!marked) return FALSE;


I didn't have this:

// add this line set marked_id to default to avoid get invalid id error
   colorizevals.marked_id = default_drawable->drawable_id;


So, I added those two lines above to my c file and recompiled and woohoo, it works. Thanks, JamesH!

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue May 31, 2011 8:47 pm  (#36) 
Offline
GimpChat Member

Joined: Apr 25, 2011
Posts: 78
Location: Taiwan
You are welcome
Better way was use gimp_drawable_is_valid to check the drawable is valid or not

// add this line set marked_id to default to avoid get invalid id error
if( !gimp_drawable_is_valid(colorizevals.marked_id) ) colorizevals.marked_id = -1;


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Tue Sep 13, 2011 4:00 am  (#37) 
Offline
GimpChat Member
User avatar

Joined: May 27, 2011
Posts: 707
HI All

I don't know why,but when i try to colorize to brown,it gives me pink instead
any ideas?
Thank You


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Sat Nov 19, 2011 5:12 pm  (#38) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I don't know how I missed this one. can't wait to try it. Thanks James.

_________________
Image


Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon Nov 12, 2012 5:35 pm  (#39) 
Offline
New Member

Joined: Nov 12, 2012
Posts: 2
I can't see this plugin doing anything.
I am using gimp-2.8.0 on Windows.

I took the sample image from here and made it black and white with an RGB mode.
my opera com/area42/blog/gimp-colorize
I then added a transparent layer.
I then added the stripes to that layer.

When I do Color-Colorization it auto-selects the layer as there is only one choice.
I don't make any changes to the options and it runs.

But the output is still the same as if I had done nothing at all.
I still see black and white with my coloured stripes on it.

I tried compiling the source on Linux using the code from these 2 repos:
github com/weibel/colorize-gimp
bitbucket org/grimboy/colorize-gimp/changesets

But I still had the same effect i.e. no colour change.
Am I missing a trick here?
I have attached the xcf file for others to try and explain what is going on.

By the way, is the code for any changes and build/makefiles etc in a public repo?


Attachments:
odeya_grey.xcf [117.52 KiB]
Downloaded 157 times
Top
 Post subject: Re: Colorize-Gimp win32 binary
PostPosted: Mon Nov 12, 2012 5:47 pm  (#40) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I ran colorfy on the background layer and ended up with the black and white with the colored stripes. I ran it again on the transparent layer and got an all black and white pc with white and black lines as seen below.

Image Image

_________________
Image


Top
Post new topic Reply to topic  [ 52 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts G'Mic colorize interactive problem

2

No new posts GMIC colorize(interactive) achieve silver

1

No new posts Printing from Gimp - Using win32 Application

1



* Login  



Powered by phpBB3 © phpBB Group