Re: [Gimp-developer] new feature request - gimp

2008-10-21 Thread Sven Neumann
Hi,

On Mon, 2008-10-20 at 21:35 -0700, Jim Michaels wrote:
 Akima spline curves give drawing freedom, at least some kind of
 interpolating spline curve where you can just simply lay the points
 down and the curve follows along the points

How do these compare to Spiro curves (http://libspiro.sourceforge.net/)?

As far as I can see, Spiro curves have similar behavior, but would
probably be easier to implement. In fact, there is already code for
using Spiro curves in GEGL.


Sven


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


Re: [Gimp-developer] new feature request - gimp

2008-10-21 Thread David Gowers
Hi,

On Tue, Oct 21, 2008 at 3:05 PM, Jim Michaels [EMAIL PROTECTED] wrote:

Please send only plain-text mail to this list. HTML mail annoys people here.

 Akima spline curves give drawing freedom, at least some kind of
 interpolating spline curve where you can just simply lay the points down and
 the curve follows along the points - I have a hard time getting bezier
 curves to do what I want.  It's like Alice in wonderland using a flamingo
 for a mallet in a game of croquet. unweildly.

 Bezier Curves were introduced into Windows NT.  It seems like a lot of paint
 programs began including Bezier Curves as a drawing method after that.

 They should have also introduced Akima spline curves into Windows. I am not
 saying take Bezier curves out - I am saying Add Akima Spline curves, or the
 bettered (modified) version of Akima Spline curves that doesn't react as
 much.  At least some type of interpolating spline curve where you just lay
 the points down and the curve follows the points.

 Akima spline curves are cool.  just put points along where you want the
 curve. simple.  you just need more points around sharp edges, or you get a
 ringing effect around that area. (See discussion and visuals link).

 part of the challenge of using Akima spline curves is that the first 2 data
 points must be faked or dropped.  same goes with the last data point.  this
 can be taken care of with some simple engineering tricks.

 http://en.wikipedia.org/wiki/Spline_(mathematics)
 Wikipedia article on Spline curves (mathematics). This does not cover the
 Akima Spline, which

 keeps its curve along the data points rather than just near it like a
 B-spline curve does.

 http://www.cse.unsw.edu.au/~lambert/splines/
 demonstration of the various curve types in action. (requires Java) play
 with the spline curve for

 a while (delete the existing points other than 0 first to get started)

 http://demonstrations.wolfram.com/BSplineCurveWithKnots/
 B-Spline curve with Knots (can be active demo)

 GNU Scientific Library Reference Manual
 http://www.network-theory.co.uk/docs/gslref/InterpolationTypes.html
 book - has Akima Spline amp; Cubic Spline. See also
 http://www.gnu.org/software/gsl/manual/html_node/Interpolation-Types.html
 GNU Manual

 http://www.iop.org/EJ/abstract/0031-9155/18/4/306
 PDF file from medical site on akima and spline methods and its associated
 errors. Recommendations

 for fixing the significant overshoot on abrupt changes, and suggestion to
 use more closely spaced

 points around those regions. must purchase.

 http://portal.acm.org/citation.cfm?id=116810
 The Akima Univariate Interpolation Method (spline) article from the acm. by
 Hiroshi Akima.

 requires web account and probably money to buy the PDF article.

 http://www.iue.tuwien.ac.at/phd/rottinger/node60.html
 Equations for Akima Spline

 http://www.alglib.net/interpolation/spline3.phpdiscussion and visuals of
 Akima Spline and its

 drawbacks. also has source code in C++, C#, Delphi, VB6, Zonnon.

 http://www.sciencedirect.com/science?_ob=ArticleURL_udi=B6TYG-414N645-

 2_user=10_rdoc=1_fmt=_orig=search_sort=dview=c_acct=C50221_version=1_urlVersion=0_us

 erid=10md5=17dccffcfa40e5b420c7c377fc24b5f7
 pay-for article on some sort of improved-smoothness spline. Shape of data is
 preserved.

 http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=1814objectType=file
 MATLAB model.


 Jim Michaels
 [EMAIL PROTECTED]
 http://JesusnJim.com

I looked through all your links, and while Akima splines seem
interesting, I think we would need some visual demonstration of their
performance in the way they'd be used in GIMP (most likely, contour
tracing to 'cut out' objects), before we could agree that they were an
appropriate thing to add. We would also need to be absolutely sure
that they are unencumbered by patents.

