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 55367 - Rotated view of the canvas (view is rotated, not image contents)
Rotated view of the canvas (view is rotated, not image contents)
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: User Interface
git master
Other All
: Normal enhancement
: 2.10
Assigned To: GIMP Bugs
GIMP Bugs
: 615644 627065 697352 (view as bug list)
Depends on: 76096
Blocks:
 
 
Reported: 2001-05-28 13:38 UTC by Raphaël Quinet
Modified: 2013-04-20 13:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GUI mockup (114.32 KB, image/png)
2012-07-17 21:26 UTC, Doxin
Details

Description Raphaël Quinet 2001-05-28 13:38:53 UTC
The Gimp already offers some Model/View separation in that it allows you
to work on the same image at different scales and offsets, even with
non-square pixels.  But currently it does not not allow you to view it at
a different rotation angle (unless you actually rotate the image and
therefore modify the contents permanently).

It would be nice to be able to rotate the view without affecting the
image itself.  Corel Painter 6 has such a feature.  A vertical or
horizontal line (in the view) would be drawn at the opposite angle (in
the image).  This would also be nice for the rectangle selection.

This implies a major rewrite of the tools and canvas code, because most
of the code still assumes that the mapping between the display and
drawable is only affected by the scale and offset, not by any rotation.

Roy Katz <katz@Glue.umd.edu> wrote in comp.graphics.apps.gimp:
> 5.  Temporary canvas rotation
> 
> I find it easier to draw curves in a single
> direction.  Fractal/Metacreations/Corel Painter offers a feature whereby
> one can rotate the canvas and continue drawing.   What is so hard
> about doing that in GIMP? that would *really* help me...
Comment 1 Michael Natterer 2001-06-18 22:27:19 UTC
Reassigned to current CVS because it's a wishlist item.
Comment 2 thorwil 2004-05-22 15:03:37 UTC
Since this is such an old request, I would like to bring it to attention again.

Being able to rotate the view is very important for effective work with a
drawing tablet. On paper one often turns it to draw curves in the easiest
position. Realy a killer feature.

It should be easy to rotate the view as well as set it back to 0 degrees.
Rotation should (additionaly) be controlable in the Navigator window. I'm
willing to work on mockups, if somebody is going to implement it.
Comment 3 Sven Neumann 2004-05-22 15:28:00 UTC
I doubt that someone wants to go through the hazzle of implementing this but of
course I don't want to discourage you. Please do a mockup of the GUI to control
the canvas rotation.
Comment 4 Sven Neumann 2004-06-04 09:59:02 UTC
What would have to be done before we can even consider to implement a rotated
view on the canvas is to implement a filtered view on the projection instead of
the simple-minded nearest-neighbour implementation that we use now. See also bug
#76096.
Comment 5 Ejner Fergo 2008-03-05 01:45:29 UTC
I have wished for this a long time, and hope it is not out of reach. This is a very important feature, especially when drawing straight lines, which is most naturally done at an angle - vertical/horizontal lines are awkward to do on a fixed canvas. This feature is not related to the Shift-modifier, since that is only useful for _perfectly_ straight lines (guess you understand already, but just to make sure).

I'm surprised how old this request is, and want to bring it up again. Maybe something possible for GIMP 2.6?

Thanks.
Comment 6 Sven Neumann 2008-03-05 07:56:35 UTC
I don't think there is much interest among the core developers for this feature. So if it is important for you, then you should implement it and contribute a patch. Or convince someone else to implement it for you. You could hire a developer for example.
Comment 7 Ejner Fergo 2008-03-05 13:39:21 UTC
I am in no way a developer, so I can't implement it. Where and how can I hire a developer who is familiar with GIMP code, and how much am I expected to pay (how much time is necessary)? I am not "cheap", but if it is something that will take from now to the GIMP 2.6 release, x hourly salary, I'm less willing to pay...
Comment 8 Sven Neumann 2008-03-05 19:44:52 UTC
Up to you to hire a developer. We cannot help you with that.
Comment 9 Michael Schumacher 2010-04-13 13:24:30 UTC
*** Bug 615644 has been marked as a duplicate of this bug. ***
Comment 10 Martin Nordholts 2010-08-16 17:32:57 UTC
*** Bug 627065 has been marked as a duplicate of this bug. ***
Comment 11 Aaron Paden 2012-07-05 10:16:50 UTC
This is a pretty core feature, IMO. Surprised it hasn't been implemented yet. I see a lot of people using GIMP for art having to use the current transform tools in an unnatural way. I do know some programming (I'm still studying), but I'm not all that familiar with GIMP or its internals. I'm cloning it now and will have a look. No promises, but I might try working towards this goal. Anyone willing to fill me in a bit more about the problem Sven mentioned?
Comment 12 Doxin 2012-07-17 21:26:21 UTC
Created attachment 219072 [details]
GUI mockup
Comment 13 Bastian Ilsø 2012-12-06 12:14:02 UTC
I would like to sponsor the implementation of this feature with $70. This is definitely not enough but it's what I can afford as a student. My hope is that I'm not the only one longing for this feature - hopefully someone else will chime in as well.

http://www.freedomsponsors.org/core/issue/87/rotated-view-of-the-canvas-view-is-rotated-not-image-contents

Best Regards,
Bastian
Comment 14 Michael Natterer 2013-04-05 13:26:00 UTC
*** Bug 697352 has been marked as a duplicate of this bug. ***
Comment 15 Michael Natterer 2013-04-20 13:14:58 UTC
Still needs some polishing, but the basics are there and work fine,
closing as FIXED.

commit b3a9a6a3e39567cd801b92bca5dfae5a37eb4193
Author: Michael Natterer <mitch@gimp.org>
Date:   Fri Apr 19 16:22:19 2013 +0200

    Bug 55367 - Rotated view of the canvas (view is rotated, not image contents)
    
    First version of display rotation, inspired by gimp-painter.
    The rotation always happens around the image's center.
    
    The only "UI" for rotating is currently shift+middle-drag and
    shift+space-drag. Control constrains the angle to 15 degrees
    and is currently the only way to go back to "no rotation".

 app/display/Makefile.am                    |    2 +
 app/display/gimpcanvasitem.c               |   11 ++-
 app/display/gimpdisplay.c                  |    5 +-
 app/display/gimpdisplayshell-callbacks.c   |   21 +++--
 app/display/gimpdisplayshell-draw.c        |   45 ++++++++-
 app/display/gimpdisplayshell-items.c       |   38 +++++++-
 app/display/gimpdisplayshell-rotate.c      |  201 ++++++++++++++++++++++++++++++++++++++++
 app/display/gimpdisplayshell-rotate.h      |   51 ++++++++++
 app/display/gimpdisplayshell-scroll.c      |    3 +
 app/display/gimpdisplayshell-selection.c   |    6 ++
 app/display/gimpdisplayshell-tool-events.c |   51 +++++++---
 app/display/gimpdisplayshell-transform.c   |  125 ++++++++++++++++++++++++-
 app/display/gimpdisplayshell-transform.h   |   19 ++++
 app/display/gimpdisplayshell.c             |   20 +++-
 app/display/gimpdisplayshell.h             |    6 ++
 15 files changed, 568 insertions(+), 36 deletions(-)