Advertisement
KoctrX

Untitled

Feb 17th, 2021
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. this._sendStatus(7);
  2.  
  3. let imagemagick1 = await imConvert(buff, '-quality 100 -contrast -contrast -resize 50%', false, false, 'jpg');
  4. this._sendStatus();
  5.  
  6. let imagemagick2 = await imConvert(imagemagick1, '-colorspace Gray -blur 0x.7 -negate -edge 3 -negate -threshold 40% -blur 0x.5', false, false, 'jpg');
  7. this._sendStatus();
  8.  
  9.  
  10. let finalPng = await imConvert(imagemagick2, '-fuzz 20%', false, false, 'png');
  11. this._sendStatus();
  12.  
  13. finalPng = await fxPreset.getSwap(finalPng);
  14. this._sendStatus();
  15.  
  16.  
  17. let imagemagick3 = await imConvert(finalPng, `-contrast`, false, false, 'jpg');
  18. this._sendStatus();
  19.  
  20. buff = await imConvert(imagemagick3, `-colorspace RGB +repage -quality 100 -resize 200%`, false, false, 'jpg');
  21. this._sendStatus();
  22.  
  23. return buff;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement