Page 1 of 1

Distorting image using liquid-rescale

Posted: 2018-08-05T14:16:07-07:00
by rupansh
Hello! I am a complete novice to ImageMagick. My main purpose of using it is for a telegram bot that distorts images. (A bot does exists but its not open source.) I would want to know how to get result similar to these -
https://imgur.com/a/20EQYKe
I would also like help with implementing it in python if possible!
The bot owner did give a hint of using liquid-rescale ! (Also yes, I understand this is for funny reasons but I really want to have experience with telegram bots!)

Re: Distorting image using liquid-rescale

Posted: 2018-08-05T15:06:26-07:00
by GeeMack
rupansh wrote: 2018-08-05T14:16:07-07:00Hello! I am a complete novice to ImageMagick. My main purpose of using it is for a telegram bot that distorts images. (A bot does exists but its not open source.) I would want to know how to get result similar to these -
https://imgur.com/a/20EQYKe
A very similar effect can be achieved using ImageMagick's -liquid-rescale, and maybe combining it with -implode. Using IM7 from a command line, you could do something like this...

Code: Select all

magick input.jpg -liquid-rescale 320x320 -implode 0.25 result.png
To ask a proper question in this forum you should always provide the version of ImageMagick you're using, and let us know what OS you're working on.

Re: Distorting image using liquid-rescale

Posted: 2018-08-05T15:17:33-07:00
by rupansh
GeeMack wrote: 2018-08-05T15:06:26-07:00
rupansh wrote: 2018-08-05T14:16:07-07:00Hello! I am a complete novice to ImageMagick. My main purpose of using it is for a telegram bot that distorts images. (A bot does exists but its not open source.) I would want to know how to get result similar to these -
https://imgur.com/a/20EQYKe
A very similar effect can be achieved using ImageMagick's -liquid-rescale, and maybe combining it with -implode. Using IM7 from a command line, you could do something like this...

Code: Select all

magick input.jpg -liquid-rescale 320x320 -implode 0.25 result.png
To ask a proper question in this forum you should always provide the version of ImageMagick you're using, and let us know what OS you're working on.
Thank you very much! Your command worked perfectly fine on Windows with IM7. Also please do provide your github username as I will probably add you in credits once the bot is ready!