Skip to content

Commit 6bd6778

Browse files
committed
getimagesize() is agnostic of image metadata
php/doc-en@f8d1e17
1 parent 4d30265 commit 6bd6778

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

reference/image/functions/getimagesize.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 89ae180a851621c308f0ea4604ff2e919aa57a7f Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: f8d1e172bd6d11986f0dfeb11756b90c039a39bc Maintainer: hirokawa Status: ready -->
44
<!-- CREDITS: shimooka,mumumu -->
55
<refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.getimagesize">
66
<refnamediv>
@@ -118,6 +118,15 @@
118118
<function>getimagesize</function> が返す幅と高さはいずれもゼロとなります。
119119
</para>
120120
</note>
121+
<note>
122+
<simpara>
123+
<function>getimagesize</function> は、どの画像のメタデータにも依存しません。
124+
たとえば、Exif の <literal>Orientation</literal> フラグが、
125+
画像を90度か270度回転するよう設定されていた場合、
126+
0番目と1番目の要素は入れ替えられます。
127+
つまり、これらは高さと幅をそれぞれ含んでいるということです。
128+
</simpara>
129+
</note>
121130
<para>
122131
2 番目の要素は <constant>IMAGETYPE_<replaceable>*</replaceable></constant> 定数のひとつで、
123132
画像の形式を表します。

0 commit comments

Comments
 (0)