How to do this effect? (Image Attached)

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
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

How to do this effect? (Image Attached)

Post by agriz »

I have attached the image here.
Is it possible to do this using imagemagick?

Image
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to do this effect? (Image Attached)

Post by Bonzo »

I did something similar a couple of years ago: Example code

Image

I belive Anthony has another example on his site.

This was a variation of trying to remove areas that are nearly empty: Forum thread

Image
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to do this effect? (Image Attached)

Post by anthony »

If you want to actually have the images in the smaller 'photos' align, then simply generate that image with 'holes' for the actual photo content. You then overlay that 'holey' image over your original.

See 'Simple Border Overlay' in IMv6 Examples, Thumbnails
http://www.imagemagick.org/Usage/thumbn ... er_overlay


I myself think the 'jitterred offset and rotation' effect is the better idea.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to do this effect? (Image Attached)

Post by Bonzo »

If you want to actually have the images in the smaller 'photos' align, then simply generate that image with 'holes' for the actual photo content. You then overlay that 'holey' image over your original.
Good idea Anthony - lateral thinking - I had not even noticed the photos were still aligned!
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: How to do this effect? (Image Attached)

Post by agriz »

Bonzo wrote:
If you want to actually have the images in the smaller 'photos' align, then simply generate that image with 'holes' for the actual photo content. You then overlay that 'holey' image over your original.
Good idea Anthony - lateral thinking - I had not even noticed the photos were still aligned!
How do i make the holes in the actual images to bring such an effect?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: How to do this effect? (Image Attached)

Post by anthony »

Generally by making them transparent. this is best done by creating a greyscale mask with the areas you want transparent, then compose using CopyOpacity to insert it into the image that does not have any 'holes' yet.

See IM examples, CopyOpacity.
http://www.imagemagick.org/Usage/compose/#copyopacity

You can manually do this in a Image editor like GIMP too. Load the image, add a transparency (alpha) channel, and erase, or 'cut out' polygon selections, to create the holes.

Do not directly map a color to transparency as it produces a boolean transparency with aliased (staircased) edges.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
agriz
Posts: 237
Joined: 2011-10-01T02:21:30-07:00
Authentication code: 8675308

Re: How to do this effect? (Image Attached)

Post by agriz »

can you attach any sample greyscale mask image to produce this effect.
From that moon example, I understand how to do it in a simple way.

But i am still confused how do i do this with frame effect
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to do this effect? (Image Attached)

Post by fmw42 »

see http://www.imagemagick.org/Usage/thumbnails/#polaroid

Put white borders around a small transparent image. Then rotate it to various orientations and place each in a different spot over your image.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How to do this effect? (Image Attached)

Post by Bonzo »

I do not think that would work fmw42 as the border from any images below would show through as well? You would also need the holes through the leopard pattern as well.

Personaly I would go for the Gimp method and create the top image with the leopard skin pattern and transparent holes to overlay over the photo.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to do this effect? (Image Attached)

Post by fmw42 »

You are probably right one should composite all the frames in to a mask and then overlay that on the photo and then mask that onto the leopard skin.
Post Reply