From 221091474051b3fbc16dd07e39cd7cda97d2b9da Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 7 Feb 2018 13:40:23 +0100 Subject: [PATCH] tweak graphicsmagick parameters --- scripts/deepfry.coffee | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/deepfry.coffee b/scripts/deepfry.coffee index 530dec9..ef81de8 100644 --- a/scripts/deepfry.coffee +++ b/scripts/deepfry.coffee @@ -31,28 +31,28 @@ module.exports = (robot) -> compress = (image, callback) -> gm(image) .noProfile() - .quality(rand(25,40)) - .colorize(rand(0,5),rand(0,5),rand(0,5)) + .noise('uniform') + .quality(rand(30,80)) + .noise('uniform') .toBuffer callback resize = (image, callback) -> gm(image) - .resize(260000, '@>') - .resize('40%') - .resize('500%') + .scale('95%') + .scale('105%') .toBuffer callback colorize = (image, callback) -> gm(image) - .modulate(rand(110,200), rand(100,110)) + .modulate(rand(100,110), rand(100,150)) .toBuffer callback deepFry = (res, image) -> script = concat [ init(image), resize, - times(40, compress), colorize + times(50, compress), ] async.waterfall script, (err, image) ->