XOOPS RMCommon Utilities
2.1.8.91RC
Main Page
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
info.php
Go to the documentation of this file.
1
<?php
2
/*
3
+--------------------------------------------------------------------------------------------+
4
| DISCLAIMER - LEGAL NOTICE - |
5
+--------------------------------------------------------------------------------------------+
6
| |
7
| This program is free for non comercial use, see the license terms available at |
8
| http://www.francodacosta.com/licencing/ for more information |
9
| |
10
| This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; |
11
| without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
12
| |
13
| USE IT AT YOUR OWN RISK |
14
| |
15
| |
16
+--------------------------------------------------------------------------------------------+
17
18
*/
30
class
phMagick_info
{
31
function
getInfo
(
phmagick
$p
,
$file
=
''
){
32
if
(
$file
==
''
)
$file
= $p->
getSource
();
33
return
getimagesize (
$file
);
34
}
35
36
function
getWidth
(
phmagick
$p
,
$file
=
''
){
37
list($width, $height,
$type
, $attr) = $this->
getInfo
($p,
$file
);
38
return
$width;
39
}
40
41
function
getHeight
(
phmagick
$p
,
$file
=
''
){
42
list($width, $height,
$type
, $attr) = $this->
getInfo
($p,
$file
);
43
return
$height;
44
}
45
46
47
function
getBits
(
phmagick
$p
,
$file
=
''
){
48
if
(
$file
==
''
)
$file
= $p->
getSource
();
49
$info = getimagesize (
$file
);
50
return
$info[
"bits"
];
51
}
52
53
function
getMime
(
phmagick
$p
,
$file
=
''
){
54
if
(
$file
==
''
)
$file
= $p->
getSource
();
55
$info = getimagesize (
$file
);
56
return
$info[
"mime"
];
57
}
58
}
59
?>
L:
XOOPS_Allure
SVN_XOOPS2
RMC
rmcommon
trunk
rmcommon
class
plugins
info.php
Generated on Sun Mar 17 2013 20:41:05 for XOOPS RMCommon Utilities by
1.8.3.1