Santanu
Santanu

General

Create Banner with mirror effect by ImageMagick

Magick

A mirror text effect
A mirror text effect

A simple way to create a text image which will have mirror effects. The best part of this you do not have to use any fancy imging software and it takes only few seconds to create the same. The code a single line to make it easier for Windows convert

-size 460x130 xc:white -font forte -pointsize 72 -fill “#cccccc” -annotate 0x180+12+80 “Banner Mirror” -gaussian 0x2 -stroke black -strokewidth 1 -fill “#80904F” -stroke black -strokewidth 1 -annotate 0x0+12+55 “Banner Mirror” -draw “line 0,68 430,68” Banner-Mirror-Imagemagick.jpg*

INFO

**Update : 2024 ; ** here is newer way to do the same, using css with keyframe.

Create the original text
PS C:> & 'C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe' -size 1024x250 xc:white -font impact -pointsize 160 -fill "#80904f" -gravity center -annotate +0+0 "Banner Mirror" -stroke black -strokewidth 1 -fill "#80904F" -stroke black -strokewidth 1 original-text.jpg
Blurr Create the original text with Gaussian Blurr
PS C:> & 'C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe' -size 1024x250 xc:white -font impact -pointsize 160 -fill "#80904f" -gravity center -annotate +0+0 "Banner Mirror" -gaussian-blur 0x2 -stroke black -strokewidth 1 -fill "#80904F" -stroke black -strokewidth 1 original-text-blurr.jpg
Create the mirrored text image from blurred image
PS C:> & 'C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe' original-text-blurr.jpg -flip mirrored-text.jpg
Combine both images with some padding and draw the line
PS C:> & 'C:\Program Files\ImageMagick-7.1.1-Q16-HDRI\magick.exe' -size 1024x500 xc:white -draw "image over 0,0 0,0 'original-text.jpg'" -draw "image over 0,250 0,0 'mirrored-text.jpg'" -draw "line 50,250 974,250" Banner-Mirror-Imagemagick.jpg

Read Next

29 Nov   2005

Metro in Paris

Local Transport