Page 1 of 1

iPhone shine effect

Posted: 2011-06-24T06:32:16-07:00
by jdespatis
Hello,

I'd like to apply an effect to my image, in order to get the appearance of any logo on an iPhone

I've seen this post, but it doesn't give effective IM parameters to do so:
viewtopic.php?f=1&t=13140&p=44154&hilit ... ect#p44154

Anyone has an idea on how to do ?

Thanks

Re: iPhone shine effect

Posted: 2011-06-24T17:13:03-07:00
by fmw42
Here is a go at it. The first two images are from the referenced page.

Image

Image

And here is my simulation:

convert logo_no_shine.jpg \
\( +clone -channel a -separate +channel -negate \
\( -size 30x30 xc:black -draw 'fill white circle 30,30 30,0' -write mpr:arc +delete \) \
\( mpr:arc \) -gravity northwest -composite \
\( mpr:arc -flip \) -gravity southwest -composite \
\( mpr:arc -flop \) -gravity northeast -composite \
\( mpr:arc -rotate 180 \) -gravity southeast -composite \) \
-alpha off -compose CopyOpacity -composite -compose over \
\( -clone 0 -fill black -colorize 100 -fill white \
-draw "translate 100,-300 circle 0,0 0,400" \
-size 200x200 gradient: -compose multiply -composite \
+duplicate -alpha off -compose copy_opacity -composite \) \
-compose dissolve -define compose:args=80,100 -composite -compose over \
-background white -flatten logo_im_shine.jpg


The first 8 lines rounds the corners and the remaining lines creates the shine

Image

Re: iPhone shine effect

Posted: 2011-06-27T06:42:53-07:00
by jdespatis
Thanks for this code!

And by sheer chance, have you an idea to add the border (we can see it on the reference image) ?