Distorting image using liquid-rescale

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rupansh
Posts: 2
Joined: 2018-08-05T14:04:30-07:00
Authentication code: 1152

Distorting image using liquid-rescale

Post 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!)
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Distorting image using liquid-rescale

Post 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.
rupansh
Posts: 2
Joined: 2018-08-05T14:04:30-07:00
Authentication code: 1152

Re: Distorting image using liquid-rescale

Post 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!
Post Reply