Merge pull request #318 from dairiki/typo.mode-crop

Fix typo: thumbnail arg `crop` must be set to a string
This commit is contained in:
Andreas Runfalk 2021-02-22 13:51:45 +01:00 committed by GitHub
commit 101aef6bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ signature: width=None, height=None, mode=None, upscale=None, quality=None
--- ---
body: body:
!! From Lektor 2.0 to 3.1.2 cropping was set with `crop=True`. This is now deprecated and instead crop is an available mode, which can be set as `mode=crop`. !! From Lektor 2.0 to 3.1.2 cropping was set with `crop=True`. This is now deprecated and instead crop is an available mode, which can be set as `mode="crop"`.
This method is available on attachments that are images and can be used to This method is available on attachments that are images and can be used to
automatically generate a thumbnail. The return value is a thumbnail proxy automatically generate a thumbnail. The return value is a thumbnail proxy