It is currently Tue Jun 09, 2026 6:09 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Hi to all
PostPosted: Thu Feb 23, 2012 8:25 am  (#1) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi.

First of all, please excuse my not so very good english, it's not my native language.
I use gimp on Windows for several years. I use it for retouch my pictures. Not much...
I tried some other graphic programs, but I like the way, gimp deals with things.
What I'm missing are adjustment layers and 16bit possibilities.
I manged to compile an own verion of gimp-2.7.5. I did this, because the brush options
are not optimal. The optios are hard coded, so there was no other possibility to change
the options.The other reason was to change the iwarp plugin. I changed ist, because
sometimes I need a very small selection to warp. The plugin didn't scale up the small
selection - now it does...

That's all for now.

Greetings
Hatti


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: Hi to all
PostPosted: Thu Feb 23, 2012 8:37 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12775
Cool stuff Hatti. You and PhotoComix need to get together and share the tweaks. He's done a few with the previews too. Rod has also successfully compiled GIMP. I'm not that adventureous. lol

Welcome here too Hatti; hope to see some of your stuff soon. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 8:48 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Nov 16, 2011
Posts: 5127
Location: Metro Vancouver, BC
Welcome Hatti! You seem like a natural script writer. There are some good ones around here.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 12:09 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Aug 24, 2011
Posts: 1785
Location: Dallas, TX
Welcome to Gimp Chat Hatti!

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 12:23 pm  (#5) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
Would you mind uploading the your changed iwarp plugin exe and src files in a zip for me so i can check it out? :)

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 12:39 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
I wouldn't mind seeing that too Rod, I can't seem to make iwarp work well for me, I can use it but can't seem to be able to control it. IMO, it needs a revamp.

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 1:55 pm  (#7) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi.

Oh, it wasn't that much. Most of the time I spent exploring, what the plugin was working.
I concentrated on the method

static void iwarp_preview_init (void)

It is called several times, and I just commented out

// if (dx <= 1.0 && dy <= 1.0)
// pre2img = 1.0;

That means, if the image is greater than the preview window, then scale it to size of preview,
otherwise, do nothing.
With the comments, any image will be scaled to the size of the preview. Thats it. It works.
In

static gboolean iwarp_dialog (void)

I commented out

// iwarp_animate_dialog (dlg, notebook);

because I don't need the animation stuff.
In

static iwarp_vals_t iwarp_vals =

I changed the "FALSE" to "TRUE", that enables the "adaptive supersampling" by default,
I get better results.

Then some plays with other parameters:

static gint max_current_preview_width = 640;
static gint max_current_preview_height = 640;

doubling the maximum size of the preview.

near

g_signal_connect (button, "toggled",
G_CALLBACK (gimp_toggle_button_update),
&iwarp_vals.do_bilinear);

frame = gimp_frame_new (NULL);
gtk_box_pack_start (GTK_BOX (vbox), frame, FALSE, FALSE, 0);
gtk_widget_show (frame);

in my version from 2.7.4(5) source it is line 1182, I added right after this block:

gtk_widget_set_size_request(vbox, 400,200);

but thats not neccessary. It makes the settings area smaller, it was
too large for me. So now I have more space for the enlarged preview.
On some places (Oh, I see, I forgot one), I changed the name from "iwarp" to
"liquify", so I can have both of two good worlds.
The rest of it is pure iwarp, so I don't know, if I can send you the source, because
there are just some changes, that fits my needs.
Ahh, one thing that I hoped:
The "Radius" of operation refers to the size of the preview, not of the (now scaled) image.
So, for instance, Ihave a picture with a very nice lady, but sadly she has a bumply nose,
if you know what I mean. So with IWarp, I made a selection from the nose, and the nose
was shown as large as the 100% crop of the image in the upper left corner.
Now, with my changes, the nose is shown as big as the preview area, and i can "move"
out the bumple mch more exact.

Hatti


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:13 pm  (#8) 
Offline
Global Moderator
User avatar

Joined: May 16, 2010
Posts: 16023
That sounds pretty good. :)
Can you upload the binary then? I would love to test it out.
You will have to zip it in a compressed folder for the site to let you attach it though.Just a heads up.

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:31 pm  (#9) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi Rod

Here it is. In Plugins folder. You will find it in Filters/Distorts (or similar). It calls "Liquify"

Hatti

[attachment deleted]


Last edited by Onkel Hatti on Fri Feb 24, 2012 1:22 am, edited 1 time in total.

Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:43 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Darn, I don't think I can use that in Fedora. We can't use .exe files in our plug-ins. just .py files. I think I remember a liquify filter in Photoshop and it worked very well.

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:49 pm  (#11) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi Molly

Yes, thats right, not only .py, but also ELF executables. You would need the source code
for compiling it. Maybe it does it with gimptool. I don't know. I use windows.

Hatti


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:51 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you anyway Hatti, I don't know how to do that so I guess I will have to sulk. lol

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 2:55 pm  (#13) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
I took the whole code from iwarp, because, it is very good indeed and does what I want.
I just changed some things and gave it an other name, I don't know the license of all
that stuff, wheather it is allowed or not, so I just gave it to rod for testing.
But. Take the source from GIT or whatever, it is just one .c file, make the changes I described
above and compile it. You will get the same results.


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 3:29 pm  (#14) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
Image

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 3:37 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
I have iwarp under distorts but I do not have it in my plug-in folder. It is not under iwarp and it is not under plug-in-iwarp. It shows up when I go to help in gimp and click browse plug-ins, Why wouldn't it be in my folder in Fedora? This is crazy.

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 4:22 pm  (#16) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi Molly

There are at least two plugin folders. They can be seen by choosing "Edit/Preferences" (I hope, my gimp is german :-) ) in the tree "Folder/Plugins".
See there.
a) normally: "/usr/gimp-2.7.5/lib/gimp/2.0/plug-ins" or "/opt/gimp-2.7.5/lib/gimp/2.0/plug-ins"
b) other is "~/.gimp-2.7/plug-ins"
iwarp should be in a)

But this is not the source code, this is the executable in ELF format, ready compiled.


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 4:44 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thanks,
In Fedora, as far as I know there is only one plug-in , script, brushes, patterns, folder etc. I went into hidden files and I guess I will have to see if one the the Linux guys can help me find it. Where do I find the source file?

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 5:01 pm  (#18) 
Offline
GimpChat Member

Joined: Feb 22, 2012
Posts: 295
Location: Germany
Hi.

You didn't ever manually load the source? Then I think you sadly will fail.
You have to load the source manually. Gimp uses GIT revision control system, so it's best to get
the sources with GIT.
IWarp depends on libgimp, you need these librarys, too. libgimp depends on cairo, gtk, pixbuff, etc.,
so you need all these libraries, too. All in all, you need a complete developing environment for gimp.
My help is ending here, it was a hard work to put all the dependencies for windows together, i don't know,
how to do it in Fedora. Sorry. Maybe it is much easier, because gimp was written for Linux.

Hatti


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 5:13 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Apr 07, 2010
Posts: 14182
Thank you Hatti, I am just getting used to Linux Fedora myself, I still have Windows on a second hard drive. I will learn where everything is eventually, I did find two plug-ins in preferences but I haven't been able to view the files yet.
Anyway, thanks, in the mean time I will put that plug-in in my windows gimp.

_________________
Image


Top
 Post subject: Re: Hi to all
PostPosted: Thu Feb 23, 2012 10:55 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2012
Posts: 583
Are we going to get this account above my post removed for spam?

_________________


"In the face of adversity, there's three things: fly, freeze or fight; We're choosing to fight..."- Guy Boucher, Tampa Bay Lighting Head Coach


Top
Post new topic Reply to topic  [ 35 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group