Heart Shape Smudge Challenge

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
martyfm
Posts: 2
Joined: 2013-12-18T08:05:23-07:00
Authentication code: 6789

Heart Shape Smudge Challenge

Post by martyfm »

Hello! I'm fairly new to ImageMagick and have been presented a problem from a client that I could use some help puzzling out.

The task at hand is to morph / distort user submitted photos into a heart shape. All images will be cropped square and resized to the same pixel dimensions.

Desired results:
Image

Image

In Photoshop this would be referred to as a smudge but I can't seem to find anything similar in ImageMagick.

I tried a few executions of using combinations of explode / bulge and pinch see below diagram - but the images were distorted beyond recognition.

Image

Any ideas or suggestions would be greatly appreciated!
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Heart Shape Smudge Challenge

Post by snibgo »

"-distort shepards" can probably do the job. See http://www.imagemagick.org/script/comma ... hp#distort
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Heart Shape Smudge Challenge

Post by fmw42 »

It would be nice to have your input images to use for testing.
martyfm
Posts: 2
Joined: 2013-12-18T08:05:23-07:00
Authentication code: 6789

Re: Heart Shape Smudge Challenge

Post by martyfm »

Good point!

Image

Image
kopfnick
Posts: 1
Joined: 2014-05-05T05:39:21-07:00
Authentication code: 6789

Re: Heart Shape Smudge Challenge

Post by kopfnick »

Hi,

i am currently researching the same effect and would also like to use imagemagick, was the proposed "-distort shepards" the "right" way?

Thanks,
Gerald
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Heart Shape Smudge Challenge

Post by fmw42 »

I tried a number of things (without spending too much time), but ultimately was not very successful.
Post Reply