| 1 |
From: =?utf-8?q?Bastien_Roucari=C3=A8s?= <[email protected]> |
| 2 |
Date: Mon, 11 Jan 2021 22:42:36 +0000 |
| 3 |
Subject: Finalize fixing error in html |
| 4 |
|
| 5 |
Forwarded: no |
| 6 |
--- |
| 7 |
www/api/index.html | 2 +- |
| 8 |
www/architecture/index.html | 125 ++++++++++++++---------------------- |
| 9 |
www/binary-releases/index.html | 2 +- |
| 10 |
www/command-line-options/index.html | 1 - |
| 11 |
www/defines/index.html | 16 ++--- |
| 12 |
www/download/index.html | 2 +- |
| 13 |
www/support/index.html | 2 +- |
| 14 |
www/webp/index.html | 1 + |
| 15 |
8 files changed, 59 insertions(+), 92 deletions(-) |
| 16 |
|
| 17 |
diff --git a/www/api/index.html b/www/api/index.html |
| 18 |
index 3c487b5..244cb4d 100644 |
| 19 |
--- a/www/api/index.html |
| 20 |
+++ b/www/api/index.html |
| 21 |
@@ -218,7 +218,7 @@ |
| 22 |
</footer> |
| 23 |
|
| 24 |
<!-- Javascript assets --> |
| 25 |
|
| 26 |
+ <script src="assets/magick.js" crossorigin="anonymous" /> |
| 27 |
<script>window.jQuery || document.write('<script src="assets/jquery.min.js"><\/script>')</script> |
| 28 |
</body> |
| 29 |
</html> |
| 30 |
diff --git a/www/architecture/index.html b/www/architecture/index.html |
| 31 |
index c61bf10..bb90230 100644 |
| 32 |
--- a/www/architecture/index.html |
| 33 |
+++ b/www/architecture/index.html |
| 34 |
@@ -1535,63 +1535,40 @@ $ display logo.mgk |
| 35 |
% o exception: return any errors or warnings in this structure. |
| 36 |
% |
| 37 |
*/ |
| 38 |
|
| 39 |
|
| 40 |
+ModuleExport size_t analyzeImage(Image **images,const int argc,const char **argv, |
| 41 |
+ ExceptionInfo *exception) |
| 42 |
{ |
| 43 |
+ char |
| 44 |
+ text[MaxTextExtent]; |
| 45 |
+ |
| 46 |
double |
| 47 |
area, |
| 48 |
brightness, |
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
+ brightness_mean, |
| 88 |
+ brightness_standard_deviation, |
| 89 |
+ brightness_kurtosis, |
| 90 |
+ brightness_skewness, |
| 91 |
+ brightness_sum_x, |
| 92 |
+ brightness_sum_x2, |
| 93 |
+ brightness_sum_x3, |
| 94 |
+ brightness_sum_x4, |
| 95 |
+ hue, |
| 96 |
+ saturation, |
| 97 |
+ saturation_mean, |
| 98 |
+ saturation_standard_deviation, |
| 99 |
+ saturation_kurtosis, |
| 100 |
+ saturation_skewness, |
| 101 |
+ saturation_sum_x, |
| 102 |
+ saturation_sum_x2, |
| 103 |
+ saturation_sum_x3, |
| 104 |
+ saturation_sum_x4; |
| 105 |
|
| 106 |
Image |
| 107 |
*image; |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
assert(images != (Image **) NULL); |
| 116 |
assert(*images != (Image *) NULL); |
| 117 |
|
| 118 |
+ assert((*images)->signature == MagickSignature); |
| 119 |
(void) argc; |
| 120 |
(void) argv; |
| 121 |
status=MagickTrue; |
| 122 |
@@ -1601,40 +1578,42 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, |
| 123 |
CacheView |
| 124 |
*image_view; |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
+ MagickBooleanType |
| 129 |
+ status; |
| 130 |
|
| 131 |
ssize_t |
| 132 |
y; |
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
+ brightness_sum_x=0.0; |
| 143 |
+ brightness_sum_x2=0.0; |
| 144 |
+ brightness_sum_x3=0.0; |
| 145 |
+ brightness_sum_x4=0.0; |
| 146 |
+ brightness_mean=0.0; |
| 147 |
+ brightness_standard_deviation=0.0; |
| 148 |
+ brightness_kurtosis=0.0; |
| 149 |
+ brightness_skewness=0.0; |
| 150 |
+ saturation_sum_x=0.0; |
| 151 |
+ saturation_sum_x2=0.0; |
| 152 |
+ saturation_sum_x3=0.0; |
| 153 |
+ saturation_sum_x4=0.0; |
| 154 |
+ saturation_mean=0.0; |
| 155 |
+ saturation_standard_deviation=0.0; |
| 156 |
+ saturation_kurtosis=0.0; |
| 157 |
+ saturation_skewness=0.0; |
| 158 |
+ area=0.0; |
| 159 |
status=MagickTrue; |
| 160 |
image_view=AcquireVirtualCacheView(image,exception); |
| 161 |
#if defined(MAGICKCORE_OPENMP_SUPPORT) |
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
+ #pragma omp parallel for schedule(static,4) shared(status) |
| 166 |
#endif |
| 167 |
|
| 168 |
+ for (y=0; y < (ssize_t) image->rows; y++) |
| 169 |
{ |
| 170 |
const Quantum |
| 171 |
*p; |
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
+ register ssize_t |
| 176 |
x; |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
if (status == MagickFalse) |
| 183 |
continue; |
| 184 |
p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception); |
| 185 |
@@ -1643,9 +1622,7 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, |
| 186 |
status=MagickFalse; |
| 187 |
continue; |
| 188 |
} |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
+ for (x=0; x < (ssize_t) image->columns; x++) |
| 193 |
{ |
| 194 |
double |
| 195 |
b, |
| 196 |
@@ -1662,14 +1639,6 @@ ModuleExport size_t analyzeImage(Image **images,const int argc, |
| 197 |
local_saturation.sum[i]+=pow(s,(double) i); |
| 198 |
p+=GetPixelChannels(image); |
| 199 |
} |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
} |
| 209 |
image_view=DestroyCacheView(image_view); |
| 210 |
area=(double) image->columns*image->rows; |
| 211 |
diff --git a/www/binary-releases/index.html b/www/binary-releases/index.html |
| 212 |
index 6119b51..8cc806a 100644 |
| 213 |
--- a/www/binary-releases/index.html |
| 214 |
+++ b/www/binary-releases/index.html |
| 215 |
@@ -488,7 +488,7 @@ objShell.Exec("convert ""e:/myimages/image.png"" ""e:/myimages/image.jpg""") |
| 216 |
</footer> |
| 217 |
|
| 218 |
<!-- Javascript assets --> |
| 219 |
|
| 220 |
+ <script src="assets/magick.js" crossorigin="anonymous" /> |
| 221 |
<script>window.jQuery || document.write('<script src="assets/jquery.min.js"><\/script>')</script> |
| 222 |
</body> |
| 223 |
</html> |
| 224 |
diff --git a/www/command-line-options/index.html b/www/command-line-options/index.html |
| 225 |
index 7c3a3ae..8a1b611 100644 |
| 226 |
--- a/www/command-line-options/index.html |
| 227 |
+++ b/www/command-line-options/index.html |
| 228 |
@@ -3376,7 +3376,6 @@ image sequence.</p> |
| 229 |
Decipher an Image</a>.</p> |
| 230 |
|
| 231 |
|
| 232 |
|
| 233 |
<div style="mx-auto my-3 text-center"> |
| 234 |
<h2><a class="anchor" id="encoding"></a>-encoding <var>type</var></h2> |
| 235 |
</div> |
| 236 |
diff --git a/www/defines/index.html b/www/defines/index.html |
| 237 |
index c783fd4..f2b0129 100644 |
| 238 |
--- a/www/defines/index.html |
| 239 |
+++ b/www/defines/index.html |
| 240 |
@@ -243,7 +243,7 @@ use:</p> |
| 241 |
</tr> |
| 242 |
|
| 243 |
<tr> |
| 244 |
|
| 245 |
+ <td colspan="2"><p></p></td> |
| 246 |
</tr> |
| 247 |
|
| 248 |
<tr> |
| 249 |
@@ -876,11 +876,11 @@ use:</p> |
| 250 |
</tr> |
| 251 |
|
| 252 |
<tr> |
| 253 |
|
| 254 |
+ <td colspan="2"><p></p></td> |
| 255 |
</tr> |
| 256 |
|
| 257 |
<tr> |
| 258 |
|
| 259 |
+ <td colspan="2"><p></p></td> |
| 260 |
</tr> |
| 261 |
|
| 262 |
<tr> |
| 263 |
@@ -888,7 +888,7 @@ use:</p> |
| 264 |
</tr> |
| 265 |
|
| 266 |
<tr> |
| 267 |
|
| 268 |
+ <td colspan="2"><p></p></td> |
| 269 |
</tr> |
| 270 |
|
| 271 |
<tr> |
| 272 |
@@ -1466,7 +1466,6 @@ use:</p> |
| 273 |
<td>png:exclude-chunk=<var>value</var></td> |
| 274 |
<td> </td> |
| 275 |
</tr> |
| 276 |
|
| 277 |
<tr> |
| 278 |
<td>png:include-chunk=<var>value</var></td> |
| 279 |
<td>ancillary chunks to be excluded from or included in PNG output. |
| 280 |
@@ -1805,15 +1804,15 @@ use:</p> |
| 281 |
</tr> |
| 282 |
|
| 283 |
<tr> |
| 284 |
|
| 285 |
+ <td colspan="2"><p></p></td> |
| 286 |
</tr> |
| 287 |
|
| 288 |
<tr> |
| 289 |
|
| 290 |
+ <td colspan="2"><p></p></td> |
| 291 |
</tr> |
| 292 |
|
| 293 |
<tr> |
| 294 |
|
| 295 |
+ <th align="center" colspan="2">PSEUDO-IMAGE FORMATS</th> |
| 296 |
</tr> |
| 297 |
|
| 298 |
<tr> |
| 299 |
@@ -1835,7 +1834,6 @@ use:</p> |
| 300 |
clockwise positive manner from its normal X-Y orientation. |
| 301 |
Supported in Imagemagick 6.9.2-5.</td> |
| 302 |
</tr> |
| 303 |
|
| 304 |
<tr> |
| 305 |
<td>gradient:bounding-box=<var>WxH+X+Y</var></td> |
| 306 |
<td>Limit the gradient to a larger or smaller region than |
| 307 |
diff --git a/www/download/index.html b/www/download/index.html |
| 308 |
index b116336..adad2df 100644 |
| 309 |
--- a/www/download/index.html |
| 310 |
+++ b/www/download/index.html |
| 311 |
@@ -628,7 +628,7 @@ |
| 312 |
<td>Portable Win32 static at 16 bits-per-pixel component with <a href="../high-dynamic-range/index.html">high dynamic-range imaging</a> enabled. Just copy to your host and run (no installer, no Windows registry entries).</td> |
| 313 |
</tr> |
| 314 |
|
| 315 |
|
| 316 |
+ </tbody> |
| 317 |
</table></div> |
| 318 |
|
| 319 |
<p>Verify its |
| 320 |
diff --git a/www/support/index.html b/www/support/index.html |
| 321 |
index 94a12b8..5075bf0 100644 |
| 322 |
--- a/www/support/index.html |
| 323 |
+++ b/www/support/index.html |
| 324 |
@@ -249,7 +249,7 @@ |
| 325 |
<p>For direct monetary contributions, click on the donate button to contribute thru Paypal or with a credit card:</p> |
| 326 |
|
| 327 |
<ul> |
| 328 |
|
| 329 |
+<a href="https://www.paypal.com/biz/fund?id=9XPKRUWDXRR8J"><img "image" src="../image/donate.png" border="0" name="submit" alt="Sponsor ImageMagick" width="92" height="26"></img></a> |
| 330 |
</ul> |
| 331 |
|
| 332 |
<h2>Bitcoin</h2> |
| 333 |
diff --git a/www/webp/index.html b/www/webp/index.html |
| 334 |
index db42f7a..466e326 100644 |
| 335 |
--- a/www/webp/index.html |
| 336 |
+++ b/www/webp/index.html |
| 337 |
@@ -370,6 +370,7 @@ |
| 338 |
<td>use-sharp-yuv=<var>value</var></td> |
| 339 |
<td>if needed, use sharp (and slow) RGB->YUV conversion.</td> |
| 340 |
</tr> |
| 341 |
+</tbody> |
| 342 |
</table></div> |
| 343 |
</div> |
| 344 |
|