Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Mirza Husadzic
  To provide path coordinates flattened
  (with all transformations applied) it would have to compute the
   transformations itself. So it is not obviously clear, that librsvg *has*

  the data readily available for the use in the GIMP.

It can provide transformation matrix which keeps rotation, translation and
scale
in a 4x3 matrix. Or unit matrix if there is no transformations (i.e. in case
of Blender's SVG file).
The matrix is then pushed on the stack (cairo, OpenGL) before issuing
commands to draw with points.
It is better to do *computation* on GPU side.
These things are standardized.

 I don't see a good reason to abandon our own parser. If it has problem
 we need an isolated testcase of a compact, validated SVG that results in
 bogus paths. Then we can track this down.

I'm afraid that path rendering in GIMP requires a major change.
Why not take this step further and make it more flexible and easier to
maintain for future development?

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


[Gimp-developer] useless sliders in the Tool options, git version

2010-09-10 Thread Olivier
I tried several times to send the present message, sorry in case there is
duplication.

On one computer (with Debian testing), the git installation of GIMP dates
from August 28. On the other one (with Ubuntu 10.04), it dates from
September 5.  I tried to attach screen copies of the Tool Options dockable
with the Clone tool active, but the message is too heavy. In the oldest
version, the sliders work as customary, because their title is above them.
In the newest version, the sliders are no longer usable, because their title
is on their left and they are too short, and I would need to enlarge the
dock to at least 7 tools per row to get something usable at all.

By the way, what's the meaning of the 4 x 138 or 5 x 172 indications that
pop up while I'm enlarging the dock?

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


[Gimp-developer] current git version: weird behavior in a detached menu

2010-09-10 Thread Olivier
Git version compiled today on Ubuntu 10.04. Using a right-click in the Image
window, I detach the Image - File - Create menu. In this detached menu,
the menu entries work as customary. However, the simple entries, for example
Screenshot, have no other effect than to display a comment iin the bottom of
the Image window.

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


[Gimp-developer] a slight problem that has existed for some time

2010-09-10 Thread Olivier
The following problem exists in the current git version, but is not new.
When a new dockable dialog is created, for example by double-clicking a tool
icon in the Toolbox when there is no Tool options dialog open, or by
double-clicking a paint dynamics entry in the Paint dynamics dialog, the new
dialog is open under the current window. Sometimes, it is almost completely
hidden. Either it should be open over the current window, or in another
location on the screen, if available.

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


Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Øyvind Kolås
On Fri, Sep 10, 2010 at 7:57 AM, Mirza Husadzic
mirza.husad...@gmail.com wrote:
 I'm afraid that path rendering in GIMP requires a major change.
 Why not take this step further and make it more flexible and easier to
 maintain for future development?

Depending in any way on librsvg would in my opinion not be a move in
the right direction, the next generation rendering infrastructure of
GIMP called GEGL has it's own path class that allows specifying paths
beyond what SVG deals with (though it probably does not deal with some
of the corner cases for terse condensed path representations in SVGs).
http://git.gnome.org/browse/gegl/tree/gegl/property-types/gegl-path.c

The grammar parsed by GeglPath is dynamically extendable to also
incorporate for instance spiro curves http://libspiro.sourceforge.net/
or other non bezier curves.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
___
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer


Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Sven Neumann
On Thu, 2010-09-09 at 12:13 +0200, Mirza Husadzic wrote:

 The problem is manifested when I imported SVG file (the mesh UV Layout
 generated by Blender 2.53) into GIMP, in order to be able
 to paint textures by keeping guide-lines with paths.
 
 The paths are not imported/merged properly where SVG image is
 generated correctly (probably by 'librsvg'?).
 The Blender's 'uv.py' exporter script had generated uv's layout as SVG
 polygons as follows (note that polygon is a quad):
 
 polygon fill=rgb(204, 204, 204) fill-opacity=0.5 stroke=black
 stroke-width=1px 
   points=67.334,493.895 77.587,494.896 78.033,463.871 67.768,463.723
  /

Can you please open a bug-report and attach the most simple test case
that you can come up with? We need a small .svg file that illustrates
the problem. I am pretty sure that the problem can easily be fixed then.


Sven


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


Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Mirza Husadzic
  Can you please open a bug-report and attach the most simple test case
  that you can come up with? We need a small .svg file that illustrates
  the problem. I am pretty sure that the problem can easily be fixed then.

Here it is: https://bugzilla.gnome.org/show_bug.cgi?id=629318

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


Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Mirza Husadzic
 The grammar parsed by GeglPath is dynamically extendable to also
 incorporate for instance spiro curves http://libspiro.sourceforge.net/
 or other non bezier curves.

I'm looking forward to see it in action.

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


Re: [Gimp-developer] GIMP paths.

2010-09-10 Thread Simon Budig
Mirza Husadzic (mirza.husad...@gmail.com) wrote:
   Can you please open a bug-report and attach the most simple test case
   that you can come up with? We need a small .svg file that illustrates
   the problem. I am pretty sure that the problem can easily be fixed then.
 
 Here it is: https://bugzilla.gnome.org/show_bug.cgi?id=629318

Fixed in GIT. We miscounted the numbers in the points string when it
had additional whitespace at the end, resulting in a rejection of the
data, since an uneven count means invalid data.

Bye,
Simon

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


Re: [Gimp-developer] current git version: weird behavior in a detached menu

2010-09-10 Thread Akkana Peck
Olivier writes:
 Git version compiled today on Ubuntu 10.04. Using a right-click in the Image
 window, I detach the Image - File - Create menu. In this detached menu,
 the menu entries work as customary. However, the simple entries, for example
 Screenshot, have no other effect than to display a comment iin the bottom of
 the Image window.

That's true for 2.6.8 as well. Sometimes they work, mostly they don't.
It might be something to do with the GTK (2.20.1) installed on
10.04. I really miss those tear-off menus.

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