Gmail Image Rotator Userscript

If I keep running into a technical problem and it is annoying enough for me to throw together a solution, then I’m certain there are others who would appreciate a workaround as well. In this case, any pictures someone sends to my Gmail from an iOS device are rotated 90 degrees to the left. The in-message preview looks fine, but if I open up the detail view, they are inevitably sideways. Odd that it only seems to be a problem for Apple devices…

So I put together this userscript which rotates the image 90 degrees clockwise each time it is clicked. It’s a quick and dirty solution, for sure, but it beats craning my neck just to view attached images. Should work for Chrome natively and Firefox with GreaseMonkey, but let me know if you try and have any issues.

You can download/install it here.

Edit 01/26/12: Google recently changed the subdomain used to view image attachments. Script updated to work on new subdomain.

Advertisement

16 Responses to Gmail Image Rotator Userscript

  1. vivian says:

    I’d been using the image rotator for a few months, and then suddenly it stopped working. I’ve removed it and re-downloaded it from your link, above, but it still doesn’t work. Any help?

  2. Danya says:

    Thank you!

  3. Seth Crosby says:

    I tried this. Works great in Chrome. In FF the default click is ‘actual size’ (the cursor becomes a little magnifying-glass with a plus-sign in the lens). Any way to over-ride the actual-size function?

    • Seth Crosby says:

      It is installed correctly using GM.

      • ty.delong says:

        Yeah I see that it’s still not working in FF. I even threw an alert() in there, and it doesn’t seem the script is firing at all for me with Greasemonkey. I’ll see if I can get it working.

      • ty.delong says:

        Hmm I’m not sure what the problem is, Seth. The script won’t fire off for me at all using Greasemonkey. I even copied some examples from userscripts.org, and still nothing.

        If anyone wants to tweak it so it works with Greasemonkey, that would be awesome.

  4. Mike says:

    I tried this with Firefox 8.0 and Greasemonkey and it didn’t seem to work. Is it just me?

    • ty.delong says:

      I haven’t tried that setup yet. (Chrome is my main browser.) I’ll try to mess with it in the next few days. Thanks for the heads up.

    • ty.delong says:

      Well you are correct, Chris. Turns out I accidentally overwrote the script at that URL back in September. No wonder it wasn’t working for you. Fixing now!

  5. [...] on an attached image, it opens in a new window, but roated 90° left.   Henk van Ess http://tydelong.wordpress.com/20… – elaborate solution (with Greasemonkey) , but it works.This answer .Please specify the necessary [...]

  6. Chris Klose says:

    Finally. This has been annoying me forever. Thank you so much for posting this script!

    • ty.delong says:

      So glad someone else can put it to use :) If I get a few more together, I’ll start posting them on userscripts.org. Didn’t want to open an account for just one, though.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.