Przeszukaj pomoc

Unikaj oszustw związanych z pomocą.Nigdy nie będziemy prosić Cię o dzwonienie na numer telefonu, wysyłanie SMS-ów ani o udostępnianie danych osobowych. Zgłoś podejrzaną aktywność, korzystając z opcji „Zgłoś nadużycie”.

Learn More

How can I rotate a jpg file without saving it first

  • 1 odpowiedź
  • 1 osoba ma ten problem
  • 2 wyświetlenia
  • Ostatnia odpowiedź od 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)

Wszystkie odpowiedzi (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);})();

Zmodyfikowany przez cor-el w dniu