Getting center of SRT distorted Image

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
adk
Posts: 2
Joined: 2018-04-12T09:07:53-07:00
Authentication code: 1152

Getting center of SRT distorted Image

Post by adk »

Hello,

I am running a command like this below:

convert -distort SRT %[fx:(15+t)/100],0

I'm using it in a larger script to create a gif that gradually enlarges each frame. What I would like is to just get part of the center of the image. I'm including two links to the original image, and what it looks like after a single run of the above distortion command.

Original:

https://ibb.co/iZg7p7

After distortion:

https://ibb.co/mCBq97

I just want that center part where it looks identical to the original image.

Any help is appreciated, thanks!
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Getting center of SRT distorted Image

Post by GeeMack »

adk wrote: 2018-04-12T09:18:04-07:00I just want that center part where it looks identical to the original image.
Try using "-virtual-pixel none" before the "-distort" operation.
adk
Posts: 2
Joined: 2018-04-12T09:07:53-07:00
Authentication code: 1152

Re: Getting center of SRT distorted Image

Post by adk »

Thanks! That worked :)
Post Reply