|
1 |
| -<html lang="en"><HEAD> |
2 |
| -<link rel="stylesheet" href="../assets/usage.css"> |
3 |
| -<TITLE>Backgrounds -- ImageMagick Examples</TITLE> |
4 |
| -<LINK REL="icon" HREF="../img_www/favicon.ico" type="image/x-icon"> |
5 |
| -<LINK REL="shortcut" HREF="../img_www/favicon.ico" type="image/x-icon"> |
6 |
| -<LINK REL="canonical" HREF="https://imagemagick.org/Usage/backgrounds/"> |
7 |
| -<!--[if gte IE 5.5000]><![if lt IE 7.0000]> |
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta name="generator" content="HTML Tidy for HTML5 for Linux version 5.8.0"> |
| 5 | + <link rel="stylesheet" href="../assets/usage.css"> |
| 6 | + <title>Backgrounds -- ImageMagick Examples</title> |
| 7 | + <link rel="icon" href="../img_www/favicon.ico" type="image/x-icon"> |
| 8 | + <link rel="shortcut" href="../img_www/favicon.ico" type="image/x-icon"> |
| 9 | + <link rel="canonical" href="https://imagemagick.org/Usage/backgrounds/"><!--[if gte IE 5.5000]><![if lt IE 7.0000]> |
8 | 10 | <script type="text/javascript" src="../w_images/pngfix.js"></script>
|
9 | 11 | <![endif]><![endif]-->
|
10 |
| -</HEAD><body><main class="container"><div class="magick-template"><div class="magick-header"> |
11 |
| - |
12 |
| -<H1>ImageMagick Examples -- <BR> |
13 |
| - <IMG SRC="../../w_images/space.gif" width=50 height=1> |
14 |
| - Background Examples</H1> |
15 |
| - |
16 |
| -<div> |
17 |
| - |
18 |
| -<DL> |
19 |
| -<DT><A HREF="../" |
20 |
| - ><IMG SRC="../img_www/granitesm_left.gif" BORDER=0 WIDTH=15 HEIGHT=15 |
21 |
| - > ImageMagick Examples Preface and Index</A> |
22 |
| -</DL> |
23 |
| - |
24 |
| -This is a table of applying various transforms against some 'random' canvases, |
25 |
| -showing methods of producing interesting random backgrounds at whatever size |
26 |
| -you desire, whether it is a single large image, or a background tile for a web |
27 |
| -page. </P> |
28 |
| - |
29 |
| -The table starts with the method used to generate the initial 'random' image |
30 |
| -used to generate all the other images shown. Just insert the various image |
31 |
| -'transform' into the command, to magick the raw image into something similar |
32 |
| -to that shown. From there you can adjust the various setting yourself to |
33 |
| -produce exactly the type of background image you want. </P> |
34 |
| - |
35 |
| -Be sure to read the notes at the end, before attempting to create your own |
36 |
| -examples. and please mail any interesting variations you may come across. </P> |
37 |
| - |
38 |
| -<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 width="100%" ALIGN=center> |
39 |
| -<TR><TH> |
40 |
| - Input Images :- Generator, Transform and Post-processing |
41 |
| -</TH><TD ROWSPAN=100> </TD></TR> |
42 |
| - |
43 |
| -<TR><TD ALIGN=center><FONT SIZE=-1><I> |
44 |
| -Images results shown here were generated with a "<CODE>-noop</CODE>" null |
45 |
| -transform operator </I></FONT></TD></TR> |
46 |
| - |
47 |
| -<TR><TD> |
48 |
| -Plasma Fractal <FONT SIZE=-1><I>(non-tiling canvas image)</I></FONT> |
49 |
| -</TD></TR><TR><TD> |
50 |
| -<table class="table table-sm table-hover table-striped" CELLSPACING=0 CELLPADDING=5 width="100%" bgcolor="#f8f8f8"> |
51 |
| -<TR><TD><PRE><CODE> |
| 12 | +</head> |
| 13 | +<body> |
| 14 | + <main class="container"> |
| 15 | + <div class="magick-template"> |
| 16 | + <div class="magick-header"> |
| 17 | + <h1>ImageMagick Examples --<br> |
| 18 | + <img src="../../w_images/space.gif" width="50" height="1"> Background Examples</h1> |
| 19 | + <div> |
| 20 | + <dl> |
| 21 | + <dt> |
| 22 | + <a href="../"><img src="../img_www/granitesm_left.gif" border="0" width="15" height="15"> ImageMagick Examples Preface and Index</a> |
| 23 | + </dt> |
| 24 | + </dl>This is a table of applying various transforms against some 'random' canvases, showing methods of producing interesting random backgrounds at whatever size you desire, whether it is a single large image, or a background tile for a web page. The table starts with the method used to generate the initial 'random' image used to generate all the other images shown. Just insert the various image 'transform' into the command, to magick the raw image into something similar to that shown. From there you can adjust the various setting yourself to produce exactly the type of background image you want. Be sure to read the notes at the end, before attempting to create your own examples. and please mail any interesting variations you may come across. |
| 25 | + <table border="0" cellspacing="0" cellpadding="0" width="100%" align="center"> |
| 26 | + <tr> |
| 27 | + <th>Input Images :- Generator, Transform and Post-processing</th> |
| 28 | + <td rowspan="100"> </td> |
| 29 | + </tr> |
| 30 | + <tr> |
| 31 | + <td align="center"><font size="-1"><i>Images results shown here were generated with a "<code>-noop</code>" null transform operator</i></font></td> |
| 32 | + </tr> |
| 33 | + <tr> |
| 34 | + <td>Plasma Fractal <font size="-1"><i>(non-tiling canvas image)</i></font></td> |
| 35 | + </tr> |
| 36 | + <tr> |
| 37 | + <td> |
| 38 | + <table class="table table-sm table-hover table-striped" cellspacing="0" cellpadding="5" width="100%" bgcolor="#F8F8F8"> |
| 39 | + <tr> |
| 40 | + <td> |
| 41 | + <pre><code> |
52 | 42 | magick -size 120x120 plasma:fractal fractal.png
|
53 |
| - magick fractal.png <I>{..transform..}</I> \ |
54 |
| - -shave 20x20 +repage -auto_level <I>{result}</I> |
55 |
| -</CODE> </PRE></TD></TR></TABLE></TD> |
56 |
| -<TD> |
57 |
| - <A HREF="fractal_noop.png" |
58 |
| - ><IMG SRC="fractal_noop.png" WIDTH=80 HEIGHT=80 |
59 |
| - ALIGN=middle VSPACE=0 HSPACE=0 BORDER=1 ALT="[IM Output]"></A> |
60 |
| -</TD></TR> |
61 |
| - |
62 |
| -<TR><TD> |
63 |
| -Random Noise <FONT SIZE=-1><I>(tilable background image)</I></FONT> |
64 |
| -</TD></TR><TR><TD> |
65 |
| -<table class="table table-sm table-hover table-striped" CELLSPACING=0 CELLPADDING=5 width="100%" bgcolor="#f8f8f8"> |
66 |
| -<TR><TD><PRE><CODE> |
| 43 | + magick fractal.png <i>{..transform..}</i> \ |
| 44 | + -shave 20x20 +repage -auto_level <i>{result}</i> |
| 45 | +</code> </pre> |
| 46 | + </td> |
| 47 | + </tr> |
| 48 | + </table> |
| 49 | + </td> |
| 50 | + <td> |
| 51 | + <a href="fractal_noop.png"><img src="fractal_noop.png" width="80" height="80" align="middle" vspace="0" hspace="0" border="1" alt="[IM Output]"></a> |
| 52 | + </td> |
| 53 | + </tr> |
| 54 | + <tr> |
| 55 | + <td>Random Noise <font size="-1"><i>(tilable background image)</i></font></td> |
| 56 | + </tr> |
| 57 | + <tr> |
| 58 | + <td> |
| 59 | + <table class="table table-sm table-hover table-striped" cellspacing="0" cellpadding="5" width="100%" bgcolor="#F8F8F8"> |
| 60 | + <tr> |
| 61 | + <td> |
| 62 | + <pre><code> |
67 | 63 | magick -size 80x80 xc: +noise Random noise.png
|
68 |
| - magick noise.png -virtual-pixel tile <I>{..transform..}</I> \ |
69 |
| - -auto_level <I>{result}</I> |
70 |
| -</CODE> </PRE></TD></TR></TABLE></TD> |
71 |
| -<TD></TD><TD> |
72 |
| - <A HREF="noise_noop.png" |
73 |
| - ><IMG SRC="noise_noop.png" WIDTH=80 HEIGHT=80 |
74 |
| - ALIGN=middle VSPACE=0 HSPACE=0 BORDER=1 ALT="[IM Output]"></A> |
75 |
| -</TD></TR> |
76 |
| - |
77 |
| -<TR><TD> |
78 |
| -Random Hex Tile <FONT SIZE=-1><I>(hex tile background image)</I></FONT> |
79 |
| -</TD></TR><TR><TD> |
80 |
| -<table class="table table-sm table-hover table-striped" CELLSPACING=0 CELLPADDING=5 width="100%" bgcolor="#f8f8f8"> |
81 |
| -<TR><TD><PRE><CODE> |
| 64 | + magick noise.png -virtual-pixel tile <i>{..transform..}</i> \ |
| 65 | + -auto_level <i>{result}</i> |
| 66 | +</code> </pre> |
| 67 | + </td> |
| 68 | + </tr> |
| 69 | + </table> |
| 70 | + </td> |
| 71 | + <td></td> |
| 72 | + <td> |
| 73 | + <a href="noise_noop.png"><img src="noise_noop.png" width="80" height="80" align="middle" vspace="0" hspace="0" border="1" alt="[IM Output]"></a> |
| 74 | + </td> |
| 75 | + </tr> |
| 76 | + <tr> |
| 77 | + <td>Random Hex Tile <font size="-1"><i>(hex tile background image)</i></font></td> |
| 78 | + </tr> |
| 79 | + <tr> |
| 80 | + <td> |
| 81 | + <table class="table table-sm table-hover table-striped" cellspacing="0" cellpadding="5" width="100%" bgcolor="#F8F8F8"> |
| 82 | + <tr> |
| 83 | + <td> |
| 84 | + <pre><code> |
82 | 85 | magick -size 50x80 xc: +noise Random -write mpr:rand \
|
83 | 86 | -extent 100x80 -page +50-40 mpr:rand \
|
84 | 87 | -page +50+40 mpr:rand -flatten hextile.png
|
85 |
| - magick hextile.png -virtual-pixel tile <I>{..transform..}</I> \ |
86 |
| - -auto_level <I>{result}</I> |
87 |
| -</CODE> </PRE></TD></TR></TABLE></TD> |
88 |
| -<TD></TD><TD></TD><TD> |
89 |
| - <A HREF="hextile_noop.png" |
90 |
| - ><IMG SRC="hextile_noop.png" WIDTH=100 HEIGHT=80 |
91 |
| - ALIGN=middle VSPACE=0 HSPACE=0 BORDER=1 ALT="[IM Output]"></A> |
92 |
| -</TD></TR> |
93 |
| -<TR><TD> <TD></TR> |
94 |
| - |
95 |
| -<!-- START --> |
96 |
| -<!-- END --> |
97 |
| - |
98 |
| -</TABLE><P> |
99 |
| - |
100 |
| -If you have or come up with a nice background generator or image transform, |
101 |
| -please let me know so it can be added here to share with others. </P> |
102 |
| - |
103 |
| - |
104 |
| -<H3>Final Important Notes</H3> |
105 |
| - |
106 |
| -The two <A HREF="../canvas/#random" >Random Noise Images</A>, being so |
107 |
| -'random' are tilable, and we use "<CODE><A |
108 |
| -HREF="../option_link.cgi?virtual-pixels" >-virtual-pixels</A></CODE>" to |
109 |
| -ensure that they remain tilable during the transformation. However the <A |
110 |
| -HREF="../canvas/#plasma" >Plasma Image</A> is not tilable to start with, so a |
111 |
| -enlarged version with the edges "<CODE><A HREF="../option_link.cgi?shave" |
112 |
| ->-shave</A></CODE>" off afterward is used to remove the unwanted edge effect |
113 |
| -of many operations. These technique is discussed further in <A |
114 |
| -HREF="../canvas/#tile_mod" >Modifying Tile Images</A>. </P> |
115 |
| - |
116 |
| -Note that the final "<CODE><A HREF="../option_link.cgi?normalize" |
117 |
| ->-auto_level</A></CODE>" is applied to most images to enhance the contrast of |
118 |
| -the results, unless the transform is marked as not requiring it so as to |
119 |
| -preserve and coloring or shadings that resulted from the transformation. </P> |
120 |
| - |
121 |
| -Because many image transformations such as, "<CODE><A |
122 |
| -HREF="../option_link.cgi?blur" >-blur</A></CODE>", "<CODE><A |
123 |
| -HREF="../option_link.cgi?emboss" >-emboss</A></CODE>", and "<CODE><A |
124 |
| -HREF="../option_link.cgi?edge" >-edge</A></CODE>" are grey-scale |
125 |
| -transformations, they work on the three color channels, completely |
126 |
| -independently of each other. As a result, in many of the images, the result |
127 |
| -looks like three separate images have been overlaid, then shaded. </P> |
128 |
| - |
129 |
| -The final example "<CODE>layered_levels</CODE>" was designed to works on each |
130 |
| -of the three levels simultaneously, while keeping them separate, until the |
131 |
| -final step where they are added together and color tinted. </P> |
132 |
| - |
133 |
| -This triple effect can be removed by either applying an initial gray-scaling |
134 |
| -operation, or extracting just one of the channels when finished. Typically I |
135 |
| -extract the '<CODE>green</CODE>' or '<CODE>G</CODE>' channel as it is normally |
136 |
| -the strongest channel in a grey scale image anyway, though any of the three |
137 |
| -channels can be used. </P> |
138 |
| - |
139 |
| -</DIV></P> |
140 |
| -<HR><!-- ---------------------------------------------------------------- --> |
141 |
| -</div></main><footer class="magick-footer"><div class="container-fluid"> |
142 |
| -Created: 15 December 2004 <BR> |
143 |
| -Updated: 20 December 2006 <BR> |
144 |
| -Author: <A HREF="http://www.ict.griffith.edu.au/anthony/anthony.html" |
145 |
| - >Anthony Thyssen</A>, <Anthony.Thyssen@gmail.com><BR> |
146 |
| -Examples Generated with: |
147 |
| - <IMG SRC="version.gif" ALIGN=absmiddle ALT="[version image]"><BR> |
148 |
| -URL: <CODE>https://imagemagick.org/Usage/backgrounds/</CODE> |
149 |
| -</div></footer></body></HTML> |
150 |
| - |
| 88 | + magick hextile.png -virtual-pixel tile <i>{..transform..}</i> \ |
| 89 | + -auto_level <i>{result}</i> |
| 90 | +</code> </pre> |
| 91 | + </td> |
| 92 | + </tr> |
| 93 | + </table> |
| 94 | + </td> |
| 95 | + <td></td> |
| 96 | + <td></td> |
| 97 | + <td> |
| 98 | + <a href="hextile_noop.png"><img src="hextile_noop.png" width="100" height="80" align="middle" vspace="0" hspace="0" border="1" alt="[IM Output]"></a> |
| 99 | + </td> |
| 100 | + </tr> |
| 101 | + <tr> |
| 102 | + <td> </td> |
| 103 | + <td></td> |
| 104 | + </tr><!-- START --> |
| 105 | + <!-- END --> |
| 106 | + </table> |
| 107 | + <p>If you have or come up with a nice background generator or image transform, please let me know so it can be added here to share with others.</p> |
| 108 | + <h3>Final Important Notes</h3>The two <a href="../canvas/#random">Random Noise Images</a>, being so 'random' are tilable, and we use "<code><a href="../option_link.cgi?virtual-pixels">-virtual-pixels</a></code>" to ensure that they remain tilable during the transformation. However the <a href="../canvas/#plasma">Plasma Image</a> is not tilable to start with, so a enlarged version with the edges "<code><a href="../option_link.cgi?shave">-shave</a></code>" off afterward is used to remove the unwanted edge effect of many operations. These technique is discussed further in <a href="../canvas/#tile_mod">Modifying Tile Images</a>. Note that the final "<code><a href="../option_link.cgi?normalize">-auto_level</a></code>" is applied to most images to enhance the contrast of the results, unless the transform is marked as not requiring it so as to preserve and coloring or shadings that resulted from the transformation. Because many image transformations such as, "<code><a href="../option_link.cgi?blur">-blur</a></code>", "<code><a href="../option_link.cgi?emboss">-emboss</a></code>", and "<code><a href="../option_link.cgi?edge">-edge</a></code>" are grey-scale transformations, they work on the three color channels, completely independently of each other. As a result, in many of the images, the result looks like three separate images have been overlaid, then shaded. The final example "<code>layered_levels</code>" was designed to works on each of the three levels simultaneously, while keeping them separate, until the final step where they are added together and color tinted. This triple effect can be removed by either applying an initial gray-scaling operation, or extracting just one of the channels when finished. Typically I extract the '<code>green</code>' or '<code>G</code>' channel as it is normally the strongest channel in a grey scale image anyway, though any of the three channels can be used. |
| 109 | + </div> |
| 110 | + <hr> |
| 111 | + <!-- ---------------------------------------------------------------- --> |
| 112 | + </div> |
| 113 | + </div> |
| 114 | + </main> |
| 115 | + <footer class="magick-footer"> |
| 116 | + <div class="container-fluid"> |
| 117 | + Created: 15 December 2004<br> |
| 118 | + Updated: 20 December 2006<br> |
| 119 | + Author: <a href="http://www.ict.griffith.edu.au/anthony/anthony.html">Anthony Thyssen</a>, <Anthony.Thyssen@gmail.com><br> |
| 120 | + Examples Generated with: <img src="version.gif" align="absmiddle" alt="[version image]"><br> |
| 121 | + URL: <code>https://imagemagick.org/Usage/backgrounds/</code> |
| 122 | + </div> |
| 123 | + </footer> |
| 124 | +</body> |
| 125 | +</html> |
0 commit comments