Page 1 of 1
Changing the angle of an image breaks zoom
Posted: Sat Jan 19, 2013 1:18 am
by magice
I have been working on a simple full screen image viewer as part of another stack. The viewer needs to be able to zoom the image and rotate it 90 degrees either direction. I have written a zoom script that works well with a slider. I tried to use "rotate image" but kept getting an error message that the image was not editable. After a bit of research I found "set angle" and used that to make rotation buttons. The problem is, after I rotate the image, the zoom will no longer work. What changes in an image after its angle is changed that would prevent zooming.
Re: Changing the angle of an image breaks zoom
Posted: Sat Jan 19, 2013 2:59 am
by sturgis
Does indeed seem that you can't change the size of an angled image. You might need to work with snapshots instead. Angle the image, take a snapshot, then size the snapshot as needed. Keep the original tucked away to use it for a clean source.
Re: Changing the angle of an image breaks zoom
Posted: Sat Jan 19, 2013 5:04 am
by magice
sturgis wrote:Does indeed seem that you can't change the size of an angled image. You might need to work with snapshots instead. Angle the image, take a snapshot, then size the snapshot as needed. Keep the original tucked away to use it for a clean source.
I think you are on to something there. I was hoping for a more direct solution, but that may be how i have to do it.
Re: Changing the angle of an image breaks zoom
Posted: Mon Feb 04, 2013 9:20 am
by PBH
I struggled with finding a suitable answer to this too, so I created a sample stack to show the workaround solution and posted it on RevOnline. The file uses snapshots as temp images to show the rotation as Sturgis suggests, it's not perfect, but the script is well commented, so should help anyone trying to achieve the same. Link hereā¦
http://revonline2.runrev.com/stack/685/ ... e-an-Image
I hope RunRev will improve this issue in future, I've asked, but if no-one else requests it, they probably won't.
Paul