Personally, I think if we were to support a 'on-points-only' type of
spline, Cornu (aka clothoid) splines would be a better choice,
especially as they are already implemented in Inkscape and FontForge,
and a free software affiliated person (Raph Levien) owns the patent
(pending?) on it and has implemented a GPL library (libspiro) to
assist in their usage. They also seem to be more predictable than
Akima splines. However they do require you to mark corners explicitly.

http://www.youtube.com/watch?v=3OaLZuFZxdk
provides an example of how they work and look (video of manipulating
Cornu splines in Inkscape)

Their effectiveness can be checked by (with a development version of Inkscape)
 1. Open inkscape and import a bitmap to trace
 2. Roughly outline the object with a polygonal stroke
 3. Using node editing, select all nodes and set them smooth.
 4. Add the 'spiro' live effect to the path.
 5. Add nodes or set segments linear, as needed, until you are satisfied.

I've just done that, for cutting out pelicans from a photo. my initial
polygonal sketch had 67 nodes. The final shape had 96 nodes, so I
needed to add 29 nodes (43%). 

Re: [Gimp-developer] new feature request - gimp

2008-10-21 Thread Alexandre Prokoudine
On Tue, Oct 21, 2008 at 10:55 AM, David Gowers wrote:

  4. Add the 'spiro' live effect to the path.

In fact, you can just draw Spiro curves with Pen or Pencil from the
very beginning ;-)

Alexandre
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] new feature request - gimp

2008-10-21 Thread Simon Budig
Jim Michaels ([EMAIL PROTECTED]) wrote:
 Akima spline curves give drawing freedom, at least some kind of
 interpolating spline curve where you can just simply lay the points
 down and the curve follows along the points - I have a hard time
 getting bezier curves to do what I want.  It's like Alice in
 wonderland using a flamingo for a mallet in a game of croquet.
 unweildly.

Oh well, that all kind of depends on how you implement it. In the Curves
dialog we also use bezier curves and you don't really notice it, because
the control handles get determined automatically.

 Bezier Curves were introduced into Windows NT.  It seems like a lot of
 paint programs began including Bezier Curves as a drawing method after
 that.

Bezier Curves have a lot of (computationally) nice properties, making it
easy to implement it. Plus it really is nice how you can control them in
quite detail.

 Akima spline curves are cool.  just put points along where you want
 the curve. simple.  you just need more points around sharp edges, or
 you get a ringing effect around that area. (See discussion and
 visuals link).

Yeah, just laying down nodes is a cool way to edit curves. From your
links it seems that Akima-Splines have a better locality and are more
stable than e.g. Spiro curves.

The thing is that there are dozends of interpolation types that have
this laying down nodes editing property and it is hard to put a finger
on which one to choose. We do know that spiro curves have been developed
to create visually appealing curves by requiring certain smoothness
properties. That makes them an appealing choice for design oriented
programs. The instability of spiros however might kind of hamper their
adoption for real use though.

Do you know of any study on how suitable Akima splines are for graphic
design? It would be nice to have a comparison of different spline types
for this kind of application. I believe the criteria you mentioned above
(locality, interpolates all control points) are not necessarily enough
to judge on that.

Bye,
Simon


-- 
  [EMAIL PROTECTED]  http://simon.budig.de/
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] How can I set the number of layers of thumbnail?

2008-10-21 Thread tks
Hi!
I'm writing this plug-in for GIMP-2.6 on Fedora 9.
http://registry.gimp.org/node/9036

I added ability to load as a thumbnail but it only showed file name
and file size in preview box of save dialog.
I want to show more information such like image width, height, and
number of layers.
I modify these lines based on libgimpthumb/gimpthumbnail.c

