Seadragon Ajax image rotation?
Are there plans to allow rotation of images in Seadragon Ajax? Or is there a way to add a custom control for this?
3
people like this idea
I like this idea!
Tell me when this idea gets some attention.
The more people who like this idea, the more it gets noticed.
The more people who like this idea, the more it gets noticed.
The company has this under consideration.
The best point from the company
-
Unfortunately, image rotation isn't possible with the regular <img> tag. Since that's what we use in most browsers, image rotation isn't something you can do with just a custom control right now.
In the future, we can theoretically do image rotation with the HTML 5 <canvas> element, but IE doesn't support that yet. On the flip side, we can get image rotation in IE with VML or even filters. That would require a lot more special-casing and browser-specific code, though, which we'd prefer to avoid.
If it's what people want, though, we can certainly think about it. I'm curious to know what kinds of applications you think could benefit from having image rotation. It's actually not supported in Silverlight Deep Zoom, either, so we didn't consider it a core requirement.
Thanks for your input!
By the way, I wrote a blog post about how we differ across browsers if you're interested in learning more.
I’m interested
The company and 1 other person think
this is one of the best points
-
Inappropriate?If I understand right, you want to be able to arbitrarily rotate and image within the Seadragon Ajax control?
Unfortunately we don't have this implemented at the moment. It would be something really fun and cool to have, but without universal <canvas> support in all browsers, it would be non-trivial.
You may be able to add this custom control using the canvas tag, but it wouldn't have universal support in modern browsers.
Naturally Aseem and Boyd might have other ideas for you.</canvas>
I’m kinda wishing we could do rotation too
1 person thinks
this is one of the best points
-
Inappropriate?Unfortunately, image rotation isn't possible with the regular <img> tag. Since that's what we use in most browsers, image rotation isn't something you can do with just a custom control right now.
In the future, we can theoretically do image rotation with the HTML 5 <canvas> element, but IE doesn't support that yet. On the flip side, we can get image rotation in IE with VML or even filters. That would require a lot more special-casing and browser-specific code, though, which we'd prefer to avoid.
If it's what people want, though, we can certainly think about it. I'm curious to know what kinds of applications you think could benefit from having image rotation. It's actually not supported in Silverlight Deep Zoom, either, so we didn't consider it a core requirement.
Thanks for your input!
By the way, I wrote a blog post about how we differ across browsers if you're interested in learning more.
I’m interested
The company and 1 other person think
this is one of the best points
-
Inappropriate?Hey guys, thanks for the quick replies. My use case involved a lot of images that haven't necessarily been looked at by people before they're available to the end user, and which may be oriented incorrectly. So, rotation would allow the user to correct the situation if they need to. All I really need is to rotate 90, 180 or 270 degrees, but arbitrary rotation would be hella sweet, and probably more useful to more people.
On the one hand, I understand not wanting to clutter your codebase with a whole bunch of browser-specific code. But on the other, since I'm not writing it, if you come to the point where you're considering new features, consider this a vote for arbitrary image rotation :). Otherwise, I'll just add this to the list of reasons I can't wait for widespread canvas support.
But anyway, thanks again. And Aseem, I found your blog post very helpful in bringing me up to speed on the cross-browser issues you guys are facing. Thanks.
1 person thinks
this is one of the best points
-
Inappropriate?I, too, would consider this a huge value-add, considering the mapping applications of Seadragon, even if no other use cases.
For other use cases, though, a photo sharing site where a flickr|facebook | iPhoto|Windows Live Photo Gallery|Picasa face tagging system was implemented in tandem with a Photosynth or HD View linking|bookmarking system, the result would be great for zooming to people's faces and rotating the image so that their face appears right side up for the dynamic closeup.
I’m happier when we see this.
-
Inappropriate?There hasn't been any change here, but I definitely agree that rotation in Seadragon Ajax would be powerful. If I get some time I'll play around with some ideas I have.
One of the biggest challenges to actually releasing an API for rotation, btw, is that the viewport math gets significantly trickier. Right now the viewport is represented as a rect that has x, y, width and height. But if the viewport/image is rotated, the rect is no longer a simple x, y, width and height (e.g. the left edge of the rect won't have the same x on all of its points).
Nonetheless, I'll see what I can come up with. Don't hold your breath though; there's a ton of other cool stuff on my plate currently. =)
-
Inappropriate?Hi Aseem,
I have a working implementation of rotation in Seadragon when using canvas. The performance is horrible in IE using excanvas though, so I'm working on a VML solution as well.
As for the bounding rect problem - I kind of sidestepped it by just increasing the size of the rect to include the corners of the rotated image. Not an awesome solution, but I didn't notice any performance degradation in browsers with a native canvas implementation.
Anyway, if you're interested to see what I've done, and to save yourself a little remedial trigonometry, let me know.
I’m pleased
-
Inappropriate?Awesome! I love the community. =)
Did you modify the open-source ASP.NET AJAX version? Or our standalone version, which isn't fully open-source?
If the latter, there are some legal issues at play. If you let me see your code, you'd be giving the IP away to us. If that's ok with you, bring it on -- I'd love to see!
I’m amused
-
Inappropriate?I just grabbed a javascript file off of seadragon.com, which I'm guessing is the standalone version. I'll have to check with my employer about the IP thing - I'll get back to you.
I’m hopeful
-
Inappropriate?Aseem,
Can you clarify what you mean about the standalone version not being fully open source? The only references to licensing I can find apply to the ASP.NET AJAX version being under the MS-PL. Has the licensing for the standalone version been decided yet?
Just anticipating pushback from my boss :)
I’m bureaucratic
Loading Profile...



EMPLOYEE
EMPLOYEE

