update docs
This commit is contained in:
parent
f0cb008e23
commit
f71aa79352
@ -16,8 +16,8 @@
|
||||
<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:
|
||||
</para>
|
||||
<programlisting language="php">
|
||||
$filename = ...;
|
||||
<programlisting>
|
||||
$filename = "image.jpg";
|
||||
$image = Vips\Image::thumbnail($filename, 200, ["height" => 200]);
|
||||
$image->writeToFile("my-thumbnail.jpg");
|
||||
</programlisting>
|
||||
|
Loading…
Reference in New Issue
Block a user