Skip to content

Commit cd0f937

Browse files
committed
Release preparations
1 parent 28a0144 commit cd0f937

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ Smarcrop requires support for [Promises](http://caniuse.com/#feat=promises),
4141
use a [polyfill](https://github.com/taylorhakes/promise-polyfill) for unsupported browsers or set `smartcrop.Promise` to your favorite promise implementation
4242
(I recommend [bluebird](http://bluebirdjs.com/)).
4343

44+
45+
## Consider avoiding crops using dont-crop
46+
47+
If you are interested in using smartcrop.js to crop your images you should also consider to avoid cropping them by using [dont-crop](https://github.com/jwagner/dont-crop/).
48+
Dont-crop gives you matching gradients and colors to pad and complement your images.
49+
50+
![Example](https://29a.ch/images/dont-crop.cache-399897619c3de2e0.jpg)
51+
4452
## Command Line Interface
4553

4654
The [smartcrop-cli](https://github.com/jwagner/smartcrop-cli) offers command line interface to smartcrop.js.
@@ -202,9 +210,13 @@ In other words, it's fine to run it on one image, it's suboptimal to run it on a
202210
- [smartcrop.py](https://github.com/hhatto/smartcrop.py) by [Hideo Hattori](http://www.hexacosa.net/about/)
203211
- [smartcrop-rails](https://github.com/sadiqmmm/smartcrop-rails) smartcrop wrapped in a ruby gem by [Mohammed Sadiq](https://github.com/sadiqmmm/)
204212
- [smartcrop.net](https://github.com/softawaregmbh/smartcrop.net) c# .net port by [softaware gmbh](https://www.softaware.at/)
213+
- [dont-crop](https://github.com/jwagner/dont-crop/) a library to avoid cropping by padding images with matching colors or gradients
205214

206215
## Version history
207216

217+
### 2.0.4
218+
Typescript type definitions.
219+
208220
### 2.0.2
209221

210222
In short: It's a lot faster when calculating bigger crops.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "smartcrop",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Content aware image cropping.",
55
"homepage": "https://github.com/jwagner/smartcrop.js",
66
"author": "Jonas Wagner <[email protected]> (http://29a.ch/)",
77
"main": "./smartcrop",
88
"files": [
9-
"smartcrop.js"
9+
"smartcrop.js",
10+
"index.d.ts"
1011
],
1112
"devDependencies": {
1213
"benchmark": "^2.1.4",
@@ -37,4 +38,4 @@
3738
"test": "karma start karma.conf.js",
3839
"lint": "eslint smartcrop.js test examples/slideshow.js examples/testbed.js examples/testsuite.js examples/smartcrop-debug.js"
3940
}
40-
}
41+
}

0 commit comments

Comments
 (0)