Users can upload images of their items, but some pictures appear rotated 90 degrees counter-clockwise after uploading. This could be due to the way the photos were taken on an iPhone. Is there a simple solution to correct this rotation issue? The following JavaScript function is used to create cards with uploaded images. How can I prevent them from rotating in that direction?
$(document)
.ready(function() {
$.each(itemNumbers,
function(i, value) {
$('.main_card_shell').append(
"<div class='card_content card_style' id='card0'>" +
"<div class='subcard_style box_title'>" +
'<img class="card_image" src="' + imgpath[i] + '" alt="Item #1" />' +
'<div class="profile">' +
Is there a specific line that I need to add below my
<img class="card_image" src="' + imgpath[i] + '" alt="Item #1" />
tag to address the rotation issue?