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 557970 - Merge vector layers GSoC Project
Merge vector layers GSoC Project
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: General
unspecified
Other All
: High enhancement
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 68915 738348 (view as bug list)
Depends on:
Blocks: 68915
 
 
Reported: 2008-10-26 15:15 UTC by Michael Natterer
Modified: 2018-05-24 12:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The remaining patch (75.81 KB, patch)
2008-10-26 15:17 UTC, Michael Natterer
none Details | Review
Updated patch (75.81 KB, patch)
2008-10-28 17:49 UTC, Michael Natterer
none Details | Review
Next version (76.14 KB, patch)
2008-10-29 19:57 UTC, Michael Natterer
none Details | Review
Updated for recent GimpItem API changes (76.15 KB, patch)
2008-11-07 19:55 UTC, Michael Natterer
none Details | Review
soc-2006-vector-layers-8.patch (76.24 KB, patch)
2008-12-20 16:24 UTC, Martin Nordholts
needs-work Details | Review
0001-WiP-of-Vector-Layers-from-GSoC-2006.patch (78.39 KB, patch)
2009-05-18 17:01 UTC, Martin Nordholts
needs-work Details | Review
0001-WiP-of-Vector-Layers-from-GSoC-2006.patch (78.52 KB, patch)
2009-08-09 06:38 UTC, Martin Nordholts
needs-work Details | Review
0002-WiP-Undo-for-GSoC-2006-Vector-Layers.patch (21.50 KB, patch)
2009-08-09 19:35 UTC, Martin Nordholts
needs-work Details | Review
Patch to merged Vectors Layers in current git master. (18.01 KB, application/x-gzip)
2010-05-20 00:17 UTC, Gilles Rochefort
  Details
Vectors Layers combined with layer groups (175.92 KB, image/jpeg)
2010-05-20 00:23 UTC, Gilles Rochefort
  Details
Patches to merge vector layers in current git master (including undo support) (19.79 KB, text/plain)
2010-05-27 10:38 UTC, Gilles Rochefort
  Details
Vector Layers support and undo fixes. (21.99 KB, application/x-compressed-tar)
2010-07-24 01:28 UTC, Gilles Rochefort
  Details
0003-Fixes-Compilation-and-linking-issues (2.41 KB, patch)
2017-12-29 21:36 UTC, Michael Schumacher
none Details | Review
0004-Creates-vector-layers-from-the-vector-tool-dialog (3.38 KB, patch)
2017-12-29 21:37 UTC, Michael Schumacher
none Details | Review
0005-Adding-discard-vector-informations-undo-support (1.31 KB, patch)
2017-12-29 21:38 UTC, Michael Schumacher
none Details | Review
0006-Adding-memsize-support-to-gimpvectorlayer (3.64 KB, patch)
2017-12-29 21:39 UTC, Michael Schumacher
none Details | Review
0007-FIX-Render-vector-layer-preserves-layer-s-name (2.15 KB, patch)
2017-12-29 21:39 UTC, Michael Schumacher
none Details | Review
0008-Adding-undo-support-to-vector-layers-fill-stroke (1.43 KB, patch)
2017-12-29 21:40 UTC, Michael Schumacher
none Details | Review
0009-Remove-has_alpha-field (959 bytes, patch)
2017-12-29 21:40 UTC, Michael Schumacher
none Details | Review
0010-Remove-signal-is-moved-from-GimpVectorLayerOptions-t (8.25 KB, patch)
2017-12-29 21:41 UTC, Michael Schumacher
none Details | Review
0011-Grouping-both-undo-Remove-path-and-discard-vector-la (912 bytes, patch)
2017-12-29 21:42 UTC, Michael Schumacher
none Details | Review
0012-Cleaning-code (1.07 KB, patch)
2017-12-29 21:43 UTC, Michael Schumacher
none Details | Review

Description Michael Natterer 2008-10-26 15:15:18 UTC
I have cleaned up the patch considerably and already committed lots of code
that is of general usefulness. What remains is the actual vector layer code.

I will attach a patch on top of current SVN.
The branch is hereby declared dead.
Comment 1 Michael Natterer 2008-10-26 15:17:09 UTC
Created attachment 121382 [details] [review]
The remaining patch
Comment 2 Michael Natterer 2008-10-28 17:49:17 UTC
Created attachment 121525 [details] [review]
Updated patch

Updated for trunk, fixes some leaks and some coding style.
Comment 3 Michael Natterer 2008-10-29 19:57:53 UTC
Created attachment 121595 [details] [review]
Next version

Correctly stroke and fill even if there is a selection.
Comment 4 Michael Natterer 2008-11-07 19:55:47 UTC
Created attachment 122203 [details] [review]
Updated for recent GimpItem API changes
Comment 5 Martin Nordholts 2008-12-20 16:24:00 UTC
Created attachment 125052 [details] [review]
soc-2006-vector-layers-8.patch

Updated patch that applies cleanly to trunk. Other than that the state is the same; before commiting Undo needs to work, currently it is broken.
Comment 6 Martin Nordholts 2009-05-18 17:01:31 UTC
Created attachment 134880 [details] [review]
0001-WiP-of-Vector-Layers-from-GSoC-2006.patch

Updated patch for GNOME master, apply with `git am file.patch'.

The only change is the use of gimp_drawable_get/set_tiles() instead of accessing those members directly since they are not exposed any longer.
Comment 7 Martin Nordholts 2009-08-09 06:38:26 UTC
Created attachment 140257 [details] [review]
0001-WiP-of-Vector-Layers-from-GSoC-2006.patch

Updated for git master (added GIMP_IMAGE_ACTIVE_PARENT to gimp_image_add_layer() call.
Comment 8 Martin Nordholts 2009-08-09 19:35:51 UTC
Created attachment 140280 [details] [review]
0002-WiP-Undo-for-GSoC-2006-Vector-Layers.patch

Initial code for undo that compiles. I could only stand hacking on this for a few hours, it almost bored me to death :P

It's copied and modified code for the text layer undo. Perhaps we should abstract GimpTextUndo and base both GimpTextUndo and GimpVectorLayerUndo on the result. Probably not worth polishing the current undo system since we will need to rewrite it for GIMP 3.0 anyway.
Comment 9 Michael Natterer 2009-08-09 22:29:18 UTC
I know that "rewrite" and "redesign" are your favorite words, but
why exactly did the undo system need a redesign again?
Comment 10 Martin Nordholts 2009-08-10 05:35:55 UTC
To allow undo trees instead of just undo stacks, to allow macro recording in a sane way, and to make code more local and self contained. Right now undo code is all over the place. We need a GimpCommand with GimpCommand::execute() and GimpCommand::undo().
Comment 11 Michael Natterer 2009-08-10 11:50:26 UTC
I agree with parts of that, but let's discuss that when i'm back from
vacation ;)
Comment 12 Martin Nordholts 2010-01-15 20:11:17 UTC
*** Bug 68915 has been marked as a duplicate of this bug. ***
Comment 13 Gilles Rochefort 2010-05-20 00:17:43 UTC
Created attachment 161505 [details]
Patch to merged Vectors Layers in current git master.



What is it : 
* Integration of the previous vectors layers patches onto current git master HEAD
* Fixes compilation and linking issues
* Enabling "Create Vector Layer" push button from vectors tool dialog.

I guess it is really promising to have such a feature in gimp, but UI still needs improvements.
Comment 14 Gilles Rochefort 2010-05-20 00:23:09 UTC
Created attachment 161507 [details]
Vectors Layers combined with  layer groups


Using Vectors Layers in combination with layers group is really nice to have !
Comment 15 Martin Nordholts 2010-05-20 16:53:08 UTC
We still need to get undo to work properly before we can merge it to git master.
Comment 16 Gilles Rochefort 2010-05-27 10:38:34 UTC
Created attachment 162085 [details]
Patches to merge vector layers in current git master (including undo support)


Updated my previous patch series, with what i think is the minimal undo support for vector layers. 

what have been done :
* Rebasing old vector layer patches onto up to date git master 
* fixes compilation and linking issues.
* layer vectors can be created directly from the vector tool option dialog.
* Support for undo ( discard vector layer informations )
* Allows vector layers to have different names and to keep them different.
* Support for more undo ( fill/stroke vector layer options )
Comment 17 Martin Nordholts 2010-05-27 16:59:28 UTC
Comment on attachment 162085 [details]
Patches to merge vector layers in current git master (including undo support)

Thanks, but still needs work:

1. Create a new image
2. Create a path
3. Create a layer from that path
4. Change fill color to red
5. Undo until initial satte of image
6. Redo as far as you can

Expected result:
Red fill color

Actual result:
Fill color still default white

(removing 'patch' status because bugzilla chokes on non-diff patches when you try to review them)
Comment 18 Martin Nordholts 2010-06-22 06:36:29 UTC
I'm updating the 2.8 schedule and we won't have time to fix and stabilize this for 2.8, moving to 2.10.
Comment 19 Gilles Rochefort 2010-07-24 01:28:03 UTC
Created attachment 166472 [details]
Vector Layers support and undo fixes.

Hi, 

Finally after some time, I guess I fixed most of the undo issues. 

At least, the undo/redo as far as you can reported by Martin, and another issue when removing only the path. 

Anyway, I agree with Martin that vector layers need more testings (and probably a re-design of the UI...) and have to be moved to the 2.10
Comment 20 Martin Nordholts 2011-03-14 07:25:34 UTC
Low priority compared to things on our roadmap, moving to Future
Comment 21 Philip Horger 2012-12-05 20:03:41 UTC
Hi everyone. I really, really want to be able to use vector layers, so I'm sponsoring it via FreedomSponsors for $20. Hopefully it'll catch more attention and the bounty will go up.

http://www.freedomsponsors.org/core/issue/86/gimp-vector-layers

Once you solve it (according to the acceptance criteria described there), just create a FreedomSponsors account and mark it as resolved (oh, you'll need a Paypal account too). Then I'll have a look and pay up.
Comment 22 Bastian Ilsø 2012-12-06 10:59:10 UTC
I'm supporting Philip Horger on this. Added $10 to the bounty at FS. Regards Bastian.
Comment 23 Luke 2013-08-26 03:38:41 UTC
Also adding $10 to the bounty. Keep up the good work, this sounds like a nice feature.
Comment 24 Michael Schumacher 2014-10-11 15:23:22 UTC
*** Bug 738348 has been marked as a duplicate of this bug. ***
Comment 25 csongor 2014-12-02 02:51:52 UTC
Is there anything happening to this request? It would be really nice to have vector layers in GIMP, similarly to Paint Shop Pro, which has been supporting them for more than a decade.

For example, if I have a dark blue rectangle with a 6-pixel-wide light blue border and I want to make the dark blue area wider then I cannot do it in gimp easily. In PSP I just have to modify some numerical attributes of the vectorial object. 

I know there is Inkscape for vectoral drawings but if I want to use vectorial and non-vectorial parts as well within an image then none of them is an option.
Comment 26 Michael Schumacher 2017-12-29 21:36:25 UTC
Created attachment 366092 [details] [review]
0003-Fixes-Compilation-and-linking-issues
Comment 27 Michael Schumacher 2017-12-29 21:37:59 UTC
Created attachment 366093 [details] [review]
0004-Creates-vector-layers-from-the-vector-tool-dialog
Comment 28 Michael Schumacher 2017-12-29 21:38:28 UTC
Created attachment 366094 [details] [review]
0005-Adding-discard-vector-informations-undo-support
Comment 29 Michael Schumacher 2017-12-29 21:39:09 UTC
Created attachment 366095 [details] [review]
0006-Adding-memsize-support-to-gimpvectorlayer
Comment 30 Michael Schumacher 2017-12-29 21:39:48 UTC
Created attachment 366096 [details] [review]
0007-FIX-Render-vector-layer-preserves-layer-s-name
Comment 31 Michael Schumacher 2017-12-29 21:40:21 UTC
Created attachment 366097 [details] [review]
0008-Adding-undo-support-to-vector-layers-fill-stroke
Comment 32 Michael Schumacher 2017-12-29 21:40:55 UTC
Created attachment 366098 [details] [review]
0009-Remove-has_alpha-field
Comment 33 Michael Schumacher 2017-12-29 21:41:30 UTC
Created attachment 366099 [details] [review]
0010-Remove-signal-is-moved-from-GimpVectorLayerOptions-t
Comment 34 Michael Schumacher 2017-12-29 21:42:00 UTC
Created attachment 366100 [details] [review]
0011-Grouping-both-undo-Remove-path-and-discard-vector-la
Comment 35 Michael Schumacher 2017-12-29 21:43:02 UTC
Created attachment 366101 [details] [review]
0012-Cleaning-code
Comment 36 Michael Schumacher 2017-12-29 21:46:48 UTC
Sorry for the spam, but it is much better to have this set of patches readily available for statistics and review.
Comment 37 Jehan 2018-02-28 00:47:30 UTC
Setting 2.10 milestone. I'll review these patches after 2.10 release, and hopefully (if all looks fine), this may happen for a 2.10.x.
Comment 38 Alexandre Prokoudine 2018-03-07 09:56:42 UTC
If it applies cleanly to master, maybe push it to a branch?
Comment 39 GNOME Infrastructure Team 2018-05-24 12:26:42 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/282.