MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
identify.c
Go to the documentation of this file.
1 /*
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % %
4 % %
5 % %
6 % IIIII DDDD EEEEE N N TTTTT IIIII FFFFF Y Y %
7 % I D D E NN N T I F Y Y %
8 % I D D EEE N N N T I FFF Y %
9 % I D D E N NN T I F Y %
10 % IIIII DDDD EEEEE N N T IIIII F Y %
11 % %
12 % %
13 % Identify an Image Format and Characteristics. %
14 % %
15 % Software Design %
16 % Cristy %
17 % September 1994 %
18 % %
19 % %
20 % Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization %
21 % dedicated to making software imaging solutions freely available. %
22 % %
23 % You may not use this file except in compliance with the License. You may %
24 % obtain a copy of the License at %
25 % %
26 % https://www.imagemagick.org/script/license.php %
27 % %
28 % Unless required by applicable law or agreed to in writing, software %
29 % distributed under the License is distributed on an "AS IS" BASIS, %
30 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %
31 % See the License for the specific language governing permissions and %
32 % limitations under the License. %
33 % %
34 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
35 %
36 % Identify describes the format and characteristics of one or more image
37 % files. It will also report if an image is incomplete or corrupt.
38 %
39 %
40 */
41 
42 /*
43  Include declarations.
44 */
45 #include "MagickCore/studio.h"
46 #include "MagickCore/annotate.h"
47 #include "MagickCore/artifact.h"
48 #include "MagickCore/attribute.h"
49 #include "MagickCore/blob.h"
50 #include "MagickCore/cache.h"
51 #include "MagickCore/client.h"
52 #include "MagickCore/coder.h"
53 #include "MagickCore/color.h"
54 #include "MagickCore/configure.h"
55 #include "MagickCore/constitute.h"
56 #include "MagickCore/decorate.h"
57 #include "MagickCore/delegate.h"
58 #include "MagickCore/draw.h"
59 #include "MagickCore/effect.h"
60 #include "MagickCore/exception.h"
62 #include "MagickCore/feature.h"
63 #include "MagickCore/gem.h"
64 #include "MagickCore/geometry.h"
65 #include "MagickCore/histogram.h"
66 #include "MagickCore/identify.h"
67 #include "MagickCore/image.h"
69 #include "MagickCore/list.h"
70 #include "MagickCore/locale_.h"
71 #include "MagickCore/log.h"
72 #include "MagickCore/magic.h"
73 #include "MagickCore/magick.h"
74 #include "MagickCore/memory_.h"
75 #include "MagickCore/module.h"
76 #include "MagickCore/monitor.h"
77 #include "MagickCore/montage.h"
78 #include "MagickCore/option.h"
80 #include "MagickCore/prepress.h"
81 #include "MagickCore/profile.h"
82 #include "MagickCore/property.h"
83 #include "MagickCore/quantize.h"
84 #include "MagickCore/quantum.h"
85 #include "MagickCore/random_.h"
86 #include "MagickCore/registry.h"
87 #include "MagickCore/resize.h"
88 #include "MagickCore/resource_.h"
89 #include "MagickCore/signature.h"
90 #include "MagickCore/statistic.h"
91 #include "MagickCore/string_.h"
93 #include "MagickCore/timer.h"
94 #include "MagickCore/token.h"
95 #include "MagickCore/utility.h"
97 #include "MagickCore/version.h"
98 
99 /*
100 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
101 % %
102 % %
103 % %
104 % I d e n t i f y I m a g e %
105 % %
106 % %
107 % %
108 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
109 %
110 % IdentifyImage() identifies an image by printing its attributes to the file.
111 % Attributes include the image width, height, size, and others.
112 %
113 % The format of the IdentifyImage method is:
114 %
115 % MagickBooleanType IdentifyImage(Image *image,FILE *file,
116 % const MagickBooleanType verbose,ExceptionInfo *exception)
117 %
118 % A description of each parameter follows:
119 %
120 % o image: the image.
121 %
122 % o file: the file, typically stdout.
123 %
124 % o verbose: A value other than zero prints more detailed information
125 % about the image.
126 %
127 % o exception: return any errors or warnings in this structure.
128 %
129 */
130 
132  const StatisticType type,ExceptionInfo *exception)
133 {
135  *channel_statistics;
136 
137  register ssize_t
138  i;
139 
140  ssize_t
141  y;
142 
143  assert(image != (Image *) NULL);
144  assert(image->signature == MagickCoreSignature);
145  if (image->debug != MagickFalse)
146  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
147  channel_statistics=(ChannelStatistics *) AcquireQuantumMemory(
148  MaxPixelChannels+1,sizeof(*channel_statistics));
149  if (channel_statistics == (ChannelStatistics *) NULL)
150  ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
151  (void) ResetMagickMemory(channel_statistics,0,(MaxPixelChannels+1)*
152  sizeof(*channel_statistics));
153  for (i=0; i <= (ssize_t) MaxPixelChannels; i++)
154  {
155  switch (type)
156  {
157  case MaximumStatistic:
158  default:
159  {
160  channel_statistics[i].maxima=(-MagickMaximumValue);
161  break;
162  }
163  case MinimumStatistic:
164  {
165  channel_statistics[i].minima=MagickMaximumValue;
166  break;
167  }
168  }
169  }
170  for (y=0; y < (ssize_t) image->rows; y++)
171  {
172  register const Quantum
173  *magick_restrict p;
174 
175  register ssize_t
176  x;
177 
178  p=GetVirtualPixels(image,0,y,image->columns,1,exception);
179  if (p == (const Quantum *) NULL)
180  break;
181  for (x=0; x < (ssize_t) image->columns; x++)
182  {
183  if (GetPixelReadMask(image,p) <= (QuantumRange/2))
184  {
185  p+=GetPixelChannels(image);
186  continue;
187  }
188  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
189  {
190  PixelChannel channel = GetPixelChannelChannel(image,i);
191  PixelTrait traits = GetPixelChannelTraits(image,channel);
192  if (traits == UndefinedPixelTrait)
193  continue;
194  switch (type)
195  {
196  case MaximumStatistic:
197  default:
198  {
199  if ((double) p[i] > channel_statistics[channel].maxima)
200  channel_statistics[channel].maxima=(double) p[i];
201  break;
202  }
203  case MinimumStatistic:
204  {
205  if ((double) p[i] < channel_statistics[channel].minima)
206  channel_statistics[channel].minima=(double) p[i];
207  break;
208  }
209  }
210  }
211  p+=GetPixelChannels(image);
212  }
213  }
214  return(channel_statistics);
215 }
216 
217 static ssize_t PrintChannelFeatures(FILE *file,const PixelChannel channel,
218  const char *name,const ChannelFeatures *channel_features)
219 {
220 #define PrintFeature(feature) \
221  GetMagickPrecision(),(feature)[0], \
222  GetMagickPrecision(),(feature)[1], \
223  GetMagickPrecision(),(feature)[2], \
224  GetMagickPrecision(),(feature)[3], \
225  GetMagickPrecision(),((feature)[0]+(feature)[1]+(feature)[2]+(feature)[3])/4.0 \
226 
227 #define FeaturesFormat " %s:\n" \
228  " Angular Second Moment:\n" \
229  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
230  " Contrast:\n" \
231  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
232  " Correlation:\n" \
233  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
234  " Sum of Squares Variance:\n" \
235  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
236  " Inverse Difference Moment:\n" \
237  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
238  " Sum Average:\n" \
239  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
240  " Sum Variance:\n" \
241  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
242  " Sum Entropy:\n" \
243  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
244  " Entropy:\n" \
245  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
246  " Difference Variance:\n" \
247  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
248  " Difference Entropy:\n" \
249  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
250  " Information Measure of Correlation 1:\n" \
251  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
252  " Information Measure of Correlation 2:\n" \
253  " %.*g, %.*g, %.*g, %.*g, %.*g\n" \
254  " Maximum Correlation Coefficient:\n" \
255  " %.*g, %.*g, %.*g, %.*g, %.*g\n"
256 
257  ssize_t
258  n;
259 
260  n=FormatLocaleFile(file,FeaturesFormat,name,
261  PrintFeature(channel_features[channel].angular_second_moment),
262  PrintFeature(channel_features[channel].contrast),
263  PrintFeature(channel_features[channel].correlation),
264  PrintFeature(channel_features[channel].variance_sum_of_squares),
265  PrintFeature(channel_features[channel].inverse_difference_moment),
266  PrintFeature(channel_features[channel].sum_average),
267  PrintFeature(channel_features[channel].sum_variance),
268  PrintFeature(channel_features[channel].sum_entropy),
269  PrintFeature(channel_features[channel].entropy),
270  PrintFeature(channel_features[channel].difference_variance),
271  PrintFeature(channel_features[channel].difference_entropy),
272  PrintFeature(channel_features[channel].measure_of_correlation_1),
273  PrintFeature(channel_features[channel].measure_of_correlation_2),
274  PrintFeature(channel_features[channel].maximum_correlation_coefficient));
275  return(n);
276 }
277 
278 static ssize_t PrintChannelLocations(FILE *file,const Image *image,
279  const PixelChannel channel,const char *name,const StatisticType type,
280  const size_t max_locations,const ChannelStatistics *channel_statistics)
281 {
282  double
283  target;
284 
286  *exception;
287 
288  ssize_t
289  n,
290  y;
291 
292  switch (type)
293  {
294  case MaximumStatistic:
295  default:
296  {
297  target=channel_statistics[channel].maxima;
298  break;
299  }
300  case MinimumStatistic:
301  {
302  target=channel_statistics[channel].minima;
303  break;
304  }
305  }
306  (void) FormatLocaleFile(file," %s: %.*g (%.*g)",name,GetMagickPrecision(),
307  target,GetMagickPrecision(),QuantumScale*target);
308  exception=AcquireExceptionInfo();
309  n=0;
310  for (y=0; y < (ssize_t) image->rows; y++)
311  {
312  register const Quantum
313  *p;
314 
315  ssize_t
316  offset,
317  x;
318 
319  p=GetVirtualPixels(image,0,y,image->columns,1,exception);
320  if (p == (const Quantum *) NULL)
321  break;
322  for (x=0; x < (ssize_t) image->columns; x++)
323  {
325  match;
326 
327  PixelTrait traits = GetPixelChannelTraits(image,channel);
328  if (traits == UndefinedPixelTrait)
329  continue;
330  offset=GetPixelChannelOffset(image,channel);
331  match=fabs((double) (p[offset]-target)) < 0.5 ? MagickTrue : MagickFalse;
332  if (match != MagickFalse)
333  {
334  if ((max_locations != 0) && (n >= (ssize_t) max_locations))
335  break;
336  (void) FormatLocaleFile(file," %.20g,%.20g",(double) x,(double) y);
337  n++;
338  }
339  p+=GetPixelChannels(image);
340  }
341  if (x < (ssize_t) image->columns)
342  break;
343  }
344  (void) FormatLocaleFile(file,"\n");
345  return(n);
346 }
347 
348 static ssize_t PrintChannelMoments(FILE *file,const PixelChannel channel,
349  const char *name,const double scale,const ChannelMoments *channel_moments)
350 {
351  double
353  { 1.0, 2.0, 3.0, 3.0, 6.0, 4.0, 6.0, 4.0 };
354 
355  register ssize_t
356  i;
357 
358  ssize_t
359  n;
360 
361  n=FormatLocaleFile(file," %s:\n",name);
362  n+=FormatLocaleFile(file," Centroid: %.*g,%.*g\n",
363  GetMagickPrecision(),channel_moments[channel].centroid.x,
364  GetMagickPrecision(),channel_moments[channel].centroid.y);
365  n+=FormatLocaleFile(file," Ellipse Semi-Major/Minor axis: %.*g,%.*g\n",
366  GetMagickPrecision(),channel_moments[channel].ellipse_axis.x,
367  GetMagickPrecision(),channel_moments[channel].ellipse_axis.y);
368  n+=FormatLocaleFile(file," Ellipse angle: %.*g\n",
369  GetMagickPrecision(),channel_moments[channel].ellipse_angle);
370  n+=FormatLocaleFile(file," Ellipse eccentricity: %.*g\n",
371  GetMagickPrecision(),channel_moments[channel].ellipse_eccentricity);
372  n+=FormatLocaleFile(file," Ellipse intensity: %.*g (%.*g)\n",
373  GetMagickPrecision(),pow(scale,powers[0])*
374  channel_moments[channel].ellipse_intensity,GetMagickPrecision(),
375  channel_moments[channel].ellipse_intensity);
376  for (i=0; i < MaximumNumberOfImageMoments; i++)
377  n+=FormatLocaleFile(file," I%.20g: %.*g (%.*g)\n",i+1.0,
378  GetMagickPrecision(),channel_moments[channel].invariant[i]/pow(scale,
379  powers[i]),GetMagickPrecision(),channel_moments[channel].invariant[i]);
380  return(n);
381 }
382 
383 static ssize_t PrintChannelPerceptualHash(Image *image,FILE *file,
384  const ChannelPerceptualHash *channel_phash)
385 {
386  register ssize_t
387  i;
388 
389  ssize_t
390  n;
391 
392  (void) FormatLocaleFile(file," Channel perceptual hash: ");
393  for (i=0; i < (ssize_t) channel_phash[0].number_colorspaces; i++)
394  {
395  (void) FormatLocaleFile(file,"%s",CommandOptionToMnemonic(
396  MagickColorspaceOptions,(ssize_t) channel_phash[0].colorspace[i]));
397  if (i < (ssize_t) (channel_phash[0].number_colorspaces-1))
398  (void) FormatLocaleFile(file,", ");
399  }
400  (void) FormatLocaleFile(file,"\n");
401  n=0;
402  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
403  {
405  channel;
406 
407  PixelTrait
408  traits;
409 
410  register ssize_t
411  j;
412 
413  channel=GetPixelChannelChannel(image,i);
414  if (channel == IndexPixelChannel)
415  continue;
416  traits=GetPixelChannelTraits(image,channel);
417  if (traits == UndefinedPixelTrait)
418  continue;
419  n=FormatLocaleFile(file," Channel %.20g:\n",(double) channel);
420  for (j=0; j < MaximumNumberOfPerceptualHashes; j++)
421  {
422  register ssize_t
423  k;
424 
425  n+=FormatLocaleFile(file," PH%.20g: ",(double) j+1);
426  for (k=0; k < (ssize_t) channel_phash[0].number_colorspaces; k++)
427  {
428  n+=FormatLocaleFile(file,"%.*g",GetMagickPrecision(),
429  channel_phash[channel].phash[k][j]);
430  if (k < (ssize_t) (channel_phash[0].number_colorspaces-1))
431  n+=FormatLocaleFile(file,", ");
432  }
433  n+=FormatLocaleFile(file,"\n");
434  }
435  }
436  return(n);
437 }
438 
439 static ssize_t PrintChannelStatistics(FILE *file,const PixelChannel channel,
440  const char *name,const double scale,
441  const ChannelStatistics *channel_statistics)
442 {
443 #define StatisticsFormat " %s:\n min: %.*g (%.*g)\n " \
444  "max: %.*g (%.*g)\n mean: %.*g (%.*g)\n " \
445  "standard deviation: %.*g (%.*g)\n kurtosis: %.*g\n " \
446  "skewness: %.*g\n entropy: %.*g\n"
447 
448  ssize_t
449  n;
450 
452  (double) ClampToQuantum((MagickRealType) (scale*
453  channel_statistics[channel].minima)),GetMagickPrecision(),
454  channel_statistics[channel].minima/(double) QuantumRange,
456  channel_statistics[channel].maxima)),GetMagickPrecision(),
457  channel_statistics[channel].maxima/(double) QuantumRange,
458  GetMagickPrecision(),scale*channel_statistics[channel].mean,
459  GetMagickPrecision(),channel_statistics[channel].mean/(double) QuantumRange,
460  GetMagickPrecision(),scale*channel_statistics[channel].standard_deviation,
461  GetMagickPrecision(),channel_statistics[channel].standard_deviation/
462  (double) QuantumRange,GetMagickPrecision(),
463  channel_statistics[channel].kurtosis,GetMagickPrecision(),
464  channel_statistics[channel].skewness,GetMagickPrecision(),
465  channel_statistics[channel].entropy);
466  return(n);
467 }
468 
470  const MagickBooleanType verbose,ExceptionInfo *exception)
471 {
472  char
473  color[MagickPathExtent],
474  format[MagickPathExtent],
475  key[MagickPathExtent];
476 
478  *channel_features;
479 
481  *channel_moments;
482 
484  *channel_phash;
485 
487  *channel_statistics;
488 
490  colorspace;
491 
492  const char
493  *artifact,
494  *locate,
495  *name,
496  *property,
497  *registry,
498  *value;
499 
500  const MagickInfo
501  *magick_info;
502 
503  double
504  elapsed_time,
505  scale,
506  user_time;
507 
508  ImageType
509  base_type,
510  type;
511 
513  ping;
514 
515  register const Quantum
516  *p;
517 
518  register ssize_t
519  i,
520  x;
521 
522  size_t
523  distance;
524 
525  ssize_t
526  y;
527 
528  assert(image != (Image *) NULL);
529  assert(image->signature == MagickCoreSignature);
530  if (image->debug != MagickFalse)
531  (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
532  if (file == (FILE *) NULL)
533  file=stdout;
534  locate=GetImageArtifact(image,"identify:locate");
535  if (locate != (const char *) NULL)
536  {
537  const char
538  *limit;
539 
540  size_t
541  max_locations;
542 
544  statistic_type;
545 
546  /*
547  Display minimum, maximum, or mean pixel locations.
548  */
550  MagickFalse,locate);
551  limit=GetImageArtifact(image,"identify:limit");
552  max_locations=0;
553  if (limit != (const char *) NULL)
554  max_locations=StringToUnsignedLong(limit);
555  channel_statistics=GetLocationStatistics(image,statistic_type,exception);
556  if (channel_statistics == (ChannelStatistics *) NULL)
557  return(MagickFalse);
558  (void) FormatLocaleFile(file,"Channel %s locations:\n",locate);
559  colorspace=image->colorspace;
560  type=IdentifyImageType(image,exception);
561  if ((type == BilevelType) || (type == GrayscaleType) ||
562  (type == GrayscaleAlphaType))
563  colorspace=GRAYColorspace;
564  switch (colorspace)
565  {
566  case RGBColorspace:
567  case sRGBColorspace:
568  {
569  (void) PrintChannelLocations(file,image,RedPixelChannel,"Red",
570  statistic_type,max_locations,channel_statistics);
571  (void) PrintChannelLocations(file,image,GreenPixelChannel,"Green",
572  statistic_type,max_locations,channel_statistics);
573  (void) PrintChannelLocations(file,image,BluePixelChannel,"Blue",
574  statistic_type,max_locations,channel_statistics);
575  break;
576  }
577  case CMYKColorspace:
578  {
579  (void) PrintChannelLocations(file,image,CyanPixelChannel,"Cyan",
580  statistic_type,max_locations,channel_statistics);
581  (void) PrintChannelLocations(file,image,MagentaPixelChannel,"Magenta",
582  statistic_type,max_locations,channel_statistics);
583  (void) PrintChannelLocations(file,image,YellowPixelChannel,"Yellow",
584  statistic_type,max_locations,channel_statistics);
585  (void) PrintChannelLocations(file,image,BlackPixelChannel,"Black",
586  statistic_type,max_locations,channel_statistics);
587  break;
588  }
589  case GRAYColorspace:
590  {
591  (void) PrintChannelLocations(file,image,GrayPixelChannel,"Gray",
592  statistic_type,max_locations,channel_statistics);
593  break;
594  }
595  default:
596  {
597  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
598  (void) PrintChannelLocations(file,image,(PixelChannel) i,"Gray",
599  statistic_type,max_locations,channel_statistics);
600  break;
601  }
602  }
603  if (image->alpha_trait != UndefinedPixelTrait)
604  (void) PrintChannelLocations(file,image,AlphaPixelChannel,"Alpha",
605  statistic_type,max_locations,channel_statistics);
606  channel_statistics=(ChannelStatistics *) RelinquishMagickMemory(
607  channel_statistics);
608  return(ferror(file) != 0 ? MagickFalse : MagickTrue);
609  }
610  *format='\0';
611  elapsed_time=GetElapsedTime(&image->timer);
612  user_time=GetUserTime(&image->timer);
613  GetTimerInfo(&image->timer);
614  if (verbose == MagickFalse)
615  {
616  /*
617  Display summary info about the image.
618  */
619  if (*image->magick_filename != '\0')
620  if (LocaleCompare(image->magick_filename,image->filename) != 0)
621  (void) FormatLocaleFile(file,"%s=>",image->magick_filename);
622  if ((GetPreviousImageInList(image) == (Image *) NULL) &&
623  (GetNextImageInList(image) == (Image *) NULL) &&
624  (image->scene == 0))
625  (void) FormatLocaleFile(file,"%s ",image->filename);
626  else
627  (void) FormatLocaleFile(file,"%s[%.20g] ",image->filename,(double)
628  image->scene);
629  (void) FormatLocaleFile(file,"%s ",image->magick);
630  if ((image->magick_columns != 0) || (image->magick_rows != 0))
631  if ((image->magick_columns != image->columns) ||
632  (image->magick_rows != image->rows))
633  (void) FormatLocaleFile(file,"%.20gx%.20g=>",(double)
634  image->magick_columns,(double) image->magick_rows);
635  (void) FormatLocaleFile(file,"%.20gx%.20g ",(double) image->columns,
636  (double) image->rows);
637  if ((image->page.width != 0) || (image->page.height != 0) ||
638  (image->page.x != 0) || (image->page.y != 0))
639  (void) FormatLocaleFile(file,"%.20gx%.20g%+.20g%+.20g ",(double)
640  image->page.width,(double) image->page.height,(double) image->page.x,
641  (double) image->page.y);
642  (void) FormatLocaleFile(file,"%.20g-bit ",(double) image->depth);
643  if (image->type != UndefinedType)
644  (void) FormatLocaleFile(file,"%s ",CommandOptionToMnemonic(
645  MagickTypeOptions,(ssize_t) image->type));
646  if (image->colorspace != UndefinedColorspace)
647  (void) FormatLocaleFile(file,"%s ",CommandOptionToMnemonic(
648  MagickColorspaceOptions,(ssize_t) image->colorspace));
649  if (image->storage_class == DirectClass)
650  {
651  if (image->total_colors != 0)
652  {
653  (void) FormatMagickSize(image->total_colors,MagickFalse,"B",
654  MagickPathExtent,format);
655  (void) FormatLocaleFile(file,"%s ",format);
656  }
657  }
658  else
659  if (image->total_colors <= image->colors)
660  (void) FormatLocaleFile(file,"%.20gc ",(double)
661  image->colors);
662  else
663  (void) FormatLocaleFile(file,"%.20g=>%.20gc ",(double)
664  image->total_colors,(double) image->colors);
665  if (image->error.mean_error_per_pixel != 0.0)
666  (void) FormatLocaleFile(file,"%.20g/%f/%fdb ",(double)
667  (image->error.mean_error_per_pixel+0.5),
670  if (GetBlobSize(image) != 0)
671  {
672  (void) FormatMagickSize(GetBlobSize(image),MagickTrue,"B",
673  MagickPathExtent,format);
674  (void) FormatLocaleFile(file,"%s ",format);
675  }
676  (void) FormatLocaleFile(file,"%0.3fu %lu:%02lu.%03lu",user_time,
677  (unsigned long) (elapsed_time/60.0),(unsigned long) floor(fmod(
678  elapsed_time,60.0)),(unsigned long) (1000.0*(elapsed_time-
679  floor(elapsed_time))));
680  (void) FormatLocaleFile(file,"\n");
681  (void) fflush(file);
682  return(ferror(file) != 0 ? MagickFalse : MagickTrue);
683  }
684  /*
685  Display verbose info about the image.
686  */
687  colorspace=image->colorspace;
688  type=IdentifyImageType(image,exception);
689  if ((type == BilevelType) || (type == GrayscaleType) ||
690  (type == GrayscaleAlphaType))
691  colorspace=GRAYColorspace;
692  p=GetVirtualPixels(image,0,0,1,1,exception);
693  ping=p == (const Quantum *) NULL ? MagickTrue : MagickFalse;
694  (void) SignatureImage(image,exception);
695  (void) FormatLocaleFile(file,"Image: %s\n",image->filename);
696  if (*image->magick_filename != '\0')
697  if (LocaleCompare(image->magick_filename,image->filename) != 0)
698  {
699  char
700  filename[MagickPathExtent];
701 
702  GetPathComponent(image->magick_filename,TailPath,filename);
703  (void) FormatLocaleFile(file," Base filename: %s\n",filename);
704  }
705  magick_info=GetMagickInfo(image->magick,exception);
706  if ((magick_info == (const MagickInfo *) NULL) ||
707  (GetMagickDescription(magick_info) == (const char *) NULL))
708  (void) FormatLocaleFile(file," Format: %s\n",image->magick);
709  else
710  (void) FormatLocaleFile(file," Format: %s (%s)\n",image->magick,
711  GetMagickDescription(magick_info));
712  if ((magick_info != (const MagickInfo *) NULL) &&
713  (GetMagickMimeType(magick_info) != (const char *) NULL))
714  (void) FormatLocaleFile(file," Mime type: %s\n",GetMagickMimeType(
715  magick_info));
716  (void) FormatLocaleFile(file," Class: %s\n",CommandOptionToMnemonic(
717  MagickClassOptions,(ssize_t) image->storage_class));
718  (void) FormatLocaleFile(file," Geometry: %.20gx%.20g%+.20g%+.20g\n",(double)
719  image->columns,(double) image->rows,(double) image->tile_offset.x,(double)
720  image->tile_offset.y);
721  if ((image->magick_columns != 0) || (image->magick_rows != 0))
722  if ((image->magick_columns != image->columns) ||
723  (image->magick_rows != image->rows))
724  (void) FormatLocaleFile(file," Base geometry: %.20gx%.20g\n",(double)
725  image->magick_columns,(double) image->magick_rows);
726  if ((image->resolution.x != 0.0) && (image->resolution.y != 0.0))
727  {
728  (void) FormatLocaleFile(file," Resolution: %gx%g\n",image->resolution.x,
729  image->resolution.y);
730  (void) FormatLocaleFile(file," Print size: %gx%g\n",(double)
731  image->columns/image->resolution.x,(double) image->rows/
732  image->resolution.y);
733  }
734  (void) FormatLocaleFile(file," Units: %s\n",CommandOptionToMnemonic(
735  MagickResolutionOptions,(ssize_t) image->units));
736  (void) FormatLocaleFile(file," Type: %s\n",CommandOptionToMnemonic(
737  MagickTypeOptions,(ssize_t) type));
738  base_type=GetImageType(image);
739  if (type != base_type)
740  (void) FormatLocaleFile(file," Base type: %s\n",CommandOptionToMnemonic(
741  MagickTypeOptions,(ssize_t) base_type));
742  (void) FormatLocaleFile(file," Endianess: %s\n",CommandOptionToMnemonic(
743  MagickEndianOptions,(ssize_t) image->endian));
744  /*
745  Detail channel depth and extrema.
746  */
747  (void) FormatLocaleFile(file," Colorspace: %s\n",CommandOptionToMnemonic(
748  MagickColorspaceOptions,(ssize_t) colorspace));
749  channel_statistics=(ChannelStatistics *) NULL;
750  channel_moments=(ChannelMoments *) NULL;
751  channel_phash=(ChannelPerceptualHash *) NULL;
752  channel_features=(ChannelFeatures *) NULL;
753  scale=1.0;
754  if (ping == MagickFalse)
755  {
756  size_t
757  depth;
758 
759  channel_statistics=GetImageStatistics(image,exception);
760  if (channel_statistics == (ChannelStatistics *) NULL)
761  return(MagickFalse);
762  artifact=GetImageArtifact(image,"identify:moments");
763  if (artifact != (const char *) NULL)
764  {
765  channel_moments=GetImageMoments(image,exception);
766  channel_phash=GetImagePerceptualHash(image,exception);
767  }
768  artifact=GetImageArtifact(image,"identify:features");
769  if (artifact != (const char *) NULL)
770  {
771  distance=StringToUnsignedLong(artifact);
772  channel_features=GetImageFeatures(image,distance,exception);
773  }
774  depth=GetImageDepth(image,exception);
775  if (image->depth == depth)
776  (void) FormatLocaleFile(file," Depth: %.20g-bit\n",(double)
777  image->depth);
778  else
779  (void) FormatLocaleFile(file," Depth: %.20g/%.20g-bit\n",(double)
780  image->depth,(double) depth);
781  (void) FormatLocaleFile(file," Channel depth:\n");
782  switch (colorspace)
783  {
784  case RGBColorspace:
785  case sRGBColorspace:
786  {
787  (void) FormatLocaleFile(file," Red: %.20g-bit\n",(double)
788  channel_statistics[RedPixelChannel].depth);
789  (void) FormatLocaleFile(file," Green: %.20g-bit\n",(double)
790  channel_statistics[GreenPixelChannel].depth);
791  (void) FormatLocaleFile(file," Blue: %.20g-bit\n",(double)
792  channel_statistics[BluePixelChannel].depth);
793  break;
794  }
795  case CMYKColorspace:
796  {
797  (void) FormatLocaleFile(file," Cyan: %.20g-bit\n",(double)
798  channel_statistics[CyanPixelChannel].depth);
799  (void) FormatLocaleFile(file," Magenta: %.20g-bit\n",(double)
800  channel_statistics[MagentaPixelChannel].depth);
801  (void) FormatLocaleFile(file," Yellow: %.20g-bit\n",(double)
802  channel_statistics[YellowPixelChannel].depth);
803  (void) FormatLocaleFile(file," Black: %.20g-bit\n",(double)
804  channel_statistics[BlackPixelChannel].depth);
805  break;
806  }
807  case GRAYColorspace:
808  {
809  (void) FormatLocaleFile(file," Gray: %.20g-bit\n",(double)
810  channel_statistics[GrayPixelChannel].depth);
811  break;
812  }
813  default:
814  {
815  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
816  (void) FormatLocaleFile(file," Channel %.20g: %.20g-bit\n",
817  (double) i,(double) channel_statistics[i].depth);
818  break;
819  }
820  }
821  if (image->alpha_trait != UndefinedPixelTrait)
822  (void) FormatLocaleFile(file," Alpha: %.20g-bit\n",(double)
823  channel_statistics[AlphaPixelChannel].depth);
824  scale=1.0;
825  if (image->depth <= MAGICKCORE_QUANTUM_DEPTH)
826  scale=(double) (QuantumRange/((size_t) QuantumRange >> ((size_t)
828  }
829  if (channel_statistics != (ChannelStatistics *) NULL)
830  {
831  (void) FormatLocaleFile(file," Channel statistics:\n");
832  (void) FormatLocaleFile(file," Pixels: %.20g\n",(double)
833  image->columns*image->rows);
834  switch (colorspace)
835  {
836  case RGBColorspace:
837  case sRGBColorspace:
838  {
839  (void) PrintChannelStatistics(file,RedPixelChannel,"Red",1.0/
840  scale,channel_statistics);
841  (void) PrintChannelStatistics(file,GreenPixelChannel,"Green",1.0/
842  scale,channel_statistics);
843  (void) PrintChannelStatistics(file,BluePixelChannel,"Blue",1.0/
844  scale,channel_statistics);
845  break;
846  }
847  case CMYKColorspace:
848  {
849  (void) PrintChannelStatistics(file,CyanPixelChannel,"Cyan",1.0/
850  scale,channel_statistics);
851  (void) PrintChannelStatistics(file,MagentaPixelChannel,"Magenta",1.0/
852  scale,channel_statistics);
853  (void) PrintChannelStatistics(file,YellowPixelChannel,"Yellow",1.0/
854  scale,channel_statistics);
855  (void) PrintChannelStatistics(file,BlackPixelChannel,"Black",1.0/
856  scale,channel_statistics);
857  break;
858  }
859  case GRAYColorspace:
860  {
861  (void) PrintChannelStatistics(file,GrayPixelChannel,"Gray",1.0/
862  scale,channel_statistics);
863  break;
864  }
865  default:
866  {
867  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
868  {
869  char
870  channel[MagickPathExtent];
871 
872  (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
873  (double) i);
874  (void) PrintChannelStatistics(file,(PixelChannel) i,channel,1.0/
875  scale,channel_statistics);
876  }
877  break;
878  }
879  }
880  if (image->alpha_trait != UndefinedPixelTrait)
881  (void) PrintChannelStatistics(file,AlphaPixelChannel,"Alpha",1.0/
882  scale,channel_statistics);
883  if (colorspace != GRAYColorspace)
884  {
885  (void) FormatLocaleFile(file," Image statistics:\n");
886  (void) PrintChannelStatistics(file,CompositePixelChannel,"Overall",
887  1.0/scale,channel_statistics);
888  }
889  channel_statistics=(ChannelStatistics *) RelinquishMagickMemory(
890  channel_statistics);
891  }
892  if (channel_moments != (ChannelMoments *) NULL)
893  {
894  scale=(double) ((1UL << image->depth)-1);
895  (void) FormatLocaleFile(file," Channel moments:\n");
896  switch (colorspace)
897  {
898  case RGBColorspace:
899  case sRGBColorspace:
900  {
901  (void) PrintChannelMoments(file,RedPixelChannel,"Red",scale,
902  channel_moments);
903  (void) PrintChannelMoments(file,GreenPixelChannel,"Green",scale,
904  channel_moments);
905  (void) PrintChannelMoments(file,BluePixelChannel,"Blue",scale,
906  channel_moments);
907  break;
908  }
909  case CMYKColorspace:
910  {
911  (void) PrintChannelMoments(file,CyanPixelChannel,"Cyan",scale,
912  channel_moments);
913  (void) PrintChannelMoments(file,MagentaPixelChannel,"Magenta",scale,
914  channel_moments);
915  (void) PrintChannelMoments(file,YellowPixelChannel,"Yellow",scale,
916  channel_moments);
917  (void) PrintChannelMoments(file,BlackPixelChannel,"Black",scale,
918  channel_moments);
919  break;
920  }
921  case GRAYColorspace:
922  {
923  (void) PrintChannelMoments(file,GrayPixelChannel,"Gray",scale,
924  channel_moments);
925  break;
926  }
927  default:
928  {
929  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
930  {
931  char
932  channel[MagickPathExtent];
933 
934  (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
935  (double) i);
936  (void) PrintChannelMoments(file,(PixelChannel) i,"channel",scale,
937  channel_moments);
938  }
939  break;
940  }
941  }
942  if (image->alpha_trait != UndefinedPixelTrait)
943  (void) PrintChannelMoments(file,AlphaPixelChannel,"Alpha",scale,
944  channel_moments);
945  if (colorspace != GRAYColorspace)
946  {
947  (void) FormatLocaleFile(file," Image moments:\n");
948  (void) PrintChannelMoments(file,CompositePixelChannel,"Overall",scale,
949  channel_moments);
950  }
951  channel_moments=(ChannelMoments *) RelinquishMagickMemory(
952  channel_moments);
953  }
954  if (channel_phash != (ChannelPerceptualHash *) NULL)
955  {
956  (void) PrintChannelPerceptualHash(image,file,channel_phash);
958  channel_phash);
959  }
960  if (channel_features != (ChannelFeatures *) NULL)
961  {
962  (void) FormatLocaleFile(file," Channel features (horizontal, vertical, "
963  "left and right diagonals, average):\n");
964  switch (colorspace)
965  {
966  case RGBColorspace:
967  case sRGBColorspace:
968  {
969  (void) PrintChannelFeatures(file,RedPixelChannel,"Red",
970  channel_features);
971  (void) PrintChannelFeatures(file,GreenPixelChannel,"Green",
972  channel_features);
973  (void) PrintChannelFeatures(file,BluePixelChannel,"Blue",
974  channel_features);
975  break;
976  }
977  case CMYKColorspace:
978  {
979  (void) PrintChannelFeatures(file,CyanPixelChannel,"Cyan",
980  channel_features);
981  (void) PrintChannelFeatures(file,MagentaPixelChannel,"Magenta",
982  channel_features);
983  (void) PrintChannelFeatures(file,YellowPixelChannel,"Yellow",
984  channel_features);
985  (void) PrintChannelFeatures(file,BlackPixelChannel,"Black",
986  channel_features);
987  break;
988  }
989  case GRAYColorspace:
990  {
991  (void) PrintChannelFeatures(file,GrayPixelChannel,"Gray",
992  channel_features);
993  break;
994  }
995  default:
996  {
997  for (i=0; i < (ssize_t) GetPixelChannels(image); i++)
998  {
999  char
1000  channel[MagickPathExtent];
1001 
1002  (void) FormatLocaleString(channel,MagickPathExtent,"Channel %.20g",
1003  (double) i);
1004  (void) PrintChannelFeatures(file,(PixelChannel) i,channel,
1005  channel_features);
1006  }
1007  break;
1008  }
1009  }
1010  if (image->alpha_trait != UndefinedPixelTrait)
1011  (void) PrintChannelFeatures(file,AlphaPixelChannel,"Alpha",
1012  channel_features);
1013  channel_features=(ChannelFeatures *) RelinquishMagickMemory(
1014  channel_features);
1015  }
1016  if (ping == MagickFalse)
1017  {
1018  if (image->colorspace == CMYKColorspace)
1019  (void) FormatLocaleFile(file," Total ink density: %.*g%%\n",
1020  GetMagickPrecision(),100.0*GetImageTotalInkDensity(image,exception)/
1021  (double) QuantumRange);
1022  x=0;
1023  if (image->alpha_trait != UndefinedPixelTrait)
1024  {
1025  p=(const Quantum *) NULL;
1026  for (y=0; y < (ssize_t) image->rows; y++)
1027  {
1028  p=GetVirtualPixels(image,0,y,image->columns,1,exception);
1029  if (p == (const Quantum *) NULL)
1030  break;
1031  for (x=0; x < (ssize_t) image->columns; x++)
1032  {
1033  if (GetPixelAlpha(image,p) == (Quantum) TransparentAlpha)
1034  break;
1035  p+=GetPixelChannels(image);
1036  }
1037  if (x < (ssize_t) image->columns)
1038  break;
1039  }
1040  if ((x < (ssize_t) image->columns) || (y < (ssize_t) image->rows))
1041  {
1042  char
1043  tuple[MagickPathExtent];
1044 
1045  PixelInfo
1046  pixel;
1047 
1048  GetPixelInfo(image,&pixel);
1049  if (p != (const Quantum *) NULL)
1050  GetPixelInfoPixel(image,p,&pixel);
1051  (void) QueryColorname(image,&pixel,SVGCompliance,tuple,
1052  exception);
1053  (void) FormatLocaleFile(file," Alpha: %s ",tuple);
1054  GetColorTuple(&pixel,MagickTrue,tuple);
1055  (void) FormatLocaleFile(file," %s\n",tuple);
1056  }
1057  }
1058  if (IsHistogramImage(image,exception) != MagickFalse)
1059  {
1060  (void) FormatLocaleFile(file," Colors: %.20g\n",(double)
1061  GetNumberColors(image,(FILE *) NULL,exception));
1062  (void) FormatLocaleFile(file," Histogram:\n");
1063  (void) GetNumberColors(image,file,exception);
1064  }
1065  else
1066  {
1067  artifact=GetImageArtifact(image,"identify:unique-colors");
1068  if (IsStringTrue(artifact) != MagickFalse)
1069  (void) FormatLocaleFile(file," Colors: %.20g\n",(double)
1070  GetNumberColors(image,(FILE *) NULL,exception));
1071  }
1072  }
1073  if (image->storage_class == PseudoClass)
1074  {
1075  (void) FormatLocaleFile(file," Colormap entries: %.20g\n",(double)
1076  image->colors);
1077  (void) FormatLocaleFile(file," Colormap:\n");
1078  if (image->colors <= 1024)
1079  {
1080  char
1081  hex[MagickPathExtent],
1082  tuple[MagickPathExtent];
1083 
1084  PixelInfo
1085  pixel;
1086 
1087  register PixelInfo
1088  *magick_restrict c;
1089 
1090  GetPixelInfo(image,&pixel);
1091  c=image->colormap;
1092  for (i=0; i < (ssize_t) image->colors; i++)
1093  {
1094  pixel=(*c);
1095  (void) CopyMagickString(tuple,"(",MagickPathExtent);
1097  tuple);
1098  (void) ConcatenateMagickString(tuple,",",MagickPathExtent);
1100  tuple);
1101  (void) ConcatenateMagickString(tuple,",",MagickPathExtent);
1103  tuple);
1104  if (pixel.colorspace == CMYKColorspace)
1105  {
1106  (void) ConcatenateMagickString(tuple,",",MagickPathExtent);
1108  X11Compliance,tuple);
1109  }
1110  if (pixel.alpha_trait != UndefinedPixelTrait)
1111  {
1112  (void) ConcatenateMagickString(tuple,",",MagickPathExtent);
1114  X11Compliance,tuple);
1115  }
1116  (void) ConcatenateMagickString(tuple,")",MagickPathExtent);
1117  (void) QueryColorname(image,&pixel,SVGCompliance,color,
1118  exception);
1119  GetColorTuple(&pixel,MagickTrue,hex);
1120  (void) FormatLocaleFile(file," %8ld: %s %s %s\n",(long) i,tuple,
1121  hex,color);
1122  c++;
1123  }
1124  }
1125  }
1126  if (image->error.mean_error_per_pixel != 0.0)
1127  (void) FormatLocaleFile(file," Mean error per pixel: %g\n",
1128  image->error.mean_error_per_pixel);
1129  if (image->error.normalized_mean_error != 0.0)
1130  (void) FormatLocaleFile(file," Normalized mean error: %g\n",
1131  image->error.normalized_mean_error);
1132  if (image->error.normalized_maximum_error != 0.0)
1133  (void) FormatLocaleFile(file," Normalized maximum error: %g\n",
1135  (void) FormatLocaleFile(file," Rendering intent: %s\n",
1137  image->rendering_intent));
1138  if (image->gamma != 0.0)
1139  (void) FormatLocaleFile(file," Gamma: %g\n",image->gamma);
1140  if ((image->chromaticity.red_primary.x != 0.0) ||
1141  (image->chromaticity.green_primary.x != 0.0) ||
1142  (image->chromaticity.blue_primary.x != 0.0) ||
1143  (image->chromaticity.white_point.x != 0.0))
1144  {
1145  /*
1146  Display image chromaticity.
1147  */
1148  (void) FormatLocaleFile(file," Chromaticity:\n");
1149  (void) FormatLocaleFile(file," red primary: (%g,%g)\n",
1151  (void) FormatLocaleFile(file," green primary: (%g,%g)\n",
1152  image->chromaticity.green_primary.x,
1153  image->chromaticity.green_primary.y);
1154  (void) FormatLocaleFile(file," blue primary: (%g,%g)\n",
1156  (void) FormatLocaleFile(file," white point: (%g,%g)\n",
1158  }
1159  if ((image->extract_info.width*image->extract_info.height) != 0)
1160  (void) FormatLocaleFile(file," Tile geometry: %.20gx%.20g%+.20g%+.20g\n",
1161  (double) image->extract_info.width,(double) image->extract_info.height,
1162  (double) image->extract_info.x,(double) image->extract_info.y);
1163  (void) QueryColorname(image,&image->matte_color,SVGCompliance,color,
1164  exception);
1165  (void) FormatLocaleFile(file," Matte color: %s\n",color);
1166  (void) QueryColorname(image,&image->background_color,SVGCompliance,color,
1167  exception);
1168  (void) FormatLocaleFile(file," Background color: %s\n",color);
1169  (void) QueryColorname(image,&image->border_color,SVGCompliance,color,
1170  exception);
1171  (void) FormatLocaleFile(file," Border color: %s\n",color);
1172  (void) QueryColorname(image,&image->transparent_color,SVGCompliance,color,
1173  exception);
1174  (void) FormatLocaleFile(file," Transparent color: %s\n",color);
1175  (void) FormatLocaleFile(file," Interlace: %s\n",CommandOptionToMnemonic(
1176  MagickInterlaceOptions,(ssize_t) image->interlace));
1177  (void) FormatLocaleFile(file," Intensity: %s\n",CommandOptionToMnemonic(
1178  MagickPixelIntensityOptions,(ssize_t) image->intensity));
1179  (void) FormatLocaleFile(file," Compose: %s\n",CommandOptionToMnemonic(
1180  MagickComposeOptions,(ssize_t) image->compose));
1181  if ((image->page.width != 0) || (image->page.height != 0) ||
1182  (image->page.x != 0) || (image->page.y != 0))
1183  (void) FormatLocaleFile(file," Page geometry: %.20gx%.20g%+.20g%+.20g\n",
1184  (double) image->page.width,(double) image->page.height,(double)
1185  image->page.x,(double) image->page.y);
1186  if ((image->page.x != 0) || (image->page.y != 0))
1187  (void) FormatLocaleFile(file," Origin geometry: %+.20g%+.20g\n",(double)
1188  image->page.x,(double) image->page.y);
1189  (void) FormatLocaleFile(file," Dispose: %s\n",CommandOptionToMnemonic(
1190  MagickDisposeOptions,(ssize_t) image->dispose));
1191  if (image->delay != 0)
1192  (void) FormatLocaleFile(file," Delay: %.20gx%.20g\n",(double) image->delay,
1193  (double) image->ticks_per_second);
1194  if (image->iterations != 1)
1195  (void) FormatLocaleFile(file," Iterations: %.20g\n",(double)
1196  image->iterations);
1197  if (image->duration != 0)
1198  (void) FormatLocaleFile(file," Duration: %.20g\n",(double)
1199  image->duration);
1200  if ((image->next != (Image *) NULL) || (image->previous != (Image *) NULL))
1201  (void) FormatLocaleFile(file," Scene: %.20g of %.20g\n",(double)
1202  image->scene,(double) GetImageListLength(image));
1203  else
1204  if (image->scene != 0)
1205  (void) FormatLocaleFile(file," Scene: %.20g\n",(double) image->scene);
1206  (void) FormatLocaleFile(file," Compression: %s\n",CommandOptionToMnemonic(
1207  MagickCompressOptions,(ssize_t) image->compression));
1208  if (image->quality != UndefinedCompressionQuality)
1209  (void) FormatLocaleFile(file," Quality: %.20g\n",(double) image->quality);
1210  (void) FormatLocaleFile(file," Orientation: %s\n",CommandOptionToMnemonic(
1211  MagickOrientationOptions,(ssize_t) image->orientation));
1212  if (image->montage != (char *) NULL)
1213  (void) FormatLocaleFile(file," Montage: %s\n",image->montage);
1214  if (image->directory != (char *) NULL)
1215  {
1216  Image
1217  *tile;
1218 
1219  ImageInfo
1220  *image_info;
1221 
1222  register char
1223  *d,
1224  *q;
1225 
1227  handler;
1228 
1229  /*
1230  Display visual image directory.
1231  */
1232  image_info=AcquireImageInfo();
1233  (void) CloneString(&image_info->size,"64x64");
1234  (void) FormatLocaleFile(file," Directory:\n");
1235  for (d=image->directory; *d != '\0'; d++)
1236  {
1237  q=d;
1238  while ((*q != '\n') && (*q != '\0') &&
1239  ((size_t) (q-d) < sizeof(image_info->filename)))
1240  q++;
1241  (void) CopyMagickString(image_info->filename,d,(size_t) (q-d+1));
1242  d=q;
1243  (void) FormatLocaleFile(file," %s",image_info->filename);
1244  handler=SetWarningHandler((WarningHandler) NULL);
1245  tile=ReadImage(image_info,exception);
1246  (void) SetWarningHandler(handler);
1247  if (tile == (Image *) NULL)
1248  {
1249  (void) FormatLocaleFile(file,"\n");
1250  continue;
1251  }
1252  (void) FormatLocaleFile(file," %.20gx%.20g %s\n",(double)
1253  tile->magick_columns,(double) tile->magick_rows,tile->magick);
1254  (void) SignatureImage(tile,exception);
1256  property=GetNextImageProperty(tile);
1257  while (property != (const char *) NULL)
1258  {
1259  (void) FormatLocaleFile(file," %s:\n",property);
1260  value=GetImageProperty(tile,property,exception);
1261  if (value != (const char *) NULL)
1262  (void) FormatLocaleFile(file,"%s\n",value);
1263  property=GetNextImageProperty(tile);
1264  }
1265  tile=DestroyImage(tile);
1266  }
1267  image_info=DestroyImageInfo(image_info);
1268  }
1269  (void) GetImageProperty(image,"exif:*",exception);
1270  (void) GetImageProperty(image,"icc:*",exception);
1271  (void) GetImageProperty(image,"iptc:*",exception);
1272  (void) GetImageProperty(image,"xmp:*",exception);
1274  property=GetNextImageProperty(image);
1275  if (property != (const char *) NULL)
1276  {
1277  /*
1278  Display image properties.
1279  */
1280  (void) FormatLocaleFile(file," Properties:\n");
1281  while (property != (const char *) NULL)
1282  {
1283  (void) FormatLocaleFile(file," %s: ",property);
1284  value=GetImageProperty(image,property,exception);
1285  if (value != (const char *) NULL)
1286  (void) FormatLocaleFile(file,"%s\n",value);
1287  property=GetNextImageProperty(image);
1288  }
1289  }
1290  (void) FormatLocaleString(key,MagickPathExtent,"8BIM:1999,2998:#1");
1291  value=GetImageProperty(image,key,exception);
1292  if (value != (const char *) NULL)
1293  {
1294  /*
1295  Display clipping path.
1296  */
1297  (void) FormatLocaleFile(file," Clipping path: ");
1298  if (strlen(value) > 80)
1299  (void) fputc('\n',file);
1300  (void) FormatLocaleFile(file,"%s\n",value);
1301  }
1303  name=GetNextImageProfile(image);
1304  if (name != (char *) NULL)
1305  {
1306  const StringInfo
1307  *profile;
1308 
1309  /*
1310  Identify image profiles.
1311  */
1312  (void) FormatLocaleFile(file," Profiles:\n");
1313  while (name != (char *) NULL)
1314  {
1315  profile=GetImageProfile(image,name);
1316  if (profile == (StringInfo *) NULL)
1317  continue;
1318  (void) FormatLocaleFile(file," Profile-%s: %.20g bytes\n",name,
1319  (double) GetStringInfoLength(profile));
1320  if (LocaleCompare(name,"iptc") == 0)
1321  {
1322  char
1323  *attribute,
1324  **attribute_list;
1325 
1326  const char
1327  *tag;
1328 
1329  long
1330  dataset,
1331  record,
1332  sentinel;
1333 
1334  register ssize_t
1335  j;
1336 
1337  size_t
1338  length,
1339  profile_length;
1340 
1341  profile_length=GetStringInfoLength(profile);
1342  for (i=0; i < (ssize_t) profile_length-5; i+=(ssize_t) length)
1343  {
1344  length=1;
1345  sentinel=GetStringInfoDatum(profile)[i++];
1346  if (sentinel != 0x1c)
1347  continue;
1348  dataset=GetStringInfoDatum(profile)[i++];
1349  record=GetStringInfoDatum(profile)[i++];
1350  switch (record)
1351  {
1352  case 5: tag="Image Name"; break;
1353  case 7: tag="Edit Status"; break;
1354  case 10: tag="Priority"; break;
1355  case 15: tag="Category"; break;
1356  case 20: tag="Supplemental Category"; break;
1357  case 22: tag="Fixture Identifier"; break;
1358  case 25: tag="Keyword"; break;
1359  case 30: tag="Release Date"; break;
1360  case 35: tag="Release Time"; break;
1361  case 40: tag="Special Instructions"; break;
1362  case 45: tag="Reference Service"; break;
1363  case 47: tag="Reference Date"; break;
1364  case 50: tag="Reference Number"; break;
1365  case 55: tag="Created Date"; break;
1366  case 60: tag="Created Time"; break;
1367  case 65: tag="Originating Program"; break;
1368  case 70: tag="Program Version"; break;
1369  case 75: tag="Object Cycle"; break;
1370  case 80: tag="Byline"; break;
1371  case 85: tag="Byline Title"; break;
1372  case 90: tag="City"; break;
1373  case 92: tag="Sub-Location"; break;
1374  case 95: tag="Province State"; break;
1375  case 100: tag="Country Code"; break;
1376  case 101: tag="Country"; break;
1377  case 103: tag="Original Transmission Reference"; break;
1378  case 105: tag="Headline"; break;
1379  case 110: tag="Credit"; break;
1380  case 115: tag="Src"; break;
1381  case 116: tag="Copyright String"; break;
1382  case 120: tag="Caption"; break;
1383  case 121: tag="Local Caption"; break;
1384  case 122: tag="Caption Writer"; break;
1385  case 200: tag="Custom Field 1"; break;
1386  case 201: tag="Custom Field 2"; break;
1387  case 202: tag="Custom Field 3"; break;
1388  case 203: tag="Custom Field 4"; break;
1389  case 204: tag="Custom Field 5"; break;
1390  case 205: tag="Custom Field 6"; break;
1391  case 206: tag="Custom Field 7"; break;
1392  case 207: tag="Custom Field 8"; break;
1393  case 208: tag="Custom Field 9"; break;
1394  case 209: tag="Custom Field 10"; break;
1395  case 210: tag="Custom Field 11"; break;
1396  case 211: tag="Custom Field 12"; break;
1397  case 212: tag="Custom Field 13"; break;
1398  case 213: tag="Custom Field 14"; break;
1399  case 214: tag="Custom Field 15"; break;
1400  case 215: tag="Custom Field 16"; break;
1401  case 216: tag="Custom Field 17"; break;
1402  case 217: tag="Custom Field 18"; break;
1403  case 218: tag="Custom Field 19"; break;
1404  case 219: tag="Custom Field 20"; break;
1405  default: tag="unknown"; break;
1406  }
1407  (void) FormatLocaleFile(file," %s[%.20g,%.20g]: ",tag,
1408  (double) dataset,(double) record);
1409  length=(size_t) (GetStringInfoDatum(profile)[i++] << 8);
1410  length|=GetStringInfoDatum(profile)[i++];
1411  length=MagickMin(length,profile_length-i);
1412  attribute=(char *) NULL;
1413  if (~length >= (MagickPathExtent-1))
1414  attribute=(char *) AcquireQuantumMemory(length+MagickPathExtent,
1415  sizeof(*attribute));
1416  if (attribute != (char *) NULL)
1417  {
1418  (void) CopyMagickString(attribute,(char *)
1419  GetStringInfoDatum(profile)+i,length+1);
1420  attribute_list=StringToList(attribute);
1421  if (attribute_list != (char **) NULL)
1422  {
1423  for (j=0; attribute_list[j] != (char *) NULL; j++)
1424  {
1425  (void) fputs(attribute_list[j],file);
1426  (void) fputs("\n",file);
1427  attribute_list[j]=(char *) RelinquishMagickMemory(
1428  attribute_list[j]);
1429  }
1430  attribute_list=(char **) RelinquishMagickMemory(
1431  attribute_list);
1432  }
1433  attribute=DestroyString(attribute);
1434  }
1435  }
1436  }
1437  if (image->debug != MagickFalse)
1438  PrintStringInfo(file,name,profile);
1439  name=GetNextImageProfile(image);
1440  }
1441  }
1443  artifact=GetNextImageArtifact(image);
1444  if (artifact != (const char *) NULL)
1445  {
1446  /*
1447  Display image artifacts.
1448  */
1449  (void) FormatLocaleFile(file," Artifacts:\n");
1450  while (artifact != (const char *) NULL)
1451  {
1452  (void) FormatLocaleFile(file," %s: ",artifact);
1453  value=GetImageArtifact(image,artifact);
1454  if (value != (const char *) NULL)
1455  (void) FormatLocaleFile(file,"%s\n",value);
1456  artifact=GetNextImageArtifact(image);
1457  }
1458  }
1460  registry=GetNextImageRegistry();
1461  if (registry != (const char *) NULL)
1462  {
1463  /*
1464  Display image registry.
1465  */
1466  (void) FormatLocaleFile(file," Registry:\n");
1467  while (registry != (const char *) NULL)
1468  {
1469  (void) FormatLocaleFile(file," %s: ",registry);
1470  value=(const char *) GetImageRegistry(StringRegistryType,registry,
1471  exception);
1472  if (value != (const char *) NULL)
1473  (void) FormatLocaleFile(file,"%s\n",value);
1474  registry=GetNextImageRegistry();
1475  }
1476  }
1477  (void) FormatLocaleFile(file," Tainted: %s\n",CommandOptionToMnemonic(
1478  MagickBooleanOptions,(ssize_t) image->taint));
1480  format);
1481  (void) FormatLocaleFile(file," Filesize: %s\n",format);
1482  (void) FormatMagickSize((MagickSizeType) image->columns*image->rows,
1483  MagickFalse,"P",MagickPathExtent,format);
1484  if (strlen(format) > 1)
1485  format[strlen(format)-1]='\0';
1486  (void) FormatLocaleFile(file," Number pixels: %s\n",format);
1487  if (elapsed_time > MagickEpsilon)
1488  {
1489  (void) FormatMagickSize((MagickSizeType) ((double) image->columns*
1490  image->rows/elapsed_time+0.5),MagickFalse,"B",MagickPathExtent,format);
1491  (void) FormatLocaleFile(file," Pixels per second: %s\n",format);
1492  }
1493  (void) FormatLocaleFile(file," User time: %0.3fu\n",user_time);
1494  (void) FormatLocaleFile(file," Elapsed time: %lu:%02lu.%03lu\n",
1495  (unsigned long) (elapsed_time/60.0),(unsigned long) ceil(fmod(elapsed_time,
1496  60.0)),(unsigned long) (1000.0*(elapsed_time-floor(elapsed_time))));
1497  (void) FormatLocaleFile(file," Version: %s\n",GetMagickVersion((size_t *)
1498  NULL));
1499  (void) fflush(file);
1500  return(ferror(file) != 0 ? MagickFalse : MagickTrue);
1501 }
size_t rows
Definition: image.h:172
#define magick_restrict
Definition: MagickCore.h:41
PixelInfo matte_color
Definition: image.h:357
MagickDoubleType MagickRealType
Definition: magick-type.h:118
PixelIntensityMethod intensity
Definition: image.h:222
MagickExport ssize_t FormatMagickSize(const MagickSizeType size, const MagickBooleanType bi, const char *suffix, const size_t length, char *format)
Definition: string.c:1081
StatisticType
Definition: statistic.h:130
#define TransparentAlpha
Definition: image.h:26
static ssize_t GetPixelChannelOffset(const Image *magick_restrict image, const PixelChannel channel)
PixelInfo * colormap
Definition: image.h:179
MagickExport MagickBooleanType QueryColorname(const Image *magick_unused(image), const PixelInfo *color, const ComplianceType compliance, char *name, ExceptionInfo *exception)
Definition: color.c:2575
MagickExport ImageInfo * AcquireImageInfo(void)
Definition: image.c:341
InterlaceType interlace
Definition: image.h:225
DisposeType dispose
Definition: image.h:237
MagickExport double GetUserTime(TimerInfo *time_info)
Definition: timer.c:316
MagickExport double GetImageTotalInkDensity(Image *image, ExceptionInfo *exception)
Definition: prepress.c:86
ImageType type
Definition: image.h:264
size_t iterations
Definition: image.h:248
ssize_t ticks_per_second
Definition: image.h:245
static Quantum GetPixelAlpha(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
PixelTrait alpha_trait
Definition: pixel.h:176
MagickExport MagickBooleanType IsHistogramImage(const Image *image, ExceptionInfo *exception)
Definition: histogram.c:805
MagickExport void ResetImagePropertyIterator(const Image *image)
Definition: property.c:3960
static unsigned long StringToUnsignedLong(const char *magick_restrict value)
MagickExport ssize_t ParseCommandOption(const CommandOption option, const MagickBooleanType list, const char *options)
Definition: option.c:2953
MagickExport ChannelStatistics * GetImageStatistics(const Image *image, ExceptionInfo *exception)
Definition: statistic.c:1945
PixelInfo border_color
Definition: image.h:179
#define ThrowFatalException(severity, tag)
double x
Definition: image.h:99
EndianType endian
Definition: image.h:228
MagickBooleanType taint
Definition: image.h:169
MagickExport MagickBooleanType IdentifyImage(Image *image, FILE *file, const MagickBooleanType verbose, ExceptionInfo *exception)
Definition: identify.c:469
MagickExport size_t ConcatenateMagickString(char *destination, const char *source, const size_t length)
Definition: string.c:410
MagickExport WarningHandler SetWarningHandler(WarningHandler handler)
Definition: exception.c:885
MagickExport const char * GetMagickDescription(const MagickInfo *magick_info)
Definition: magick.c:465
MagickExport const char * GetImageArtifact(const Image *image, const char *artifact)
Definition: artifact.c:273
MagickExport char * GetNextImageRegistry(void)
Definition: registry.c:268
#define MaximumNumberOfPerceptualHashes
Definition: statistic.h:27
double mean_error_per_pixel
Definition: color.h:62
static PixelTrait GetPixelChannelTraits(const Image *magick_restrict image, const PixelChannel channel)
size_t duration
Definition: image.h:240
MagickExport ExceptionInfo * AcquireExceptionInfo(void)
Definition: exception.c:108
MagickExport ssize_t FormatLocaleString(char *magick_restrict string, const size_t length, const char *magick_restrict format,...)
Definition: locale.c:473
static Quantum GetPixelReadMask(const Image *magick_restrict image, const Quantum *magick_restrict pixel)
ResolutionType units
Definition: image.h:198
MagickExport MagickBooleanType SignatureImage(Image *image, ExceptionInfo *exception)
Definition: signature.c:466
size_t delay
Definition: image.h:240
char magick[MagickPathExtent]
Definition: image.h:319
#define MAGICKCORE_QUANTUM_DEPTH
Definition: magick-type.h:28
size_t magick_rows
Definition: image.h:324
MagickExport void ResetImageArtifactIterator(const Image *image)
Definition: artifact.c:406
#define MaximumNumberOfImageMoments
Definition: statistic.h:25
char * montage
Definition: image.h:201
#define MagickEpsilon
Definition: magick-type.h:110
CompressionType compression
Definition: image.h:160
static ssize_t PrintChannelMoments(FILE *file, const PixelChannel channel, const char *name, const double scale, const ChannelMoments *channel_moments)
Definition: identify.c:348
ClassType storage_class
Definition: image.h:154
size_t width
Definition: geometry.h:129
RectangleInfo tile_offset
Definition: image.h:261
Definition: log.h:52
MagickExport void GetPixelInfo(const Image *image, PixelInfo *pixel)
Definition: pixel.c:2161
char * size
Definition: image.h:381
Definition: image.h:151
MagickExport Image * GetPreviousImageInList(const Image *images)
Definition: list.c:784
#define FeaturesFormat
double x
Definition: geometry.h:122
#define MagickCoreSignature
double normalized_mean_error
Definition: color.h:62
MagickExport unsigned char * GetStringInfoDatum(const StringInfo *string_info)
Definition: string.c:1283
static ChannelStatistics * GetLocationStatistics(const Image *image, const StatisticType type, ExceptionInfo *exception)
Definition: identify.c:131
#define PrintFeature(feature)
MagickExport void GetPathComponent(const char *path, PathType type, char *component)
Definition: utility.c:1213
#define StatisticsFormat
MagickExport ssize_t FormatLocaleFile(FILE *file, const char *magick_restrict format,...)
Definition: locale.c:378
MagickBooleanType
Definition: magick-type.h:156
MagickExport char ** StringToList(const char *text)
Definition: string.c:2304
PrimaryInfo red_primary
Definition: image.h:125
size_t scene
Definition: image.h:240
static ssize_t PrintChannelFeatures(FILE *file, const PixelChannel channel, const char *name, const ChannelFeatures *channel_features)
Definition: identify.c:217
MagickExport void * ResetMagickMemory(void *memory, int byte, const size_t size)
Definition: memory.c:1164
MagickExport const char * CommandOptionToMnemonic(const CommandOption option, const ssize_t type)
Definition: option.c:2666
MagickExport const Quantum * GetVirtualPixels(const Image *image, const ssize_t x, const ssize_t y, const size_t columns, const size_t rows, ExceptionInfo *exception)
Definition: cache.c:3154
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
Definition: memory.c:529
char filename[MagickPathExtent]
Definition: image.h:471
MagickExport void GetColorTuple(const PixelInfo *pixel, const MagickBooleanType hex, char *tuple)
Definition: color.c:1556
MagickExport ImageType GetImageType(const Image *image)
Definition: attribute.c:587
double y
Definition: geometry.h:122
MagickExport const StringInfo * GetImageProfile(const Image *image, const char *name)
Definition: profile.c:248
RectangleInfo page
Definition: image.h:212
size_t magick_columns
Definition: image.h:324
#define UndefinedCompressionQuality
Definition: image-private.h:36
size_t MagickSizeType
Definition: magick-type.h:128
#define MagickPathExtent
MagickExport void PrintStringInfo(FILE *file, const char *id, const StringInfo *string_info)
Definition: string.c:1547
MagickExport MagickBooleanType IsStringTrue(const char *value)
Definition: string.c:1464
static void GetPixelInfoPixel(const Image *magick_restrict image, const Quantum *magick_restrict pixel, PixelInfo *magick_restrict pixel_info)
PrimaryInfo blue_primary
Definition: image.h:125
MagickExport ChannelMoments * GetImageMoments(const Image *image, ExceptionInfo *exception)
Definition: statistic.c:1358
PixelTrait alpha_trait
Definition: image.h:280
MagickExport int GetMagickPrecision(void)
Definition: magick.c:865
#define MagickMaximumValue
Definition: magick-type.h:111
MagickExport Image * ReadImage(const ImageInfo *image_info, ExceptionInfo *exception)
Definition: constitute.c:358
static ssize_t PrintChannelPerceptualHash(Image *image, FILE *file, const ChannelPerceptualHash *channel_phash)
Definition: identify.c:383
MagickExport void ResetImageRegistryIterator(void)
Definition: registry.c:385
static ssize_t PrintChannelLocations(FILE *file, const Image *image, const PixelChannel channel, const char *name, const StatisticType type, const size_t max_locations, const ChannelStatistics *channel_statistics)
Definition: identify.c:278
char magick_filename[MagickPathExtent]
Definition: image.h:319
struct _Image * previous
Definition: image.h:348
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
Definition: log.c:1397
MagickExport const char * GetMagickVersion(size_t *version)
Definition: version.c:564
size_t signature
Definition: image.h:354
#define QuantumScale
Definition: magick-type.h:113
size_t columns
Definition: image.h:172
MagickExport const char * GetNextImageProperty(const Image *image)
Definition: property.c:3208
MagickExport const MagickInfo * GetMagickInfo(const char *name, ExceptionInfo *exception)
Definition: magick.c:597
ssize_t x
Definition: geometry.h:133
struct _Image * next
Definition: image.h:348
size_t height
Definition: geometry.h:129
MagickExport ImageType IdentifyImageType(const Image *image, ExceptionInfo *exception)
Definition: attribute.c:807
void(* WarningHandler)(const ExceptionType, const char *, const char *)
Definition: exception.h:133
MagickExport void ConcatenateColorComponent(const PixelInfo *pixel, const PixelChannel channel, const ComplianceType compliance, char *tuple)
Definition: color.c:1124
MagickExport size_t CopyMagickString(char *destination, const char *source, const size_t length)
Definition: string.c:742
RectangleInfo extract_info
Definition: image.h:212
static char * sentinel[]
Definition: xml-tree.c:137
PixelChannel
Definition: pixel.h:66
MagickExport char * GetNextImageProfile(const Image *image)
Definition: profile.c:287
double y
Definition: image.h:99
size_t quality
Definition: image.h:163
size_t colors
Definition: image.h:172
TimerInfo timer
Definition: image.h:300
static size_t GetPixelChannels(const Image *magick_restrict image)
MagickExport int LocaleCompare(const char *p, const char *q)
Definition: locale.c:1409
char filename[MagickPathExtent]
Definition: image.h:319
#define GetMagickModule()
Definition: log.h:28
PrimaryInfo green_primary
Definition: image.h:125
MagickExport size_t GetNumberColors(const Image *image, FILE *file, ExceptionInfo *exception)
Definition: histogram.c:1002
MagickExport void GetTimerInfo(TimerInfo *time_info)
Definition: timer.c:280
MagickExport ChannelFeatures * GetImageFeatures(const Image *image, const size_t distance, ExceptionInfo *exception)
Definition: feature.c:622
static Quantum ClampToQuantum(const MagickRealType value)
Definition: quantum.h:84
static PixelChannel GetPixelChannelChannel(const Image *magick_restrict image, const ssize_t offset)
PrimaryInfo white_point
Definition: image.h:125
MagickExport MagickSizeType GetBlobSize(const Image *image)
Definition: blob.c:1686
MagickExport ImageInfo * DestroyImageInfo(ImageInfo *image_info)
Definition: image.c:1253
RenderingIntent rendering_intent
Definition: image.h:192
double normalized_maximum_error
Definition: color.h:62
ErrorInfo error
Definition: image.h:297
MagickExport size_t GetImageDepth(const Image *image, ExceptionInfo *exception)
Definition: attribute.c:274
unsigned short Quantum
Definition: magick-type.h:82
MagickExport Image * GetNextImageInList(const Image *images)
Definition: list.c:752
MagickExport char * DestroyString(char *string)
Definition: string.c:810
MagickExport const char * GetMagickMimeType(const MagickInfo *magick_info)
Definition: magick.c:839
static ssize_t PrintChannelStatistics(FILE *file, const PixelChannel channel, const char *name, const double scale, const ChannelStatistics *channel_statistics)
Definition: identify.c:439
MagickExport const char * GetImageProperty(const Image *image, const char *property, ExceptionInfo *exception)
Definition: property.c:2185
MagickExport double GetElapsedTime(TimerInfo *time_info)
Definition: timer.c:247
char * directory
Definition: image.h:201
ChromaticityInfo chromaticity
Definition: image.h:189
ColorspaceType colorspace[MaximumNumberOfPerceptualColorspaces+1]
Definition: statistic.h:75
#define MagickMin(x, y)
Definition: image-private.h:27
MagickExport const char * GetNextImageArtifact(const Image *image)
Definition: artifact.c:323
ColorspaceType
Definition: colorspace.h:25
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1038
size_t total_colors
Definition: image.h:248
#define MaxPixelChannels
Definition: pixel.h:27
PointInfo resolution
Definition: image.h:209
MagickExport void * GetImageRegistry(const RegistryType type, const char *key, ExceptionInfo *exception)
Definition: registry.c:187
ImageType
Definition: image.h:48
MagickExport char * CloneString(char **destination, const char *source)
Definition: string.c:270
CompositeOperator compose
Definition: image.h:234
MagickExport void ResetImageProfileIterator(const Image *image)
Definition: profile.c:1275
#define MagickExport
OrientationType orientation
Definition: image.h:166
ssize_t y
Definition: geometry.h:133
ColorspaceType colorspace
Definition: pixel.h:173
PixelTrait
Definition: pixel.h:132
PixelInfo transparent_color
Definition: image.h:179
MagickExport ChannelPerceptualHash * GetImagePerceptualHash(const Image *image, ExceptionInfo *exception)
Definition: statistic.c:1697
MagickExport size_t GetStringInfoLength(const StringInfo *string_info)
Definition: string.c:1312
PixelInfo background_color
Definition: image.h:179
MagickExport size_t GetImageListLength(const Image *images)
Definition: list.c:680
MagickExport Image * DestroyImage(Image *image)
Definition: image.c:1182
static SplayTreeInfo * registry
Definition: registry.c:75
double gamma
Definition: image.h:186
ColorspaceType colorspace
Definition: image.h:157
#define QuantumRange
Definition: magick-type.h:83
MagickBooleanType debug
Definition: image.h:334
size_t depth
Definition: image.h:172