query (void)
{
//
  static const GimpParamDef thumb_return_vals[] =
{
  { GIMP_PDB_IMAGE, image,  Thumbnail image  },
  { GIMP_PDB_INT32,   image-num-layers, The number of layers },
  { GIMP_PDB_INT32,   image-width,   The width of image },
  { GIMP_PDB_INT32,   image-height, The height of image }
};
///

run (name,
///
  else if (strcmp (name, LOAD_THUMB_PROC) == 0)
{
  image_ID = load_thumbnail (param[0].data.d_string, nlayers, error);

  if (image_ID != -1)
{
  *nreturn_vals = 5;
  values[1].type = GIMP_PDB_IMAGE;
  values[1].data.d_image = image_ID;
  values[2].type = GIMP_PDB_INT32;
  values[2].data.d_int32 = 666;   /* image-num-layers */
  values[3].type = GIMP_PDB_INT32;
  values[3].data.d_int32 = 777;   /* image-width */
  values[4].type = GIMP_PDB_INT32;
  values[4].data.d_int32 = 888;   /* image-height */
}

(Full source code is here. http://www.sutv.zaq.ne.jp/linuz/tks/item/file-xmc.c )
The result is here.
http://www.sutv.zaq.ne.jp/linuz/tks/item/preview.png

If things go well, preview showld become
  777 x 888 pixels
  666 layers
but actual result is
  666 x 777 pixels
It seems that image-num-layers is ignored!
Then, how can I set the number of layers for a thumbnail?
Or, is it impossible?

I also tried to read app/widgets/gimpthumbbox.c, but it's a hard work...

tks
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] some confusions because of missing delimitation frame inside settings windows (Win32)

2008-10-21 Thread Cristian Secară
I was confused why the Factory defaults button from
Image - Filters - Distorts - Newsprint
only defaults just a few settings there, until I found a snapshot at
this address
http://www.linuxtopia.org/online_books/graphics_tools/gimp_user_manual/en/plug-in-newsprint.html
which explained to me the mistery: the Factory defaults only refers to
what is inside the Screen delimitation frame, not the settings in the
whole preference window.

On my system that delimitation is visually missing – this is what I am
seeing on my system
http://www.secarica.ro/misc/gimp_filters_distorts_newsprint.png
(although I am on Windows XP, I have set the Emacs theme for GIMP in
order to resemble with the snapshot from the linuxtopia site)

Is this a Win32 port problem (GTK+ perhaps), or a global problem ?
And even so, the Factory defaults does not affect the Black pullout
cursor, which can be considered as belonging to the Screen category,
the one that can be defaulted.

Cristi
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] GEGL mockup IDEA

2008-10-21 Thread Mola Pahnadayan
Hi all, some Idea for GELG in gimp,
   1) Can add GEGL operation to Layer
   2) Can change operation at any time
   3) Show GEGL operation as list

Good luck
Mola

gimp_mockup
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Request to include Gimp Manual Book at Gimp.org books (Gimp merchandise)

2008-10-21 Thread Monica Kraenzle

Hi, I would like to request to some developer (web team) to include this 
printed softcover edition of the GIMP Manual which we published some weeks ago, 
under the BOOK section of www.gimp.org

It's available through Amazon and we will DONATE 10% of all net revenues to 
Gimp.


The Book details (cover images available on both websites mentioned below):

Title: GIMP - The official Manual
Author: Susan A. Jones
Format: Paperback, 718p.
ISBN-10: 1440427062
ISBN-13: 978-1440427060
Publisher/Date: CreateSpace September 2008
Website: http://gimpmanual.weebly.com
Website: http://www.amazon.com/dp/1440427062


Product Description
GIMP Users Manual. 718-pages paperback-book edition. The HOW TO to Photo 
Retouching, Image Composition and Image Authoring The ultimate Users Manual for 
GIMP, the freely distributed IMAGE SOFTWARE. GIMP stands for GNU Image 
Manipulation Program. GIMP is a free Photo and image Software for Photo 
Retouching, Image Composition and Image Authoring. This complete Users Manual 
will help you to learn the program and to work with all of it's functions. The 
HOW TO to Photo Retouching, Image Composition and Image Authoring. The 
ultimate HOW TO GIMP manual.
_
¿Aburrido? Ingresá ya y divertite como nunca en MSN Juegos.
http://juegos.ar.msn.com/
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] Request to include Gimp Manual Book at Gimp.org books (Gimp merchandise)

2008-10-21 Thread Michael Schumacher
Monica Kraenzle wrote:

 Title: GIMP - The official Manual

What exactly makes this book official? Is it a print of the manual
available from http://docs.gimp.org?


Michael

-- 
GIMP  http://www.gimp.org  | IRC: irc://irc.gimp.org/gimp
Wiki  http://wiki.gimp.org | .de: http://gimpforum.de
Plug-ins  http://registry.gimp.org |
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


[Gimp-developer] Request to include Gimp Manual Book at Gimp.org books (Gimp merchandise)

2008-10-21 Thread Monica Kraenzle

Hi Michael,

Yes, it is a pdf formatted version of http://docs.gimp.org .

We formatted the gnu-labeled PDF version for book printing and designed this 
cover.
All pages are completed including all gnu informations.

GNU Image Manipulation Program
December 2, 2007
REVISION HISTORY
$Revision: 2129 $ 2007-07-15 romanofski

Could you help to get this up on the book page?



_
Descargá ya gratis y viví la experiencia Windows Live.
http://www.descubrewindowslive.com/latam/index.html
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer