nikli2009 / vue-img-orientation-changer

A vue plugin that can help you display image in correct orientation.
MIT License
39 stars 15 forks source link

Doesn't work Firebase Firestore images #3

Open fabiopaitra opened 4 years ago

fabiopaitra commented 4 years ago

Due the URL format, It's not working with Firestore images. Could there be a way to fix?

Tks!

jeremiahjoven commented 4 years ago

Same problem here. Images display fine on mobile but desktop is another story.

nikli2009 commented 4 years ago

Due the URL format, It's not working with Firestore images. Could there be a way to fix?

Tks!

Hi @fabiopaitra , is this the CORS policy related ? (just a guess as this directive use XHR to fetch images)

fabiopaitra commented 4 years ago

Hi @nikli2009, thank you for your response. I was trying to fix in the backend but didn't work. I believe it's because the query parameter after the URL for example:

https://firebasestorage.googleapis.com/v0/b/vou-card.appspot.com/o/vRYTGiXJEcUSqe3eQG5hLr2mEpV2%2Fpassport-1585251998394.jpg?alt=media&token=4f229384-bd54-4829-acee-788808b0ac0a

Makes sense?

fabiopaitra commented 4 years ago

Hi @nikli2009. Any ideas? Maybe some workaround we could do it.

Thanks for your time!