reference/imagick/imagick/setimagecompressionquality.xml
0ffb9c9fc8f4bf1589a1a573644e1c23b6b451d1
...
...
@@ -9,7 +9,7 @@
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
-
<type>bool</type><methodname>Imagick::setImageCompressionQuality</methodname>
12
+
<modifier>public</modifier> <type>bool</type><methodname>Imagick::setImageCompressionQuality</methodname>
13
13
<methodparam><type>int</type><parameter>quality</parameter></methodparam>
14
14
</methodsynopsis>
15
15
<para>
...
...
@@ -47,6 +47,30 @@
47
47
</para>
48
48
</refsect1>
49
49

50
+

51
+

52
+
<refsect1 role="examples">
53
+
&reftitle.examples;
54
+
<para>
55
+
<example>
56
+
<title> <function>Imagick::setImageCompressionQuality</function></title>
57
+
<programlisting role="php">
58
+
<![CDATA[
59
+
<?php
60
+
function setImageCompressionQuality($imagePath, $quality) {
61
+
$imagick = new \Imagick(realpath($imagePath));
62
+
$imagick->setImageCompressionQuality($quality);
63
+
header("Content-Type: image/jpg");
64
+
echo $imagick->getImageBlob();
65
+
}
66
+

67
+
?>
68
+
]]>
69
+
</programlisting>
70
+
</example>
71
+
</para>
72
+
</refsect1>
73
+

50
74
</refentry>
51
75

52
76
<!-- Keep this comment at the end of the file
53
77