Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
fuss:imagemagick [2014/12/05 22:48] officefuss:imagemagick [2022/04/19 08:28] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Convert Font to Images ======
 +
 +Given a font file called ''font.ttf'', use the following to extract the letters and numbers as separate image files.
 +
 +<code bash>
 +for i in {a..z} {A..Z} {0..9}; do convert -font font.ttf -pointsize 72 label:$i $i.gif; done
 +</code>
 +
 +====== Identify an Image ======
 +
 +Using the ''identify'' command from the ImageMagick package, we can print out the details of an image:
 +
 +<code bash>
 +identify empty.gif
 +</code>
 +
 +with the sample output:
 +<code>
 +empty.gif GIF 1x1 1x1+0+0 8-bit PseudoClass 2c 26B 0.000u 0:00.000
 +</code>
 +
 +====== Flip and Image Vertically or Horizontally ======
 +
 +Flipping an image vertically or horizontally can be done with the ''mogrify'' tool:
 +
 +<code bash>
 +mogrify -flip image.png # to flip vertically
 +mogrify -flop image.png # to flip horizontally
 +</code>
 +
 +
  

fuss/imagemagick.1417819686.txt.bz2 · Last modified: 2014/12/19 22:49 (external edit)

Access website using Tor Access website using i2p Wizardry and Steamworks PGP Key


For the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.