Home | History | Annotate | Download | only in MagickCore

Lines Matching refs:property

13 %                         MagickCore Property Methods                         %
73 #include "MagickCore/property.h"
223 % MagickBooleanType DefineImageProperty(Image *image,const char *property,
230 % o property: the image property.
236 const char *property,ExceptionInfo *exception)
246 assert(property != (const char *) NULL);
247 (void) CopyMagickString(key,property,MagickPathExtent-1);
270 % DeleteImageProperty() deletes an image property.
274 % MagickBooleanType DeleteImageProperty(Image *image,const char *property)
280 % o property: the image property.
284 const char *property)
292 return(DeleteNodeFromSplayTree((SplayTreeInfo *) image->properties,property));
342 % FormatImageProperty() permits formatted property/value pairs to be saved as
343 % an image property.
347 % MagickBooleanType FormatImageProperty(Image *image,const char *property,
354 % o property: The attribute property.
361 const char *property,const char *format,...)
383 status=SetImageProperty(image,property,value,exception);
400 % GetImageProperty() gets a value associated with an image property.
833 const char *property,ExceptionInfo *exception)
1248 if ((property == (const char *) NULL) || (*property == '\0'))
1250 while (isspace((int) ((unsigned char) *property)) != 0)
1251 property++;
1252 if (strlen(property) <= 5)
1256 switch (*(property+5))
1285 tag=(*(property+5) == '@') ? 1UL : 0UL;
1286 property+=6;
1287 n=strlen(property);
1298 c=(*property++);
1311 } while (*property != '\0');
1323 if (LocaleCompare(EXIFTag[i].description,property) == 0)
1545 key=AcquireString(property);
1647 static MagickBooleanType GetICCProperty(const Image *image,const char *property,
1653 magick_unreferenced(property);
1717 static MagickBooleanType GetXMPProperty(const Image *image,const char *property)
1747 if ((property == (const char *) NULL) || (*property == '\0'))
2177 const char *property,ExceptionInfo *exception)
2189 if (property == (const char *) NULL)
2197 image->properties,property);
2201 if ((property == (const char *) NULL) ||
2202 (strchr(property,':') == (char *) NULL))
2204 switch (*property)
2208 if (LocaleNCompare("8bim:",property,5) == 0)
2210 (void) Get8BIMProperty(image,property,exception);
2218 if (LocaleNCompare("exif:",property,5) == 0)
2220 (void) GetEXIFProperty(image,property,exception);
2228 if ((LocaleNCompare("icc:",property,4) == 0) ||
2229 (LocaleNCompare("icm:",property,4) == 0))
2231 (void) GetICCProperty(image,property,exception);
2234 if (LocaleNCompare("iptc:",property,5) == 0)
2236 (void) GetIPTCProperty(image,property,exception);
2244 if (LocaleNCompare("xmp:",property,4) == 0)
2246 (void) GetXMPProperty(image,property);
2257 image->properties,property);
2276 % with a fixed known property name, or single letter property. It may be
2287 % %c comment meta-data property
2295 % %l label meta-data property
2330 % it return any free-form property strings.
2334 % stored as as either as artifact or option 'get-property'. These may be
2341 % const char *property,ExceptionInfo *exception)
2399 case 'c': /* image comment property - empty string by default */
2462 case 'l': /* Image label property - empty string by default */
2731 (void) SetImageArtifact(image,"get-property",value);
2732 return(GetImageArtifact(image,"get-property"));
2736 (void) SetImageOption(image_info,"get-property",value);
2737 return(GetImageOption(image_info,"get-property"));
2744 Image *image,const char *property,ExceptionInfo *exception)
2752 assert(property[0] != '\0');
2754 if (property[1] == '\0') /* single letter property request */
2755 return(GetMagickPropertyLetter(image_info,image,*property,exception));
2764 switch (*property)
2768 if (LocaleCompare("basename",property) == 0)
2770 WarnNoImageReturn("\"%%[%s]\"",property);
2776 if (LocaleCompare("bit-depth",property) == 0)
2786 if (LocaleCompare("channels",property) == 0)
2788 WarnNoImageReturn("\"%%[%s]\"",property);
2798 if (LocaleCompare("colorspace",property) == 0)
2800 WarnNoImageReturn("\"%%[%s]\"",property);
2806 if (LocaleCompare("compose",property) == 0)
2808 WarnNoImageReturn("\"%%[%s]\"",property);
2813 if (LocaleCompare("copyright",property) == 0)
2822 if (LocaleCompare("depth",property) == 0)
2824 WarnNoImageReturn("\"%%[%s]\"",property);
2829 if (LocaleCompare("directory",property) == 0)
2831 WarnNoImageReturn("\"%%[%s]\"",property);
2841 if (LocaleCompare("entropy",property) == 0)
2846 WarnNoImageReturn("\"%%[%s]\"",property);
2852 if (LocaleCompare("extension",property) == 0)
2854 WarnNoImageReturn("\"%%[%s]\"",property);
2864 if (LocaleCompare("gamma",property) == 0)
2866 WarnNoImageReturn("\"%%[%s]\"",property);
2875 if (LocaleCompare("height",property) == 0)
2877 WarnNoImageReturn("\"%%[%s]\"",property);
2886 if (LocaleCompare("input",property) == 0)
2888 WarnNoImageReturn("\"%%[%s]\"",property);
2896 if (LocaleCompare("kurtosis",property) == 0)
2902 WarnNoImageReturn("\"%%[%s]\"",property);
2912 if (LocaleCompare("magick",property) == 0)
2914 WarnNoImageReturn("\"%%[%s]\"",property);
2918 if ((LocaleCompare("maxima",property) == 0) ||
2919 (LocaleCompare("max",property) == 0))
2925 WarnNoImageReturn("\"%%[%s]\"",property);
2931 if (LocaleCompare("mean",property) == 0)
2937 WarnNoImageReturn("\"%%[%s]\"",property);
2943 if ((LocaleCompare("minima",property) == 0) ||
2944 (LocaleCompare("min",property) == 0))
2950 WarnNoImageReturn("\"%%[%s]\"",property);
2960 if (LocaleCompare("opaque",property) == 0)
2962 WarnNoImageReturn("\"%%[%s]\"",property);
2967 if (LocaleCompare("orientation",property) == 0)
2969 WarnNoImageReturn("\"%%[%s]\"",property);
2974 if (LocaleCompare("output",property) == 0)
2976 WarnNoImageInfoReturn("\"%%[%s]\"",property);
2985 if (LocaleCompare("profile:icc",property) == 0 ||
2986 LocaleCompare("profile:icm",property) == 0)
2998 profile=GetImageProfile(image,property+8);
3015 if (LocaleCompare("profiles",property) == 0)
3039 if (LocaleCompare("resolution.x",property) == 0)
3041 WarnNoImageReturn("\"%%[%s]\"",property);
3046 if (LocaleCompare("resolution.y",property) == 0)
3048 WarnNoImageReturn("\"%%[%s]\"",property);
3057 if (LocaleCompare("scene",property) == 0)
3059 WarnNoImageInfoReturn("\"%%[%s]\"",property);
3064 WarnNoImageReturn("\"%%[%s]\"",property);
3070 if (LocaleCompare("scenes",property) == 0)
3073 WarnNoImageReturn("\"%%[%s]\"",property);
3078 if (LocaleCompare("size",property) == 0)
3080 WarnNoImageReturn("\"%%[%s]\"",property);
3085 if (LocaleCompare("skewness",property) == 0)
3091 WarnNoImageReturn("\"%%[%s]\"",property);
3097 if (LocaleCompare("standard-deviation",property) == 0)
3103 WarnNoImageReturn("\"%%[%s]\"",property);
3113 if (LocaleCompare("type",property) == 0)
3115 WarnNoImageReturn("\"%%[%s]\"",property);
3124 if (LocaleCompare("unique",property) == 0)
3126 WarnNoImageInfoReturn("\"%%[%s]\"",property);
3130 if (LocaleCompare("units",property) == 0)
3132 WarnNoImageReturn("\"%%[%s]\"",property);
3137 if (LocaleCompare("copyright",property) == 0)
3142 if (LocaleCompare("version",property) == 0)
3151 if (LocaleCompare("width",property) == 0)
3153 WarnNoImageReturn("\"%%[%s]\"",property);
3170 (void) SetImageArtifact(image,"get-property",value);
3171 return(GetImageArtifact(image,"get-property"));
3175 (void) SetImageOption(image_info,"get-property",value);
3176 return(GetImageOption(image_info,"get-property"));
3195 % GetNextImageProperty() gets the next free-form string property name.
3231 % the appropriate image property and returns the interpreted text.
3241 % value, or a per-image property string name, or a per-image
3489 (void) DeleteImageArtifact(image,"get-property");
3491 (void) DeleteImageOption(image_info,"get-property");
3713 if (LocaleNCompare("property:",pattern,9) == 0)
3716 Property - direct image property lookup (with glob).
3755 (void)DeleteImageArtifact(image,"get-property");
3757 (void)DeleteImageOption(image_info,"get-property");
3764 Handle property 'glob' patterns such as:
3781 Look for a known property or image attribute such as
3848 % RemoveImageProperty() removes a property from the image and returns its
3856 % char *RemoveImageProperty(Image *image,const char *property)
3862 % o property: the image property.
3865 MagickExport char *RemoveImageProperty(Image *image,const char *property)
3877 property);
3895 % associated with an image property.
3930 % attribute or to a freeform property string.
3932 % Attempting to set a property that is normally calculated will produce
3937 % MagickBooleanType SetImageProperty(Image *image,const char *property,
3944 % o property: the image property.
3946 % o values: the image property values.
3952 const char *property,const char *value,ExceptionInfo *exception)
3968 return(DeleteImageProperty(image,property)); /* delete if NULL */
3970 if (strlen(property) <= 1)
3976 "SetReadOnlyProperty","`%s'",property);
3984 switch (*property)
3990 if (LocaleNCompare("8bim:",property,5) == 0)
3993 "SetReadOnlyProperty","`%s'",property);
4002 if (LocaleCompare("background",property) == 0)
4009 break; /* not an attribute, add as a property */
4014 if (LocaleCompare("channels",property) == 0)
4017 "SetReadOnlyProperty","`%s'",property);
4020 if (LocaleCompare("colorspace",property) == 0)
4031 if (LocaleCompare("compose",property) == 0)
4042 if (LocaleCompare("compress",property) == 0)
4054 break; /* not an attribute, add as a property */
4059 if (LocaleCompare("delay",property) == 0)
4083 if (LocaleCompare("delay_units",property) == 0)
4086 "SetReadOnlyProperty","`%s'",property);
4089 if (LocaleCompare("density",property) == 0)
4101 if (LocaleCompare("depth",property) == 0)
4106 if (LocaleCompare("dispose",property) == 0)
4117 break; /* not an attribute, add as a property */
4124 if (LocaleNCompare("exif:",property,5) == 0)
4127 "SetReadOnlyProperty","`%s'",property);
4130 break; /* not an attribute, add as a property */
4135 if (LocaleNCompare("fx:",property,3) == 0)
4138 "SetReadOnlyProperty","`%s'",property);
4141 break; /* not an attribute, add as a property */
4147 if (LocaleCompare("gamma",property) == 0)
4152 if (LocaleCompare("gravity",property) == 0)
4163 break; /* not an attribute, add as a property */
4168 if (LocaleCompare("height",property) == 0)
4171 "SetReadOnlyProperty","`%s'",property);
4174 break; /* not an attribute, add as a property */
4179 if (LocaleCompare("intensity",property) == 0)
4190 if (LocaleCompare("intent",property) == 0)
4202 if (LocaleCompare("interpolate",property) == 0)
4216 if (LocaleNCompare("iptc:",property,5) == 0)
4219 "SetReadOnlyProperty","`%s'",property);
4223 break; /* not an attribute, add as a property */
4227 if (LocaleCompare("kurtosis",property) == 0)
4230 "SetReadOnlyProperty","`%s'",property);
4233 break; /* not an attribute, add as a property */
4237 if (LocaleCompare("loop",property) == 0)
4242 break; /* not an attribute, add as a property */
4246 if ((LocaleCompare("magick",property) == 0) ||
4247 (LocaleCompare("max",property) == 0) ||
4248 (LocaleCompare("mean",property) == 0) ||
4249 (LocaleCompare("min",property) == 0) ||
4250 (LocaleCompare("min",property) == 0))
4253 "SetReadOnlyProperty","`%s'",property);
4256 break; /* not an attribute, add as a property */
4259 if (LocaleCompare("opaque",property) == 0)
4262 "SetReadOnlyProperty","`%s'",property);
4265 break; /* not an attribute, add as a property */
4269 if (LocaleCompare("page",property) == 0)
4281 if (LocaleNCompare("pixel:",property,6) == 0)
4284 "SetReadOnlyProperty","`%s'",property);
4288 if (LocaleCompare("profile",property) == 0)
4305 break; /* not an attribute, add as a property */
4310 if (LocaleCompare("rendering-intent",property) == 0)
4322 break; /* not an attribute, add as a property */
4326 if ((LocaleCompare("size",property) == 0) ||
4327 (LocaleCompare("skewness",property) == 0) ||
4328 (LocaleCompare("scenes",property) == 0) ||
4329 (LocaleCompare("standard-deviation",property) == 0))
4332 "SetReadOnlyProperty","`%s'",property);
4335 break; /* not an attribute, add as a property */
4339 if (LocaleCompare("tile-offset",property) == 0)
4349 break; /* not an attribute, add as a property */
4354 if (LocaleCompare("units",property) == 0)
4365 break; /* not an attribute, add as a property */
4370 if (LocaleCompare("version",property) == 0)
4373 "SetReadOnlyProperty","`%s'",property);
4376 break; /* not an attribute, add as a property */
4381 if (LocaleCompare("width",property) == 0)
4384 "SetReadOnlyProperty","`%s'",property);
4387 break; /* not an attribute, add as a property */
4394 if (LocaleNCompare("xmp:",property,4) == 0)
4397 "SetReadOnlyProperty","`%s'",property);
4400 break; /* not an attribute, add as a property */
4404 /* Default: not an attribute, add as a property */
4406 ConstantString(property),ConstantString(value));