Skip to content

Commit

Permalink
[FEAT]#9 - Image buffer processing
Browse files Browse the repository at this point in the history
  • Loading branch information
yoon1013 committed Jun 9, 2022
1 parent 320fe53 commit b018252
Show file tree
Hide file tree
Showing 1,431 changed files with 358,260 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const session = require('express-session');
const multer = require('multer');
const fs = require('fs');
const crypto = require('crypto');
const bufferImage = require('buffer-image');
const dotenv = require('dotenv');

//시퀄라이저
Expand Down Expand Up @@ -1009,9 +1010,19 @@ app.post('/detailFeed', async function(req, res){
where: {fNum: fNum}
});

//방법1
/*
const imageData = feedInfo.fPhoto;
console.log(imageData);
const result = bufferImage(imageData);
*/
const imageData = feedInfo.fPhoto;
console.log(imageData);

res.json({
"code": 201,
"feedInfo": feedInfo
"feedInfo": feedInfo,
//"img": imageData['data']
});
});

Expand Down
12 changes: 12 additions & 0 deletions node_modules/.bin/lzmajs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/lzmajs.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions node_modules/.bin/lzmajs.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions node_modules/.bin/pixelmatch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/pixelmatch.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions node_modules/.bin/pixelmatch.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b018252

Please sign in to comment.