After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 65197 - New tool please: Shapes
New tool please: Shapes
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Tools
git master
Other All
: Normal enhancement
: Future
Assigned To: GIMP Bugs
GIMP Bugs
: 65195 100971 121897 133966 163655 170153 314469 316941 526518 539517 554894 596522 660575 (view as bug list)
Depends on:
Blocks: 140033
 
 
Reported: 2001-11-23 19:02 UTC by Hakon
Modified: 2018-05-24 10:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hakon 2001-11-23 19:02:36 UTC
I think that there should be a tool for drawing shapes, i.e. squares, 
circles and maybe some others.
To that there should be some real-time aspect ratio information in the 
status bar.
The tool button should be Shapes. Then in the Shapes tool window, it would 
be possible to choose what kind of shape to draw.
Comment 1 Ben FrantzDale 2002-12-07 01:29:10 UTC
This can be done by making a selection and doing edit->stroke.

However, I have seen others mention this as a shortcoming of the GIMP.
Comment 2 Raphaël Quinet 2002-12-07 11:10:50 UTC
Yes, you can do a lot of things by creating the appropriate selections
and using Edit->Stroke.  However, this is not very convenient and not
intuitive.  There are still many users who are surprised when they
discover that they can draw straight lines by holding shift while using
the pencil or brush.  There are probably even more users who do not
know how to use Edit->Stroke to draw some simple shapes.

Most of the other well-known image editing programs have such tools for
drawing rectangles, ovals, rounded rectangles and other simple shapes.
Having these as separate tool(s) allows more precise drawings and more
control over the shape and aspect ratio.
Comment 3 Hakon 2002-12-07 12:17:25 UTC
Thanks anyway, Ben... I didn't know the stroke-feature. :)
Comment 4 Simon Budig 2002-12-11 20:42:46 UTC
*** Bug 100971 has been marked as a duplicate of this bug. ***
Comment 5 Alan Horkan 2003-07-23 18:38:34 UTC
Changes at the request of Dave Neary on the developer mailing list.  
I am changing many of the bugzilla reports that have not specified a target
milestone to Future milestone.  Hope that is acceptable.  
Comment 6 Michael Natterer 2003-09-10 13:39:21 UTC
*** Bug 121897 has been marked as a duplicate of this bug. ***
Comment 7 TechChiq 2003-12-09 00:35:20 UTC
I have an idea... how about making the Filters/Render/Gfig include a button to 
export to a Path (vector) and support the .wmf format (in 1-bit b/w format) for 
starters? That way one could even convert, say, Paint Shop Pro vector graphics to 
.wmf in the Paint Shop Pro program, (it has a ton of nice vector shapes, btw), and 
then fire up Gimp and load the .wmf into Gfig and then press a "Create Path" 
button to actually recreate the vector object. It would be nice to also be able to 
size (using the skew and deformation tools, for example) the vector image then to 
any size without losing (much) detail. 
 
Later on (waaaay down the road, like Gimp 3.0 or something ;) you could consider 
importing also color fills, stroke, etc. into the vector shapes, or even gradient fills 
(Paint Shop Pro will allow solid colors and gradient fills as well as different stroke 
sizes in their vector format).  
 
Another idea would also be for styled lines (dashed lines, dotted lines, etc.) to be 
an addition to the type of "stroke" used. 
Comment 8 Sven Neumann 2003-12-09 00:56:11 UTC
We can import SVG; that's a lot more reasonable than using WMF here.
You should be able to export to SVG from Paint Shop Pro, import the
SVG paths into The GIMP and stroke them. You don't need GFig for this.

Dashed strokes are basically implemented. What's missing here is a GUI
only. Might even make it into 2.0 still.
Comment 9 Sven Neumann 2004-02-11 22:04:58 UTC
*** Bug 133966 has been marked as a duplicate of this bug. ***
Comment 10 Dave Neary 2004-05-06 10:22:09 UTC
So, I was thinking that this comes down to 2 things...

Add a polygon selection tool whcih behaves the same as the polygon mode of the
path tool, except that it automatically makes a selection, or the same as the
IScissors, exceot that it doesn't do anything very I.

Subclass the selection tools in general to make stroked selection tools, which
include the minimum of the stroke options in the tool options, and automatically
stroke a selection when it's finished.

