Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
fuss:imagemagick [2014/06/27 13:52]
office
fuss:imagemagick [2017/02/22 18:30] (current)
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.txt ยท Last modified: 2017/02/22 18:30 (external edit)

Access website using Tor Access website using i2p


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