From 9434f1f86de2a6dddb2a9b0b9b84dfa189083120 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 23 Apr 2017 19:29:02 +0100 Subject: [PATCH 1/2] more doc tweak --- doc/Using-vipsthumbnail.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Using-vipsthumbnail.md b/doc/Using-vipsthumbnail.md index 52841f52..c628f324 100644 --- a/doc/Using-vipsthumbnail.md +++ b/doc/Using-vipsthumbnail.md @@ -17,8 +17,8 @@ The thumbnailing functionality is implemented by `vips_thumbnail()` and see the docs for details. You can use these functions from any language with a libvips binding. For example, from PHP you could write: -```php -$filename = ...; +```PHP +$filename = "image.jpg"; $image = Vips\Image::thumbnail($filename, 200, ["height" => 200]); $image->writeToFile("my-thumbnail.jpg"); ``` From f0cb008e232ca8c8619fe40d36f460edceb5940b Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sun, 23 Apr 2017 22:09:17 +0100 Subject: [PATCH 2/2] fix php formatting thanks @kleisauke ! --- doc/Using-vipsthumbnail.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/Using-vipsthumbnail.md b/doc/Using-vipsthumbnail.md index c628f324..1ba6e9b3 100644 --- a/doc/Using-vipsthumbnail.md +++ b/doc/Using-vipsthumbnail.md @@ -17,7 +17,7 @@ The thumbnailing functionality is implemented by `vips_thumbnail()` and see the docs for details. You can use these functions from any language with a libvips binding. For example, from PHP you could write: -```PHP +```php?start_inline=1 $filename = "image.jpg"; $image = Vips\Image::thumbnail($filename, 200, ["height" => 200]); $image->writeToFile("my-thumbnail.jpg");