Skip to content

Commit dd54ccc

Browse files
Resize image should use int for width and height.
1 parent 57c7a55 commit dd54ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ app.post('/upload_image', function (req, res) {
2929
app.post('/upload_image_resize', function (req, res) {
3030

3131
var options = {
32-
resize: ['300', '300']
32+
resize: [300, 300]
3333
}
3434
FroalaEditor.Image.upload(req, '/uploads/', options, function(err, data) {
3535

@@ -175,4 +175,4 @@ if (!fs.existsSync(filesDir)){
175175

176176
app.listen(3000, function () {
177177
console.log('Example app listening on port 3000!');
178-
});
178+
});

0 commit comments

Comments
 (0)