Skip to content

Commit

Permalink
getimagesize() is agnostic of image metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Feb 7, 2025
1 parent 2258375 commit 24c175b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reference/image/functions/getimagesize.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@
zero for width and height in these cases.
</para>
</note>
<note>
<simpara>
<function>getimagesize</function> is agnostic of any image metadata.
If e.g. the Exif <literal>Orientation</literal> flag is set to a value which
rotates the image by 90 or 270 degress, index 0 and 1 are swapped,
i.e. the contain the height and width, respectively.
</simpara>
</note>
<para>
Index 2 is one of the <constant>IMAGETYPE_<replaceable>*</replaceable></constant> constants indicating
the type of the image.
Expand Down

0 comments on commit 24c175b

Please sign in to comment.