RSS/Atom feed Twitter
Site is read-only, email is disabled

Path stroking mysteries

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Path stroking mysteries Ofnuts 19 Oct 00:48
  Path stroking mysteries Liam R E Quin 19 Oct 04:37
   Path stroking mysteries Joao S. O. Bueno 19 Oct 05:02
Ofnuts
2012-10-19 00:48:47 UTC (about 12 years ago)

Path stroking mysteries

- Make an ellipse selection
- Stroke the selection with a 2px solid line, and anti-aliasing checked in the Stroke dialog: the line is jagged (at least on my Linux 2.6.8 and 2.7.2, and on a Windows 2.8)
- "Select/To path" and stroke the path with the same stroke parameters: the produced line is smooth.

Conversely, make a path, stroke it: the line is smooth. Create a selection from the path and stroke it: it is jagged.

That could be a bug (but I didn't find anything like this on bugzilla), but it has been around for so long that it could be a feature, and if so, what is the rationale?

Btw, I also looked for a PDB entry to stroke a solid line on a path and couldn't find any.: gimp-edit-stroke and gimp-edit-stroke-vectors use the active brush and this doesn't give the same squeaky clean results as stroking with a solid line. Did I overlook something? Otherwise, is there an explanation for the missing function? Oversight? Lack of demand? Lack of time? Deemed not useful?

Liam R E Quin
2012-10-19 04:37:25 UTC (about 12 years ago)

Path stroking mysteries

On Fri, 2012-10-19 at 02:48 +0200, Ofnuts wrote:

- Make an ellipse selection
- Stroke the selection with a 2px solid line, and anti-aliasing checked in the Stroke dialog: the line is jagged (at least on my Linux 2.6.8 and 2.7.2, and on a Windows 2.8)

I think this is a bug. A workaround is to stroke with the paintbrush instead.

- "Select/To path" and stroke the path with the same stroke parameters: the produced line is smooth.

Conversely, make a path, stroke it: the line is smooth. Create a selection from the path and stroke it: it is jagged.

Feather the selection after doing this and it should be smooth I think.

Btw, I also looked for a PDB entry to stroke a solid line on a path and couldn't find any

I'd suggest submitting a patch... :)

Liam

Joao S. O. Bueno
2012-10-19 05:02:04 UTC (about 12 years ago)

Path stroking mysteries

On 19 October 2012 01:37, Liam R E Quin wrote:

On Fri, 2012-10-19 at 02:48 +0200, Ofnuts wrote:

- Make an ellipse selection
- Stroke the selection with a 2px solid line, and anti-aliasing checked in the Stroke dialog: the line is jagged (at least on my Linux 2.6.8 and 2.7.2, and on a Windows 2.8)

I think this is a bug. A workaround is to stroke with the paintbrush instead.

This has always been like this - it is due to selection, although not feeling like
that, when we look at the marching ants, being rasterized - so all stroking coordinates
are quantized to pixel centers.

- "Select/To path" and stroke the path with the same stroke parameters: the produced line is smooth.

Conversely, make a path, stroke it: the line is smooth. Create a selection from the path and stroke it: it is jagged.

Feather the selection after doing this and it should be smooth I think.

Btw, I also looked for a PDB entry to stroke a solid line on a path and couldn't find any

I'd suggest submitting a patch... :)

Indeed - not having a PDB entry for that _is_ a bug.

js ->,-

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml