Move an image while clipped

Post questions on how to use or achieve an effect in Inkscape.
Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Move an image while clipped

Postby Vectorator » Wed Feb 18, 2015 1:37 pm

I have an image that I have clipped with a rectangle which displays about 10% of the image.

Is it possible to move the image while the clip is still active? So I can change the part of the image that is visible without changing the clip position or size.

I know I can achieve this by simply unclipping and reclipping but I just wondered if there is a way to do it while clipped.

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Move an image while clipped

Postby ragstian » Wed Feb 18, 2015 2:09 pm

Hi.

Yes and no.
I don't know of any way to do this on the canvas but you can change the position
of the image to show a different part by using the XML editor - (Ctrl Shift X).
Changing the X and Y values of the image part will move it in relation to the clip path.
See Example - the bottom image has been moved by the XML editor only:
Image
Last edited by ragstian on Sat Feb 28, 2015 3:19 am, edited 2 times in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Move an image while clipped

Postby tylerdurden » Wed Feb 18, 2015 2:14 pm

If you put the object(s) in a group before clipping, the group can be entered with a double click and the contents of the group moved, without moving the clip object.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Move an image while clipped

Postby ragstian » Wed Feb 18, 2015 2:21 pm

Hi.
tylerdurden wrote:If you put the object(s) in a group before clipping, the group can be entered with a double click and the contents of the group moved, without moving the clip object.


Smart!! Nice to know!

To Vectorator; Sorry for my incorrect answer!
Egg on my face! (again :oops: ) A lot to learn (from) here!
Last edited by ragstian on Sat Feb 28, 2015 3:19 am, edited 1 time in total.
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Move an image while clipped

Postby tylerdurden » Wed Feb 18, 2015 2:26 pm

IIRC, I learned that from Lazur, credit goes there. ;-)

Edit: even groups within groups works.
Last edited by tylerdurden on Wed Feb 18, 2015 3:00 pm, edited 1 time in total.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

Re: Move an image while clipped

Postby Vectorator » Wed Feb 18, 2015 2:31 pm

Wow nice trick, thanks, that is exactly what I wanted, you can rescale the image also.

It's also very good to know about the xml editing ability to change properties also, it might also come in handy.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Move an image while clipped

Postby Xav » Wed Feb 18, 2015 8:24 pm

This trick is covered at length in part 32 of my tutorial series: viewtopic.php?f=6&t=11981
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Move an image while clipped

Postby Lazur » Wed Feb 18, 2015 8:44 pm



Return to “Help with using Inkscape”