We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffc4311 commit acc31b9Copy full SHA for acc31b9
image-middleware-pngquant/controllers/default.js
@@ -1,4 +1,8 @@
1
exports.install = function() {
2
F.route('/');
3
- F.resize('/img/*.png', '50%');
4
-};
+ F.resize('/img/*.png', resizer);
+};
5
+
6
+function resizer(image) {
7
+ image.resize('50%');
8
+}
0 commit comments