Skip to content

Commit

Permalink
Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
cguertuerk committed Dec 30, 2018
1 parent 69d8948 commit f401516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ exports.resize = (imageBucket, objectKey, width, height) => new Promise((resolve

getFile(imageBucket, objectKey, reject).then(data => {

const resizedFile = `${os.tmpDir}/resized.${imageBucket}.${objectKey}.${width}.${height}`;
const normalizeObjectKey = objectKey.split('/').join('.');
const resizedFile = `${os.tmpDir}/resized.${imageBucket}.${normalizeObjectKey}.${width}.${height}`;

const resizeCallback = (err, output, resolve, reject) => {
if (err) {
Expand Down

0 comments on commit f401516

Please sign in to comment.