From 792f6c75236315622722b4de8941f92464016fa4 Mon Sep 17 00:00:00 2001 From: Mackenzie Date: Fri, 8 Feb 2019 14:45:45 -0500 Subject: [PATCH] Warn about order of x, y coordinates in cropping --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0f2308a..8e3c854 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,12 @@ thumbor.buildImage("http://example.com/image.png") .toUrl() // Produces: /unsafe/48x48/example.com/image.png +thumbor.buildImage("http://example.com/image.png") + .crop(10, 20, 90, 100) + .toUrl() +// Produces: /unsafe/20x10:100x90/example.com/image.png +// Note that the parameters are accepted as y1, x1, y2, x2 — Do not try to use x1, y1, x2, y2 + thumbor.buildImage("http://example.com/image.png") .crop(10, 10, 90, 90) .resize(40, 40)