BOD-25 BOD-24 Uploading to cloudinary + thumbnail generation
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
export const generateCdnThumb = key => {
|
||||
const imageRequest = JSON.stringify({
|
||||
bucket: process.env.REACT_APP_S3_BUCKET,
|
||||
key: key,
|
||||
toFormat: 'png',
|
||||
edits: {
|
||||
resize: {
|
||||
height: 150,
|
||||
width: 150
|
||||
}
|
||||
}
|
||||
});
|
||||
return `${process.env.REACT_APP_S3_CDN}/${btoa(imageRequest)}`;
|
||||
};
|
||||
Reference in New Issue
Block a user