搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

How can I rotate a jpg file without saving it first

  • 1 个回答
  • 1 人有此问题
  • 2 次查看
  • 最后回复者为 cor-el

more options

I frequently have to view student's work uploaded as jpg files, and often they have uploaded the file sideways or upside down. Is there a way to rotate the file without saving it to my computer first (like we can with a pdf file)

I frequently have to view student's work uploaded as jpg files, and often they have uploaded the file sideways or upside down. Is there a way to rotate the file without saving it to my computer first (like we can with a pdf file)

所有回复 (1)

more options

It is possible to rotate the image via CSS with img {-moz-transform: rotate(90deg);} (90deg, -90deg, 180deg) if you open the image in a tab via the right-click context menu (middle-click View Image).

You can do that with bookmarklets like these (doesn't work via the location, but does via the Scratchpad, Shift+F4):


javascript:(function(){var doc=document,css=doc.createElement('LINK');css.rel='stylesheet';css.type='text/css';css.href='data:text/css,img {-moz-transform: rotate(90deg);}';doc.documentElement.childNodes[0].appendChild(css);})();

javascript:(function(){var doc=document,css=doc.createElement('LINK');css.rel='stylesheet';css.type='text/css';css.href='data:text/css,img {-moz-transform: rotate(-90deg);}';doc.documentElement.childNodes[0].appendChild(css);})();

由cor-el于修改