title: PHP GetImageSize reverses Width/Height
body: <p>I have the image attached below with these specifics:
  Width: 3024px
  Height: 4032px</p>
  
  <p>The getimagesize() function returns the opposite:</p>
  
  <pre><code>$size = GetimageSize("test.jpg");
  echo "image width: " . $size[0] . ", height: " . $size[1];
  </code></pre>
  
  <blockquote>
    <p>image width: 4032, height: 3024</p>
  </blockquote>
  
  <p>How is this possible?</p>
  
  <p>You can try yourself using the image below.</p>
  
  <p><strong>* UPDATE *</strong>
  Removed image from the post and added a link to zip file (containing the image) because the image works fine after being processed from stack overflow.
  <a href="http://s000.tinyupload.com/index.php?file_id=03119960568476211794" rel="nofollow noreferrer">Tinyupload ZIP</a></p>
  
  <p>Screenshot of the result:
  <a href="https://i.stack.imgur.com/Pcoai.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Pcoai.png" alt="enter image description here"></a></p>