-
-
Save richardgrantserverless/1e631504b3c8b9de40c7b3ddbf5c88ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async resize(size, path) { | |
try { | |
const sizeArray = size.split('x') | |
const width = parseInt(sizeArray[0]) | |
const height = parseInt(sizeArray[1]) | |
const Key = path | |
const newKey = '' + width + 'x' + height + '/' + path | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment