Skip to content

Commit 7a25b8d

Browse files
committed
using sharp library instead of unmaintained lwip
1 parent dfe7810 commit 7a25b8d

File tree

5 files changed

+6052
-88
lines changed

5 files changed

+6052
-88
lines changed

Gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ gulp.task('watch', function() {
3535
gulp.watch(['./index.js', './routes/*.js', './services/*.js'], ['serve']);
3636
});
3737

38-
gulp.task('default', ['lint', 'serve', 'watch']);
38+
gulp.task('default', gulp.series('lint', 'serve', 'watch'));
3939

4040
// clean up if an error goes unhandled.
4141
process.on('exit', function() {

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cache keeps a copy of the downloaded file to avoid downloading them multiple
1919
times.
2020

2121
The core image processing functionality is handled by the
22-
[EyalAr/lwip](https://github.com/EyalAr/lwip) NodeJS library.
22+
[lovell/sharp](https://github.com/lovell/sharp) NodeJS library.
2323

2424
## Main features
2525

@@ -84,13 +84,13 @@ To create a thumbnail image:
8484

8585
For instance:
8686

87-
`http://127.0.0.1:8081/100x150/https://fr.animalblog.co/wp-content/uploads/2013/08/chat_peur1.jpg`
87+
`http://127.0.0.1:8081/100x150/http://www.dynamictic.info/wp-content/uploads/2014/01/chat-peur.jpg`
8888

89-
`http://127.0.0.1:8081/300x200/right/middle/https://fr.animalblog.co/wp-content/uploads/2013/08/chat_peur1.jpg`
89+
`http://127.0.0.1:8081/300x200/right/middle/http://www.dynamictic.info/wp-content/uploads/2014/01/chat-peur.jpg`
9090

9191
You can omit one of the width/height properties by setting a `0` value in order
9292
to keep the original aspect ratio. For instance:
93-
`http://127.0.0.1:8081/0x200/center/middle/https://fr.animalblog.co/wp-content/uploads/2013/08/chat_peur1.jpg`
93+
`http://127.0.0.1:8081/0x200/center/middle/http://www.dynamictic.info/wp-content/uploads/2014/01/chat-peur.jpg`
9494

9595
### Options
9696

0 commit comments

Comments
 (0)