From ab8916a938613a3e44611454fc01aadf6255b7f8 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sun, 17 Mar 2019 01:05:12 +0000 Subject: [PATCH] making smart crop docs more prominent Fixes #138 --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dec8258..d7f2ab8 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,17 @@ x0.15 | 15% original height, proportional width | 200x,png cx175,cw400,ch300,100x | crop to 400x300px starting at (175,0), scale to 100px wide | cx175,cw400,ch300,100x +The [smart crop feature](https://godoc.org/willnorris.com/go/imageproxy#hdr-Smart_Crop) +can best be seen by comparing crops of [this source image][judah-sheets], with +and without smart crop enabled. + +Options | Meaning | Image +--------|------------------------------------------|------ +150x300 | 150x300px, standard crop | 200x400,sc +150x300,sc | 150x300px, smart crop | 200x400 + +[judah-sheets]: https://judahnorris.com/images/judah-sheets.jpg + Transformation also works on animated gifs. Here is [this source image][material-animation] resized to 200px square and rotated 270 degrees: @@ -75,11 +86,6 @@ image][material-animation] resized to 200px square and rotated 270 degrees: 200,r270 -The smart crop feature can best be seen by comparing the following images, with and without smart crop. - -200x400,sc -200x400 - ## Getting Started ## Install the package using: