Skip to content

Commit

Permalink
Corrected version numbers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 21, 2024
1 parent eba5f72 commit 8a3b71a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion masking/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ <h4>Alpha Shape</h4>To make use of a gray-scale image easier, the '<code>Shape</
<td align="justify" width="100%"><font size="-1"><i>The above will map the colors using a linear colorspace, and may need to be converted to sRGB at some point to get a more visually correct gradient of colors.</i></font></td>
</tr>
</table><a name="alpha_remove" id="alpha_remove"></a>
<h4>Alpha Remove</h4>The "<code><a href="https://imagemagick.org/script/command-line-options.php?#alpha">-alpha</a> <b>Remove</b></code>" method (added to IMv7.7.5) is designed to remove the transparency from an image, using the current "<code><a href="https://imagemagick.org/script/command-line-options.php?#background">-background</a></code>".
<h4>Alpha Remove</h4>The "<code><a href="https://imagemagick.org/script/command-line-options.php?#alpha">-alpha</a> <b>Remove</b></code>" method (added to IMv6.7.5) is designed to remove the transparency from an image, using the current "<code><a href="https://imagemagick.org/script/command-line-options.php?#background">-background</a></code>".
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td width="100%" align="justify">
Expand Down
2 changes: 1 addition & 1 deletion misc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ <h3>Interpolation of a Rotated Line</h3>Here I demonstrate the various interpola
<br>
See <a href="../warping/#rotate_line">Rotating a Thin Line</a> for an example of using the <code><a href="https://imagemagick.org/script/command-line-options.php?#rotate">-rotate</a></code>" operator in this way, and the resulting pixel level effects.<br>
<br>
Update: As of IMv7.7.3-4 the rotate operator is now internally using <a href="../distorts/#distort">Distort Operator</a>, so the above many no longer be true.<br>
Update: As of IMv6.7.3-4 the rotate operator is now internally using <a href="../distorts/#distort">Distort Operator</a>, so the above many no longer be true.<br>
<br></i></font></td>
</tr>
</table><a name="interpolate_edge" id="interpolate_edge"></a>
Expand Down
6 changes: 3 additions & 3 deletions warping/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ <h3>Rotating Images -- <font size="-1">Simple Image Rotation</font></h3>As you s
</td>
</tr>
</table>The "<a href="https://imagemagick.org/script/command-line-options.php?#rotate"><code>-rotate</code></a>" operator also understands two extra flags. If a '<code>&gt;</code>' symbol is added to the rotate argument (before or after the number), then the image will only be rotated if the image is wider than it is taller. That is a '<code>90&gt;</code>' will only rotate 'landscape' (wide) style images into 'portrait' (tall) style images, so that all th images are 'portrait' style. The other flag '<code>&lt;</code>' does the opposite, only rotate images that are taller than it is wide. For example '<code>90&lt;</code>' will make sure all images are 'landscape'. Another use of this flag is to rotate 'portrait' and 'landscape' images by different amounts. That is, you can just give two different "<a href="https://imagemagick.org/script/command-line-options.php?#rotate"><code>-rotate</code></a>" operations such that you angle 'portrait' one direction, and angle 'landscape' another direction. Digital photos can also be rotated to match the <a href="../photos/#orient">Camera Orientation</a> (based on the images EXIF meta-data) by using the "<a href="https://imagemagick.org/script/command-line-options.php?#auto-orient"><code>-auto-orient</code></a>" operator. However remember saving back to JPEG format may not be a good idea. <a name="rotate_internals" id="rotate_internals"></a>
<h4>Rotate Operator Internals</h4>As of IMv7.7.3-4 the <a href="#rotate">Rotate Operator</a> is now using <a href="../distorts/#distort">Distort Operator</a> and <a href="../distorts/#srt">Scale-Rotate-Translate (SRT) Distortion</a>.
<h4>Rotate Operator Internals</h4>As of IMv6.7.3-4 the <a href="#rotate">Rotate Operator</a> is now using <a href="../distorts/#distort">Distort Operator</a> and <a href="../distorts/#srt">Scale-Rotate-Translate (SRT) Distortion</a>.
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="100%" align="justify">
Expand Down Expand Up @@ -415,7 +415,7 @@ <h4>Rotate Operator Internals</h4>As of IMv7.7.3-4 the <a href="#rotate">Rotate
<a href="rotate_srt2.jpg"><img src="rotate_srt2.jpg" align="middle" vspace="0" hspace="5" border="1" alt="[IM Output]"></a>
</td>
</tr>
</table>There are many other controls provided by the <a href="../distorts/#distort">General Distort Operator</a> for things like exact positioning of the center of rotation, scaling, filter control, output image size, and controls for <a href="../layers/">Image Layering</a>, that the simplier <a href="#rotate">Rotate Operator</a>, does not provide. Before IMv7.7.3-4 the <a href="#rotate">Rotate Operator</a> was implemented using <a href="#simple">Simple 90 rotation Distorts</a> followed by three <a href="#shear">Image Shears</a>, a technique known as 'Rotate by Shear' (RBS). A technique first publish in research papers by Alan Paeth. Unfortuanteally because this requires 3 separate shearing operations, you get highly variable and sever bluring effects, especially when shearing thin lines, which is why rotate is now implemented using Distort. You can see the detremental effects of this in the rotation <a href="#animations">Animations</a> below. The library function that did rotates as 'shears' is still available in the API, but no longer available from the command line, unless you do the shears yourself. See <a href="#shear">Shear Operator</a> below the full deatils of the technique.For a more deeper understanding of the various image rotation algorithms, how they work, and the issues involved see <a href="http://www.leptonica.com/rotation.html">Leptonica Rotation</a>. And the examples used in <a href="../distorts/#summary">General Distortion Techniques</a>. <a name="shear" id="shear"></a>
</table>There are many other controls provided by the <a href="../distorts/#distort">General Distort Operator</a> for things like exact positioning of the center of rotation, scaling, filter control, output image size, and controls for <a href="../layers/">Image Layering</a>, that the simplier <a href="#rotate">Rotate Operator</a>, does not provide. Before IMv6.7.3-4 the <a href="#rotate">Rotate Operator</a> was implemented using <a href="#simple">Simple 90 rotation Distorts</a> followed by three <a href="#shear">Image Shears</a>, a technique known as 'Rotate by Shear' (RBS). A technique first publish in research papers by Alan Paeth. Unfortuanteally because this requires 3 separate shearing operations, you get highly variable and sever bluring effects, especially when shearing thin lines, which is why rotate is now implemented using Distort. You can see the detremental effects of this in the rotation <a href="#animations">Animations</a> below. The library function that did rotates as 'shears' is still available in the API, but no longer available from the command line, unless you do the shears yourself. See <a href="#shear">Shear Operator</a> below the full deatils of the technique.For a more deeper understanding of the various image rotation algorithms, how they work, and the issues involved see <a href="http://www.leptonica.com/rotation.html">Leptonica Rotation</a>. And the examples used in <a href="../distorts/#summary">General Distortion Techniques</a>. <a name="shear" id="shear"></a>
<h3>Shearing Images -- <font size="-1">Linear displacement</font></h3>The "<a href="https://imagemagick.org/script/command-line-options.php?#shear"><code>-shear</code></a>" operator takes each row (or column) of pixels and slides them along so that each row (or column) is displaced by the same amount relative to the neighbouring row (or column). Its two arguments are given in terms of angles. Just as with "<a href="https://imagemagick.org/script/command-line-options.php?#rotate"><code>-rotate</code></a>" the operation increases the size of the resulting image so as not to loose any information. However shear is more complex in that it is really a double operation.
<div align="center">
<table class="table table-sm table-hover table-striped" cellspacing="0" cellpadding="5" width="90%" bgcolor="#F8F8F8">
Expand Down Expand Up @@ -941,7 +941,7 @@ <h2>Animations <font size="-1">(fun examples)</font></h2>To finish off with lets
<table border="0" cellspacing="0" cellpadding="0" width="90%" align="center">
<tr valign="top">
<td><img src="../img_www/warning.gif" width="28" height="28"><img src="../img_www/space.gif" width="12" height="16"></td>
<td align="justify" width="100%"><font size="-1"><i>Update: As of IMv7.7.3-4 the <a href="#rotate">Rotate Operator</a> is now using <a href="../distorts/#distort">Distort Operator</a> and <a href="../distorts/#srt">SRT Distortion</a>. As such the previous example will now produce the much less blury result of the next example.</i></font></td>
<td align="justify" width="100%"><font size="-1"><i>Update: As of IMv6.7.3-4 the <a href="#rotate">Rotate Operator</a> is now using <a href="../distorts/#distort">Distort Operator</a> and <a href="../distorts/#srt">SRT Distortion</a>. As such the previous example will now produce the much less blury result of the next example.</i></font></td>
</tr>
</table>
</td>
Expand Down

0 comments on commit 8a3b71a

Please sign in to comment.