Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bramses committed Sep 27, 2023
1 parent 27c5fa2 commit d3a838f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions share-pic.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,17 +463,17 @@ export const sharePic = async (imageUrl, text) => {
const verticalResult = await uploadToCloudflare(resultTemp);
console.log(result);
// delete temp files from disk
deleteFile(dalleFileTemp);
// deleteFile(dalleFileTemp);
deleteFile(resultTemp);

const { bufferH } = await overlayTextOnImageHorizontal(dalleFileTemp, text);
const resultTempH = `${Date.now()}.png`;
fs.writeFileSync(resultTempH, bufferH);
const horizontalResult = await uploadToCloudflare(resultTemp);
const horizontalResult = await uploadToCloudflare(resultTempH);
console.log(result);
// delete temp files from disk
deleteFile(dalleFileTemp);
deleteFile(resultTemp);
deleteFile(resultTempH);


return {
Expand Down

0 comments on commit d3a838f

Please sign in to comment.