Of course, this is a fairly dumb solution, and a number of the selection tools
options are totally irrelevant to this (the interesection modes and feather
settings come to mind, for example), and I haven't thought about the details.

How does this sound? And what are the glaring oversights in the plan?

Cheers,
Dave.
Comment 11 Sven Neumann 2004-05-06 10:30:36 UTC
You don't want to stroke the selection, you want to stroke the path. Please
let's not confuse this problem with selections. Selections are unrelated to this.
Comment 12 Dave Neary 2004-05-06 13:17:24 UTC
I meant selection.

Dave.
Comment 13 Sven Neumann 2004-05-06 13:31:46 UTC
And I meant that selections are unrelated to drawing shapes.
Comment 14 Dave Neary 2004-05-06 13:44:55 UTC
Considering that the best advice we gove to people right now for drawing
rectangles and ellipses is "make a selection and stroke it", I'm not sure I
follow your reasoning.

Dave.
Comment 15 Sven Neumann 2004-05-06 14:36:33 UTC
Look at the output of stroking an elliptical selection, then look at the output
of stroking an elliptical path. Then tell me again that stroking a selection is
the best advice.
Comment 16 Joao S. O. Bueno 2004-05-06 14:48:22 UTC
I believe that this tool could be related to  Vector Layers as well? (bug 6893) . 
Creating a new shape could leave it on a layer of it's own, just like the Text tool 
does now.  
 
As suggested in bug 6893, I will open a new bug to track vector layers 
implementation,  (I also told Simon I'd do this - open the enhacement report, 
not implementing it). 
 
Them, if you'd agree with what I said, this one could be marked as depending 
on that. 
Comment 17 Sven Neumann 2004-05-06 14:56:32 UTC
No, a shape tool doesn't depend on vector layers. Of course vector layers would
be nice to have also and it's related to the issue discussed here, but there's
no dependency. Also, openening more bugs is not going to solve anything. Why
don't you spend your time on fixing one or two bugs instead?
Comment 18 Joao S. O. Bueno 2005-01-11 13:33:48 UTC
*** Bug 163655 has been marked as a duplicate of this bug. ***
Comment 19 weskaggs 2005-03-13 16:08:34 UTC
*** Bug 170153 has been marked as a duplicate of this bug. ***
Comment 20 weskaggs 2005-08-25 17:43:11 UTC
*** Bug 314469 has been marked as a duplicate of this bug. ***
Comment 21 Sven Neumann 2005-09-22 14:03:53 UTC
*** Bug 316941 has been marked as a duplicate of this bug. ***
Comment 22 Martin Nordholts 2008-04-06 16:44:52 UTC
*** Bug 526518 has been marked as a duplicate of this bug. ***
Comment 23 Martin Nordholts 2008-06-21 21:29:30 UTC
*** Bug 539517 has been marked as a duplicate of this bug. ***
Comment 24 Martin Nordholts 2008-07-29 16:29:08 UTC
*** Bug 65195 has been marked as a duplicate of this bug. ***
Comment 25 Martin Nordholts 2008-07-29 16:30:20 UTC
I have duplicated Bug #65195 – Should be a specific tool for drawing straight lines against this one, adding support for drawing shapes should also include drawing lines.
Comment 26 Sven Neumann 2008-10-03 18:33:31 UTC
*** Bug 554894 has been marked as a duplicate of this bug. ***
Comment 27 Martin Nordholts 2008-11-08 20:09:01 UTC
Since we are likely to add basic support for vector layers in 2.8, let's put this on the 2.8 milestone for consideration.
Comment 28 Jim Michaels 2009-07-13 04:20:22 UTC
edit|Stroke is disabled when there's a background image, so it's totally useless to me.

I am also requesting vector shapes.  
hollow or filled shapes.  
shapes that can be filled with textures, gradients, or colors.
circles, ellipses, spirals, squares, rectangles, stars with N points of inner diameter D (there needs to be a default).
the squares and rectangles should have roundable corners as an option.
all at rotation of degree M.
of size S.
and please make it easy to do: possibly make the parameters available as another panel/palette.
someone else may want mitre joints, but that doesn't matter to me.  probably should put it in anyway.

so far all I have seen from the palette is a pen with some sort of spline between them (which I assume is Edit|stroke).  applaudable.  but not enough when you want to draw a regular shape.  keep that feature.
Comment 29 Jim Michaels 2009-07-13 04:35:12 UTC
and I forgot something: the shape's edges/strokes should be of thickness TH and should have their own color C2 or gradient G2 or texture T2.
I think you get the idea.  I think I got everything.
Comment 30 Michael Schumacher 2009-07-13 08:13:57 UTC
Edit->Stroke is found in the Edit menu.
Comment 31 Jim Michaels 2009-07-13 17:04:37 UTC
I had already said that, I has just said that when I had an image in the editor and tried to use edit|stroke from the menu, I discovered the menu item was disabled - grayed out.  I think that's an issueif I am supposed to be able to use it.  using windows version on XP Pro SP3 w 3GB RAM (plenty).
Comment 32 Michael Schumacher 2009-07-13 18:21:26 UTC
It isn't really obvious what you're currently trying to do - i.e. if you're currently playing with the vector layers patch or if you just don't know how the Edit->Stroke methods are used.
Comment 33 Jim Michaels 2009-07-14 00:36:21 UTC
it sounded like somebody was hinting that there was maybe was something different about Edit|Stroke as opposed to doing strokes from the tool palette, as if there were some hidden shapes you could create using Edit|Stroke.  I don't know if there is.(?)

this is not intuitive (why it is grayed out).  this would only make sense why it is acting this way if Edit|Stroke is not used for creating strokes but is only used for editing existing strokes.

I could be wrong, but I am dropping the Edit|Stroke subject since I know nothing about it except from a beginner-user standpoint.

sorry for all the extra banter. I am just hoping for some new regular shapes. please? :-)

and I agree, vector layers would be a nice addition. (you would also need vector->raster conversion)
Comment 34 Martin Nordholts 2009-09-27 18:16:34 UTC
*** Bug 596522 has been marked as a duplicate of this bug. ***
Comment 35 Martin Nordholts 2010-01-15 19:12:48 UTC
According to the current estimates we will not have time to implement this for 2.8. Postponing to 2.10.
Comment 36 Philip Gillißen 2010-03-16 19:15:18 UTC
This bug is almost 9 years old. Is this function so complicated? Are there plans/prototypes/branches for this?
Comment 37 Martin Nordholts 2010-03-16 19:26:48 UTC
Nothing is complicated, things just have different priorities. If you want to see this in GIMP, feel free to begin to drive this forward. One good start would be to merge the GSoC 2010 vector layer branch, see bug 557970. We'd appreciate any help we can get.
Comment 38 Martin Nordholts 2011-03-14 07:38:41 UTC
Low priority compared to things on our roadmap
Comment 39 Alexia Death 2011-10-03 16:31:55 UTC
*** Bug 660575 has been marked as a duplicate of this bug. ***
Comment 40 GrafxUser 2012-02-26 12:52:39 UTC
Hi,

for a longer time I missed easy usable shapes in GIMP. The current solution GFig is IMHO to unprecise and the integration of vector layers from GSoC 2010 is postponed for later (see https://bugzilla.gnome.org/show_bug.cgi?id=557970#c20). 
Since bug #613885 is solved, it's now possible to import vector paths from other programs. I used this chance and created some shapes with Inkscape to use in GIMP: rectangles, squares, polygons, circle, ellipses, arcs, pies, triangles, stars, wave, spiral, trapezoid. There are rectangles, sqares and stars with 'normal' and rounded corners. I think, that's enough for first and fulfills most of the needs.
Currently I'm unsure how to provide them to be easily accessible from the UI. Should I provide them in a subfolder of the source's data-folder or via Gimpstuff?

Thanks in advance.
Comment 41 yousifjkadom 2017-04-22 08:01:00 UTC
Hi. I was in near from file a duplication of this bug before I read this !!

Hold "shift" with brash & "pencil" & you will be able to add lines !!! This is very hidden aspect !!

One of GIMP negative aspect is that it contain many many powerful functions but available in unusual way !!

If you decide to add "Shapes" tool, please including lines, & arrows also.

Shift holding feature enable to add lines but not arrows ...... .
Comment 42 Michael Schumacher 2017-04-22 10:02:18 UTC
See comment 37 - if someone helps us to finish the vector layers, this will become a lot easier to add.
Comment 43 GNOME Infrastructure Team 2018-05-24 10:37:04 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gimp/issues/12.