Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix weird char and bad link, #83

Merged
merged 1 commit into from
Jan 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/color-thresholding.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<p>Now, pick two RGB colors: <samp>sRGB(159,150,0)</samp> and <samp>sRGB(205,100,45):</samp></p>

<ul><pre class="code">magick monet.jpg -color-threshold 'sRGB(159,150,0)-sRGB(205,100,45)' monet.gif</samp></ul>

<ul><img class="img-fluid d-block" src="<?php echo $_SESSION['RelativePath']?>/../image/color-thresholding-rgb.gif" alt="[Color Thresholding]" width="265" height="333" name="color-thresholding" /></ul>

<p>Next, select one sRGB color and convert it to HSV and offset its values low and high to generate the start and stop HSV colors. Use -colorspace HSV to convert the image to HSV. For our HSV example, we pick <samp>sRGB(183,132,20)</samp> and convert to HSV:</p>
Expand All @@ -37,13 +37,13 @@
<p>Now, offset its HSV values as H=41+-20, S=89+-10, and V=72+-10, to create the start color (-) and stop color (+):</p>

<ul><pre class="code">magick monet.jpg -colorspace HSV -color-threshold 'hsv(21,79%,62%)-hsv(61,99%,85%)' monet.gif</pre></ul>

<ul><img class="img-fluid d-block" src="<?php echo $_SESSION['RelativePath']?>/../image/color-thresholding-rgb.gif" alt="[Color Thresholding]" width="265" height="333" name="color-thresholding" /></ul>

<p>Next, pick two RGB colors. Use <samp>-colorspace HSV</samp> to convert the image to HSV, and apply the RGB start and stop colors. Choose <samp>sRGB(158,77,33)</samp> and <samp>sRGB(213,217,2)</samp>:</p>

<ul><pre class="code">magick monet.jpg -colorspace HSV -color-threshold "sRGB(158,77,33)-sRGB(213,217,2)" monet.gif</pre></ul>

<p>Here is the expected results:</p>

<ul><img class="img-fluid d-block" src="<?php echo $_SESSION['RelativePath']?>/../image/color-thresholding-hsv-rgb.gif" alt="[Color Thresholding]" width="265" height="333" name="color-thresholding" /></ul>
Expand All @@ -65,6 +65,6 @@
<ul><pre class="code">magick monet.jpg -colorspace gray -color-threshold 'gray(46.4152%)-gray(55.3278%)' monet.gif</pre></ul>

<p>Here is the results of the color thresholding operation:</p>

<ul><img class="img-fluid d-block" src="<?php echo $_SESSION['RelativePath']?>/../image/color-thresholding-gray.gif" alt="[Color Thresholding]" width="265" height="333" name="Color Thresholding" /></ul>
</div>
10 changes: 5 additions & 5 deletions include/command-line-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -3031,11 +3031,11 @@ function (its frequency), and thus determines the number of 'waves' that will
"Courier" might be used if "System" is requested but not found). Note, the family can be a CSS-style font list.</p>

<p>For other settings that affect fonts, see the options
<a href="command-line-options.html#font">-font</a>,
<a href="command-line-options.html#pointsize">-pointsize</a>,
<a href="command-line-options.html#stretch">-stretch</a>,
<a href="command-line-options.html#style">-style</a>,
and <a href="command-line-options.html#weight">-weight</a>. </p>
<a href="command-line-options.php#font">-font</a>,
<a href="command-line-options.php#pointsize">-pointsize</a>,
<a href="command-line-options.php#stretch">-stretch</a>,
<a href="command-line-options.php#style">-style</a>,
and <a href="command-line-options.php#weight">-weight</a>. </p>

<div style="margin: auto;">
<h2><a class="anchor" id="features"></a>-features <var>distance</var></h2>
Expand Down