Offset (plugin?) Like Photoshop

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
Chani
Posts: 4
Joined: Thu Jun 07, 2018 8:52 am

Offset (plugin?) Like Photoshop

Post by Chani »

Is there any way to offset an image by a given amount of pixels, in the same way that the Photoshop offset command works?

I have searched online and in these forums but cannot find anything other than a feature request from 2010 from someone asking for an Offset feature to be added.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

could you post a screenshot?
Pierre.
Chani
Posts: 4
Joined: Thu Jun 07, 2018 8:52 am

Re: Offset (plugin?) Like Photoshop

Post by Chani »

So the attached screenshot shows the original image on the bottom and then the desired 'offset' image on the top using the Photoshop'offset' filter. I want to be able to move the image by a specific amount of pixels in either direction (left or right) and have the image wrap around.
Attachments
offset example.jpg
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

ok, it move only the picture, right?
Pierre.
Chani
Posts: 4
Joined: Thu Jun 07, 2018 8:52 am

Re: Offset (plugin?) Like Photoshop

Post by Chani »

xnview wrote: Thu Jun 07, 2018 10:01 am ok, it move only the picture, right?
Yes, that is correct, all it does is move the picture with a wraparound.
Chani
Posts: 4
Joined: Thu Jun 07, 2018 8:52 am

Re: Offset (plugin?) Like Photoshop

Post by Chani »

So I'm guessing then that there is nothing within the software (or a plugin) at this stage that will be able to do this 'offset'?

I can do it in Photoshop but I have other settings in the XnConvert that I apply at the same time so it would be very useful to keep it all within XnConvert.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

currently there is no such feature...
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1662
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Offset (plugin?) Like Photoshop

Post by m.Th. »

You really need to put in the Horizontal and Vertical widgets (Edit Spin Box and Sliders) as maximum value the 2xWidth and 2xHeight respectively.

You have now 6000 which could be too low and besides that we have the opposite extreme: for a very small image such high values produce problems for the „wrap around” option because it appears black instead of really wrapping around the image confusing the user. All these problems can be avoided by putting 2xH and 2xW there.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Offset (plugin?) Like Photoshop

Post by xnview »

m.Th. wrote: Tue Sep 17, 2019 4:45 pm You really need to put in the Horizontal and Vertical widgets (Edit Spin Box and Sliders) as maximum value the 2xWidth and 2xHeight respectively.
right
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1662
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Offset (plugin?) Like Photoshop

Post by m.Th. »

In 0.94b2 is better. However:

Wrap Around setting has problems with negative values:
- Horizontal negative + Vertical 0: Doesn't work at all
- Vertical negative + Horizontal 0: is like an Overwrite not like an Offset

Repeat edges pixels setting works ONLY if BOTH values (Horizontal AND vertical) are different from 0.
m. Th.

- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Post Reply