Похожие чаты

👋 I have a html input="file" where users can upload pictures some

users report that if they upload images in portrait mode, it gets uploaded with the wrong side up

I can confirm the issue while I was watching a user uploading an image and it was indeed wrongly rotated once uploaded

Does anyone have an idea how to debug this or what could be the problem?

12 ответов

23 просмотра

Add a random spin button/thingy before image upload as a cool effect to the site that actually does nothing. No one will understand why someone images have rotated lol

Show code

You can listen when the image is rotated with JS

This may help https://stackoverflow.com/questions/18632356/how-to-extract-image-orientation-information-from-image-loaded-in-canvas

D
You can listen when the image is rotated with JS

Is there a specific event for it? I Googled but didn’t find anything.

Shayan
Is there a specific event for it? I Googled but di...

Try: document.getElementById('imageInput').addEventListener('change', function(event) {});

D
Try: document.getElementById('imageInput').addEven...

It’s nice if this solves the problem rather than using a feature-rich library like the one you mentioned just for this single purpose. (It seems like a good library, though)

Daniel- Автор вопроса
D
You can listen when the image is rotated with JS

input type="file" is literally all there is 😄

Daniel- Автор вопроса

I don't understand what you mean

Daniel- Автор вопроса

But what should I do with the element?

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта