update docs
This commit is contained in:
parent
f0cb008e23
commit
f71aa79352
@ -16,8 +16,8 @@
|
|||||||
<para>
|
<para>
|
||||||
The thumbnailing functionality is implemented by <literal>vips_thumbnail()</literal> and <literal>vips_thumbnail_buffer()</literal> (which thumbnails an image held as a string), see the docs for details. You can use these functions from any language with a libvips binding. For example, from PHP you could write:
|
The thumbnailing functionality is implemented by <literal>vips_thumbnail()</literal> and <literal>vips_thumbnail_buffer()</literal> (which thumbnails an image held as a string), see the docs for details. You can use these functions from any language with a libvips binding. For example, from PHP you could write:
|
||||||
</para>
|
</para>
|
||||||
<programlisting language="php">
|
<programlisting>
|
||||||
$filename = ...;
|
$filename = "image.jpg";
|
||||||
$image = Vips\Image::thumbnail($filename, 200, ["height" => 200]);
|
$image = Vips\Image::thumbnail($filename, 200, ["height" => 200]);
|
||||||
$image->writeToFile("my-thumbnail.jpg");
|
$image->writeToFile("my-thumbnail.jpg");
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Loading…
Reference in New Issue
Block a user