forked from DeeCeeXxx/Queen_Anita-V3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
exif.js
1 lines (1 loc) · 7.69 KB
/
exif.js
1
const _0x475418=_0x4cd7;(function(_0x535022,_0x4474ff){const _0x470138=_0x4cd7,_0x299c36=_0x535022();while(!![]){try{const _0x323f74=-parseInt(_0x470138(0x1a4))/0x1*(-parseInt(_0x470138(0x187))/0x2)+-parseInt(_0x470138(0x19a))/0x3*(-parseInt(_0x470138(0x19b))/0x4)+parseInt(_0x470138(0x1a3))/0x5*(-parseInt(_0x470138(0x181))/0x6)+-parseInt(_0x470138(0x18e))/0x7+parseInt(_0x470138(0x17f))/0x8+-parseInt(_0x470138(0x192))/0x9*(parseInt(_0x470138(0x1ae))/0xa)+parseInt(_0x470138(0x179))/0xb;if(_0x323f74===_0x4474ff)break;else _0x299c36['push'](_0x299c36['shift']());}catch(_0x13b455){_0x299c36['push'](_0x299c36['shift']());}}}(_0x405f,0xaaa0b));function hi(){const _0x5a1fb2=_0x4cd7;console[_0x5a1fb2(0x1a7)](_0x5a1fb2(0x1aa));}hi();const fs=require('fs'),{tmpdir}=require('os'),ff=require('fluent-ffmpeg'),webp=require(_0x475418(0x1ad)),path=require(_0x475418(0x1b1)),makeid=_0x3017b9=>{const _0xc70368=_0x475418;let _0x5b8a40='',_0x47ded1=_0xc70368(0x191),_0x532703=_0x47ded1[_0xc70368(0x184)];for(let _0x58d033=0x0;_0x58d033<_0x3017b9;_0x58d033++){_0x5b8a40+=_0x47ded1[_0xc70368(0x199)](Math[_0xc70368(0x17e)](Math['random']()*_0x532703));}return _0x5b8a40;};async function imageToWebp(_0x2030c2){const _0x1fdf4d=_0x475418,_0x81b3f9=path[_0x1fdf4d(0x1a5)](tmpdir(),makeid(0xa)+'.webp'),_0x4cb21a=path[_0x1fdf4d(0x1a5)](tmpdir(),makeid(0xa)+_0x1fdf4d(0x182));fs['writeFileSync'](_0x4cb21a,_0x2030c2),await new Promise((_0x52bfdd,_0x4130b8)=>{const _0x3d20fc=_0x1fdf4d;ff(_0x4cb21a)['on']('error',_0x4130b8)['on'](_0x3d20fc(0x1b0),()=>_0x52bfdd(!![]))[_0x3d20fc(0x186)]([_0x3d20fc(0x1a1),_0x3d20fc(0x195),_0x3d20fc(0x185),'scale=\x27min(320,iw)\x27:min\x27(320,ih)\x27:force_original_aspect_ratio=decrease,fps=15,\x20pad=320:320:-1:-1:[email protected],\x20split\x20[a][b];\x20[a]\x20palettegen=reserve_transparent=on:transparency_color=ffffff\x20[p];\x20[b][p]\x20paletteuse'])[_0x3d20fc(0x18c)](_0x3d20fc(0x1a6))[_0x3d20fc(0x18a)](_0x81b3f9);});const _0x3abc86=fs[_0x1fdf4d(0x180)](_0x81b3f9);return fs['unlinkSync'](_0x81b3f9),fs[_0x1fdf4d(0x1ac)](_0x4cb21a),_0x3abc86;}async function videoToWebp(_0x20805c){const _0x288457=_0x475418,_0x1aa5a8=path[_0x288457(0x1a5)](tmpdir(),makeid(0xa)+_0x288457(0x1a8)),_0x2fa768=path[_0x288457(0x1a5)](tmpdir(),makeid(0xa)+'.mp4');fs[_0x288457(0x1ab)](_0x2fa768,_0x20805c),await new Promise((_0x10caa1,_0x280b86)=>{const _0x3e72ba=_0x288457;ff(_0x2fa768)['on'](_0x3e72ba(0x19d),_0x280b86)['on'](_0x3e72ba(0x1b0),()=>_0x10caa1(!![]))[_0x3e72ba(0x186)](['-vcodec',_0x3e72ba(0x195),_0x3e72ba(0x185),_0x3e72ba(0x1af),_0x3e72ba(0x19e),'0',_0x3e72ba(0x1a0),_0x3e72ba(0x1a2),'-t',_0x3e72ba(0x18b),_0x3e72ba(0x17c),'default',_0x3e72ba(0x196),_0x3e72ba(0x188),'0'])[_0x3e72ba(0x18c)](_0x3e72ba(0x1a6))['save'](_0x1aa5a8);});const _0x346322=fs['readFileSync'](_0x1aa5a8);return fs['unlinkSync'](_0x1aa5a8),fs[_0x288457(0x1ac)](_0x2fa768),_0x346322;}function _0x405f(){const _0x48682b=['3910670dHORYf','scale=\x27min(320,iw)\x27:min\x27(320,ih)\x27:force_original_aspect_ratio=decrease,fps=15,\x20pad=320:320:-1:-1:[email protected],\x20split\x20[a][b];\x20[a]\x20palettegen=reserve_transparent=on:transparency_color=ffffff\x20[p];\x20[b][p]\x20paletteuse','end','path','from','20294945qttUgC','mimetype','categories','-preset','writeUIntLE','floor','1430192XvRrVp','readFileSync','12WbTlfC','.jpg','https://instagram.com/surya_skylark05','length','-vf','addOutputOptions','112SQpJEa','-vsync','stringify','save','00:00:05','toFormat','test','7055937altUPP','author','load','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789','9qwRoJn','utf-8','packname','libwebp','-an','data','Image','charAt','12dUWuVS','83072fLwVbP','exif','error','-loop','exports','-ss','-vcodec','00:00:00','1997910hINFpI','14112ytHVQE','join','webp','log','.webp','concat','Hello\x20World!','writeFileSync','unlinkSync','node-webpmux'];_0x405f=function(){return _0x48682b;};return _0x405f();}function _0x4cd7(_0x29c2fd,_0x120a4a){const _0x405f4b=_0x405f();return _0x4cd7=function(_0x4cd7fe,_0x2fc3fe){_0x4cd7fe=_0x4cd7fe-0x178;let _0x1887a6=_0x405f4b[_0x4cd7fe];return _0x1887a6;},_0x4cd7(_0x29c2fd,_0x120a4a);}async function writeExifImg(_0x47ac37,_0x595a9a){const _0x181592=_0x475418;let _0x14c286=await imageToWebp(_0x47ac37);const _0x48b999=path['join'](tmpdir(),makeid(0xa)+_0x181592(0x1a8)),_0x310ab7=path[_0x181592(0x1a5)](tmpdir(),makeid(0xa)+'.webp');fs['writeFileSync'](_0x48b999,_0x14c286);if(_0x595a9a[_0x181592(0x194)]||_0x595a9a[_0x181592(0x18f)]){const _0x4797c5=new webp[(_0x181592(0x198))](),_0x32d106={'sticker-pack-id':_0x181592(0x183),'sticker-pack-name':_0x595a9a[_0x181592(0x194)],'sticker-pack-publisher':_0x595a9a[_0x181592(0x18f)],'emojis':_0x595a9a['categories']?_0x595a9a[_0x181592(0x17b)]:['']},_0x3e5c64=Buffer['from']([0x49,0x49,0x2a,0x0,0x8,0x0,0x0,0x0,0x1,0x0,0x41,0x57,0x7,0x0,0x0,0x0,0x0,0x0,0x16,0x0,0x0,0x0]),_0x4946eb=Buffer[_0x181592(0x178)](JSON[_0x181592(0x189)](_0x32d106),_0x181592(0x193)),_0x3e2e49=Buffer[_0x181592(0x1a9)]([_0x3e5c64,_0x4946eb]);return _0x3e2e49['writeUIntLE'](_0x4946eb[_0x181592(0x184)],0xe,0x4),await _0x4797c5['load'](_0x48b999),fs[_0x181592(0x1ac)](_0x48b999),_0x4797c5[_0x181592(0x19c)]=_0x3e2e49,await _0x4797c5[_0x181592(0x18a)](_0x310ab7),_0x310ab7;}}async function writeExifVid(_0x2f66b4,_0x2d26b4){const _0x45706d=_0x475418;let _0x18b846=await videoToWebp(_0x2f66b4);const _0xe7a56f=path[_0x45706d(0x1a5)](tmpdir(),makeid(0xa)+'.webp'),_0xf8d98f=path[_0x45706d(0x1a5)](tmpdir(),makeid(0xa)+'.webp');fs[_0x45706d(0x1ab)](_0xe7a56f,_0x18b846);if(_0x2d26b4[_0x45706d(0x194)]||_0x2d26b4[_0x45706d(0x18f)]){const _0xa242f5=new webp[(_0x45706d(0x198))](),_0xc4bd88={'sticker-pack-id':'https://instagram.com/surya_skylark05','sticker-pack-name':_0x2d26b4[_0x45706d(0x194)],'sticker-pack-publisher':_0x2d26b4['author'],'emojis':_0x2d26b4[_0x45706d(0x17b)]?_0x2d26b4['categories']:['']},_0x42d613=Buffer[_0x45706d(0x178)]([0x49,0x49,0x2a,0x0,0x8,0x0,0x0,0x0,0x1,0x0,0x41,0x57,0x7,0x0,0x0,0x0,0x0,0x0,0x16,0x0,0x0,0x0]),_0x2d3f85=Buffer[_0x45706d(0x178)](JSON[_0x45706d(0x189)](_0xc4bd88),_0x45706d(0x193)),_0xd6a081=Buffer[_0x45706d(0x1a9)]([_0x42d613,_0x2d3f85]);return _0xd6a081[_0x45706d(0x17d)](_0x2d3f85['length'],0xe,0x4),await _0xa242f5['load'](_0xe7a56f),fs[_0x45706d(0x1ac)](_0xe7a56f),_0xa242f5['exif']=_0xd6a081,await _0xa242f5[_0x45706d(0x18a)](_0xf8d98f),_0xf8d98f;}}async function writeExif(_0x243eb3,_0x984c6e){const _0x37a15d=_0x475418;let _0x4778d5=/webp/[_0x37a15d(0x18d)](_0x243eb3[_0x37a15d(0x17a)])?_0x243eb3[_0x37a15d(0x197)]:/image/[_0x37a15d(0x18d)](_0x243eb3[_0x37a15d(0x17a)])?await imageToWebp(_0x243eb3[_0x37a15d(0x197)]):/video/['test'](_0x243eb3[_0x37a15d(0x17a)])?await videoToWebp(_0x243eb3[_0x37a15d(0x197)]):'';const _0x29d8a1=path[_0x37a15d(0x1a5)](tmpdir(),makeid(0xa)+'.webp'),_0x91168=path['join'](tmpdir(),makeid(0xa)+_0x37a15d(0x1a8));fs['writeFileSync'](_0x29d8a1,_0x4778d5);if(_0x984c6e[_0x37a15d(0x194)]||_0x984c6e[_0x37a15d(0x18f)]){const _0x442b39=new webp[(_0x37a15d(0x198))](),_0x1504b4={'sticker-pack-id':_0x37a15d(0x183),'sticker-pack-name':_0x984c6e[_0x37a15d(0x194)],'sticker-pack-publisher':_0x984c6e['author'],'emojis':_0x984c6e[_0x37a15d(0x17b)]?_0x984c6e[_0x37a15d(0x17b)]:['']},_0x1e0ffa=Buffer[_0x37a15d(0x178)]([0x49,0x49,0x2a,0x0,0x8,0x0,0x0,0x0,0x1,0x0,0x41,0x57,0x7,0x0,0x0,0x0,0x0,0x0,0x16,0x0,0x0,0x0]),_0x5eac50=Buffer[_0x37a15d(0x178)](JSON[_0x37a15d(0x189)](_0x1504b4),'utf-8'),_0x16d6a5=Buffer[_0x37a15d(0x1a9)]([_0x1e0ffa,_0x5eac50]);return _0x16d6a5[_0x37a15d(0x17d)](_0x5eac50[_0x37a15d(0x184)],0xe,0x4),await _0x442b39[_0x37a15d(0x190)](_0x29d8a1),fs[_0x37a15d(0x1ac)](_0x29d8a1),_0x442b39[_0x37a15d(0x19c)]=_0x16d6a5,await _0x442b39[_0x37a15d(0x18a)](_0x91168),_0x91168;}}module[_0x475418(0x19f)]={'imageToWebp':imageToWebp,'videoToWebp':videoToWebp,'writeExifImg':writeExifImg,'writeExifVid':writeExifVid,'writeExif':writeExif};