From: =?utf-8?q?Bastien_Roucari=C3=A8s?= Date: Mon, 11 Jan 2021 22:42:36 +0000 Subject: Finalize fixing error in html Forwarded: no --- www/advanced-unix-installation.html | 3 +- www/api.html | 2 +- www/architecture.html | 125 ++++++++++++++---------------------- www/binary-releases.html | 2 +- www/command-line-options.html | 5 +- www/defines.html | 24 ++++--- www/download.html | 2 +- www/support.html | 2 +- www/webp.html | 1 + 9 files changed, 66 insertions(+), 100 deletions(-) Index: imagemagick/www/advanced-unix-installation.html =================================================================== --- imagemagick.orig/www/advanced-unix-installation.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/advanced-unix-installation.html 2026-07-07 10:22:12.108875986 +0200 @@ -642,8 +642,7 @@ - + + Index: imagemagick/www/architecture.html =================================================================== --- imagemagick.orig/www/architecture.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/architecture.html 2026-07-07 10:22:12.109160308 +0200 @@ -1457,63 +1457,40 @@ % o exception: return any errors or warnings in this structure. % */ - -typedef struct _StatisticsInfo +ModuleExport size_t analyzeImage(Image **images,const int argc,const char **argv, + ExceptionInfo *exception) { + char + text[MaxTextExtent]; + double area, brightness, - mean, - standard_deviation, - sum[5], - kurtosis, - skewness; -} StatisticsInfo; - -static inline int GetMagickNumberThreads(const Image *source, - const Image *destination,const size_t chunk,int multithreaded) -{ -#define MagickMax(x,y) (((x) > (y)) ? (x) : (y)) -#define MagickMin(x,y) (((x) < (y)) ? (x) : (y)) - - /* - Number of threads bounded by the amount of work and any thread resource - limit. The limit is 2 if the pixel cache type is not memory or - memory-mapped. - */ - if (multithreaded == 0) - return(1); - if (((GetImagePixelCacheType(source) != MemoryCache) && - (GetImagePixelCacheType(source) != MapCache)) || - ((GetImagePixelCacheType(destination) != MemoryCache) && - (GetImagePixelCacheType(destination) != MapCache))) - return(MagickMax(MagickMin(GetMagickResourceLimit(ThreadResource),2),1)); - return(MagickMax(MagickMin((ssize_t) GetMagickResourceLimit(ThreadResource), - (ssize_t) (chunk)/64),1)); -} - -ModuleExport size_t analyzeImage(Image **images,const int argc, - const char **argv,ExceptionInfo *exception) -{ -#define AnalyzeImageFilterTag "Filter/Analyze" -#define magick_number_threads(source,destination,chunk,multithreaded) \ - num_threads(GetMagickNumberThreads(source,destination,chunk,multithreaded)) - - char - text[MagickPathExtent]; + brightness_mean, + brightness_standard_deviation, + brightness_kurtosis, + brightness_skewness, + brightness_sum_x, + brightness_sum_x2, + brightness_sum_x3, + brightness_sum_x4, + hue, + saturation, + saturation_mean, + saturation_standard_deviation, + saturation_kurtosis, + saturation_skewness, + saturation_sum_x, + saturation_sum_x2, + saturation_sum_x3, + saturation_sum_x4; Image *image; - MagickBooleanType - status; - - MagickOffsetType - progress; - assert(images != (Image **) NULL); assert(*images != (Image *) NULL); - assert((*images)->signature == MagickCoreSignature); + assert((*images)->signature == MagickSignature); (void) argc; (void) argv; status=MagickTrue; @@ -1523,40 +1500,42 @@ CacheView *image_view; - double - area; + MagickBooleanType + status; ssize_t y; - StatisticsInfo - brightness, - saturation; - - if (status == MagickFalse) - continue; - (void) memset(&brightness,0,sizeof(brightness)); - (void) memset(&saturation,0,sizeof(saturation)); + brightness_sum_x=0.0; + brightness_sum_x2=0.0; + brightness_sum_x3=0.0; + brightness_sum_x4=0.0; + brightness_mean=0.0; + brightness_standard_deviation=0.0; + brightness_kurtosis=0.0; + brightness_skewness=0.0; + saturation_sum_x=0.0; + saturation_sum_x2=0.0; + saturation_sum_x3=0.0; + saturation_sum_x4=0.0; + saturation_mean=0.0; + saturation_standard_deviation=0.0; + saturation_kurtosis=0.0; + saturation_skewness=0.0; + area=0.0; status=MagickTrue; image_view=AcquireVirtualCacheView(image,exception); #if defined(MAGICKCORE_OPENMP_SUPPORT) - #pragma omp parallel for schedule(static) \ - shared(progress,status,brightness,saturation) \ - magick_number_threads(image,image,image->rows,1) + #pragma omp parallel for schedule(static,4) shared(status) #endif - for (y=0; y < (ssize_t) image->rows; y++) + for (y=0; y < (ssize_t) image->rows; y++) { const Quantum *p; - ssize_t - i, + register ssize_t x; - StatisticsInfo - local_brightness, - local_saturation; - if (status == MagickFalse) continue; p=GetCacheViewVirtualPixels(image_view,0,y,image->columns,1,exception); @@ -1565,9 +1544,7 @@ status=MagickFalse; continue; } - (void) memset(&local_brightness,0,sizeof(local_brightness)); - (void) memset(&local_saturation,0,sizeof(local_saturation)); - for (x=0; x < (ssize_t) image->columns; x++) + for (x=0; x < (ssize_t) image->columns; x++) { double b, @@ -1584,14 +1561,6 @@ local_saturation.sum[i]+=pow(s,(double) i); p+=GetPixelChannels(image); } -#if defined(MAGICKCORE_OPENMP_SUPPORT) - #pragma omp critical (analyzeImage) -#endif - for (i=1; i <= 4; i++) - { - brightness.sum[i]+=local_brightness.sum[i]; - saturation.sum[i]+=local_saturation.sum[i]; - } } image_view=DestroyCacheView(image_view); area=(double) image->columns*image->rows; Index: imagemagick/www/binary-releases.html =================================================================== --- imagemagick.orig/www/binary-releases.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/binary-releases.html 2026-07-07 10:22:12.109344417 +0200 @@ -488,7 +488,7 @@ - + Index: imagemagick/www/command-line-options.html =================================================================== --- imagemagick.orig/www/command-line-options.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/command-line-options.html 2026-07-07 10:22:12.109836422 +0200 @@ -3377,8 +3377,6 @@

For more information, see the webpage, ImageMagick: Encipher or Decipher an Image.

- -

-encoding type

@@ -8030,7 +8028,8 @@

-white-balance

Applies white balancing to an image according to a grayworld assumption in the LAB colorspace.

-

Use -define white-balance:vibrance=value{%} to change the color vibrance of the a & b channels.

+ +

Use -define white-balance:vibrance=value{%} to change the color vibrance of the a & b channels.

-white-point x,y

Index: imagemagick/www/defines.html =================================================================== --- imagemagick.orig/www/defines.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/defines.html 2026-07-07 10:22:12.110332421 +0200 @@ -173,7 +173,7 @@ -

+

@@ -806,11 +806,11 @@ -

+

-

+

@@ -818,7 +818,7 @@ -

+

@@ -1371,7 +1371,6 @@ png:exclude-chunk=value - png:include-chunk=value ancillary chunks to be excluded from or included in PNG output. @@ -1715,15 +1714,15 @@ -

+

-

+

- PSEUDO-IMAGE FORMATS + PSEUDO-IMAGE FORMATS @@ -1745,7 +1744,6 @@ clockwise positive manner from its normal X-Y orientation. Supported in Imagemagick 6.9.2-5. - gradient:bounding-box=WxH+X+Y Limit the gradient to a larger or smaller region than @@ -1908,19 +1906,19 @@ -

+

-

+

- Identify Defines + Identify Defines -

+

Index: imagemagick/www/download.html =================================================================== --- imagemagick.orig/www/download.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/download.html 2026-07-07 10:22:12.110494036 +0200 @@ -340,7 +340,7 @@ ImageMagick-x86_64-apple-darwin20.1.0.tar.gz macOS High Sierra - +

Verify its message digest.

Index: imagemagick/www/support.html =================================================================== --- imagemagick.orig/www/support.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/support.html 2026-07-07 10:22:12.110577037 +0200 @@ -179,7 +179,7 @@

For direct monetary contributions, click on the donate button to contribute thru Paypal or with a credit card:

Bitcoin

Index: imagemagick/www/webp.html =================================================================== --- imagemagick.orig/www/webp.html 2026-07-07 10:22:12.112989341 +0200 +++ imagemagick/www/webp.html 2026-07-07 10:22:12.110646311 +0200 @@ -249,6 +249,7 @@ use-sharp-yuv=value if needed, use sharp (and slow) RGB->YUV conversion. +