88 #if defined(MAGICKCORE_LCMS_DELEGATE) 89 #if defined(MAGICKCORE_HAVE_LCMS2_LCMS2_H) 90 #include <lcms2/lcms2.h> 91 #elif defined(MAGICKCORE_HAVE_LCMS2_H) 93 #elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H) 94 #include <lcms/lcms.h> 103 #if defined(MAGICKCORE_LCMS_DELEGATE) 104 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000) 105 #define cmsUInt32Number DWORD 135 const Image *clone_image)
137 assert(image != (
Image *) NULL);
141 assert(clone_image != (
const Image *) NULL);
242 assert(image != (
Image *) NULL);
243 assert(property != (
const char *) NULL);
245 for (p=key; *p !=
'\0'; p++)
280 const char *property)
282 assert(image != (
Image *) NULL);
316 assert(image != (
Image *) NULL);
355 const char *property,
const char *format,...)
372 va_start(operands,format);
448 count=sscanf(key,
"IPTC:%ld:%ld",&dataset,&record);
451 attribute=(
char *) NULL;
462 message=(
char *) NULL;
465 if (message != (
char *) NULL)
476 if ((attribute == (
char *) NULL) || (*attribute ==
';'))
478 if (attribute != (
char *) NULL)
482 attribute[strlen(attribute)-1]=
'\0';
527 for (i=0; i < 4; i++)
531 buffer[i]=(
unsigned char) c;
533 value=(
unsigned int) buffer[0] << 24;
534 value|=(
unsigned int) buffer[1] << 16;
535 value|=(
unsigned int) buffer[2] << 8;
536 value|=(
unsigned int) buffer[3];
537 quantum.unsigned_value=value & 0xffffffff;
538 return(quantum.signed_value);
566 return((
unsigned short) ~0);
567 for (i=0; i < 2; i++)
571 buffer[i]=(
unsigned char) c;
573 value=(
unsigned short) buffer[0] << 8;
574 value|=(
unsigned short) buffer[1];
575 quantum.unsigned_value=value & 0xffff;
576 return(quantum.signed_value);
618 count=(ssize_t) sscanf(key,
"8BIM:%ld,%ld:%1024[^\n]\n%1024[^\n]",&start,&stop,
620 if ((count != 2) && (count != 3) && (count != 4))
630 resource=(
char *) NULL;
645 if (
id < (ssize_t) start)
647 if (
id > (ssize_t) stop)
649 if (resource != (
char *) NULL)
652 if ((count != 0) && ((size_t) count <=
length))
654 resource=(
char *) NULL;
658 if (resource != (
char *) NULL)
660 for (i=0; i < (ssize_t) count; i++)
662 resource[count]=
'\0';
665 if ((count & 0x01) == 0)
668 if ((count < 0) || ((size_t) count >
length))
673 if ((*
name !=
'\0') && (*
name !=
'#'))
683 if ((*
name ==
'#') && (sub_number != 1))
696 attribute=(
char *) NULL;
700 if (attribute != (
char *) NULL)
702 (void) memcpy(attribute,(
char *)
info,(size_t) count);
703 attribute[count]=
'\0';
706 if ((
id <= 1999) || (
id >= 2999))
727 if (resource != (
char *) NULL)
733 const unsigned char *buffer)
749 value=(
unsigned int) buffer[3] << 24;
750 value|=(
unsigned int) buffer[2] << 16;
751 value|=(
unsigned int) buffer[1] << 8;
752 value|=(
unsigned int) buffer[0];
753 quantum.unsigned_value=value & 0xffffffff;
754 return(quantum.signed_value);
756 value=(
unsigned int) buffer[0] << 24;
757 value|=(
unsigned int) buffer[1] << 16;
758 value|=(
unsigned int) buffer[2] << 8;
759 value|=(
unsigned int) buffer[3];
760 quantum.unsigned_value=value & 0xffffffff;
761 return(quantum.signed_value);
765 const unsigned char *buffer)
772 value=(
unsigned int) buffer[3] << 24;
773 value|=(
unsigned int) buffer[2] << 16;
774 value|=(
unsigned int) buffer[1] << 8;
775 value|=(
unsigned int) buffer[0];
776 return(value & 0xffffffff);
778 value=(
unsigned int) buffer[0] << 24;
779 value|=(
unsigned int) buffer[1] << 16;
780 value|=(
unsigned int) buffer[2] << 8;
781 value|=(
unsigned int) buffer[3];
782 return(value & 0xffffffff);
786 const unsigned char *buffer)
802 value=(
unsigned short) buffer[1] << 8;
803 value|=(
unsigned short) buffer[0];
804 quantum.unsigned_value=value & 0xffff;
805 return(quantum.signed_value);
807 value=(
unsigned short) buffer[0] << 8;
808 value|=(
unsigned short) buffer[1];
809 quantum.unsigned_value=value & 0xffff;
810 return(quantum.signed_value);
814 const unsigned char *buffer)
821 value=(
unsigned short) buffer[1] << 8;
822 value|=(
unsigned short) buffer[0];
823 return(value & 0xffff);
825 value=(
unsigned short) buffer[0] << 8;
826 value|=(
unsigned short) buffer[1];
827 return(value & 0xffff);
833 #define MaxDirectoryStack 16 834 #define EXIF_DELIMITER "\n" 835 #define EXIF_NUM_FORMATS 12 836 #define EXIF_FMT_BYTE 1 837 #define EXIF_FMT_STRING 2 838 #define EXIF_FMT_USHORT 3 839 #define EXIF_FMT_ULONG 4 840 #define EXIF_FMT_URATIONAL 5 841 #define EXIF_FMT_SBYTE 6 842 #define EXIF_FMT_UNDEFINED 7 843 #define EXIF_FMT_SSHORT 8 844 #define EXIF_FMT_SLONG 9 845 #define EXIF_FMT_SRATIONAL 10 846 #define EXIF_FMT_SINGLE 11 847 #define EXIF_FMT_DOUBLE 12 848 #define TAG_EXIF_OFFSET 0x8769 849 #define TAG_GPS_OFFSET 0x8825 850 #define TAG_INTEROP_OFFSET 0xa005 852 #define EXIFMultipleValues(size,format,arg) \ 865 for (component=0; component < components; component++) \ 867 len+=FormatLocaleString(buffer+len,MagickPathExtent-len,format", ",arg); \ 868 if (len >= (MagickPathExtent-1)) \ 869 len=MagickPathExtent-1; \ 873 buffer[len-2]='\0'; \ 874 value=AcquireString(buffer); \ 877 #define EXIFMultipleFractions(size,format,arg1,arg2) \ 890 for (component=0; component < components; component++) \ 892 len+=FormatLocaleString(buffer+len,MagickPathExtent-len,format", ", \ 894 if (len >= (MagickPathExtent-1)) \ 895 len=MagickPathExtent-1; \ 899 buffer[len-2]='\0'; \ 900 value=AcquireString(buffer); \ 903 typedef struct _DirectoryInfo
915 typedef struct _TagInfo
927 { 0x001,
"exif:InteroperabilityIndex" },
928 { 0x002,
"exif:InteroperabilityVersion" },
929 { 0x100,
"exif:ImageWidth" },
930 { 0x101,
"exif:ImageLength" },
931 { 0x102,
"exif:BitsPerSample" },
932 { 0x103,
"exif:Compression" },
933 { 0x106,
"exif:PhotometricInterpretation" },
934 { 0x10a,
"exif:FillOrder" },
935 { 0x10d,
"exif:DocumentName" },
936 { 0x10e,
"exif:ImageDescription" },
937 { 0x10f,
"exif:Make" },
938 { 0x110,
"exif:Model" },
939 { 0x111,
"exif:StripOffsets" },
940 { 0x112,
"exif:Orientation" },
941 { 0x115,
"exif:SamplesPerPixel" },
942 { 0x116,
"exif:RowsPerStrip" },
943 { 0x117,
"exif:StripByteCounts" },
944 { 0x11a,
"exif:XResolution" },
945 { 0x11b,
"exif:YResolution" },
946 { 0x11c,
"exif:PlanarConfiguration" },
947 { 0x11d,
"exif:PageName" },
948 { 0x11e,
"exif:XPosition" },
949 { 0x11f,
"exif:YPosition" },
950 { 0x118,
"exif:MinSampleValue" },
951 { 0x119,
"exif:MaxSampleValue" },
952 { 0x120,
"exif:FreeOffsets" },
953 { 0x121,
"exif:FreeByteCounts" },
954 { 0x122,
"exif:GrayResponseUnit" },
955 { 0x123,
"exif:GrayResponseCurve" },
956 { 0x124,
"exif:T4Options" },
957 { 0x125,
"exif:T6Options" },
958 { 0x128,
"exif:ResolutionUnit" },
959 { 0x12d,
"exif:TransferFunction" },
960 { 0x131,
"exif:Software" },
961 { 0x132,
"exif:DateTime" },
962 { 0x13b,
"exif:Artist" },
963 { 0x13e,
"exif:WhitePoint" },
964 { 0x13f,
"exif:PrimaryChromaticities" },
965 { 0x140,
"exif:ColorMap" },
966 { 0x141,
"exif:HalfToneHints" },
967 { 0x142,
"exif:TileWidth" },
968 { 0x143,
"exif:TileLength" },
969 { 0x144,
"exif:TileOffsets" },
970 { 0x145,
"exif:TileByteCounts" },
971 { 0x14a,
"exif:SubIFD" },
972 { 0x14c,
"exif:InkSet" },
973 { 0x14d,
"exif:InkNames" },
974 { 0x14e,
"exif:NumberOfInks" },
975 { 0x150,
"exif:DotRange" },
976 { 0x151,
"exif:TargetPrinter" },
977 { 0x152,
"exif:ExtraSample" },
978 { 0x153,
"exif:SampleFormat" },
979 { 0x154,
"exif:SMinSampleValue" },
980 { 0x155,
"exif:SMaxSampleValue" },
981 { 0x156,
"exif:TransferRange" },
982 { 0x157,
"exif:ClipPath" },
983 { 0x158,
"exif:XClipPathUnits" },
984 { 0x159,
"exif:YClipPathUnits" },
985 { 0x15a,
"exif:Indexed" },
986 { 0x15b,
"exif:JPEGTables" },
987 { 0x15f,
"exif:OPIProxy" },
988 { 0x200,
"exif:JPEGProc" },
989 { 0x201,
"exif:JPEGInterchangeFormat" },
990 { 0x202,
"exif:JPEGInterchangeFormatLength" },
991 { 0x203,
"exif:JPEGRestartInterval" },
992 { 0x205,
"exif:JPEGLosslessPredictors" },
993 { 0x206,
"exif:JPEGPointTransforms" },
994 { 0x207,
"exif:JPEGQTables" },
995 { 0x208,
"exif:JPEGDCTables" },
996 { 0x209,
"exif:JPEGACTables" },
997 { 0x211,
"exif:YCbCrCoefficients" },
998 { 0x212,
"exif:YCbCrSubSampling" },
999 { 0x213,
"exif:YCbCrPositioning" },
1000 { 0x214,
"exif:ReferenceBlackWhite" },
1001 { 0x2bc,
"exif:ExtensibleMetadataPlatform" },
1002 { 0x301,
"exif:Gamma" },
1003 { 0x302,
"exif:ICCProfileDescriptor" },
1004 { 0x303,
"exif:SRGBRenderingIntent" },
1005 { 0x320,
"exif:ImageTitle" },
1006 { 0x5001,
"exif:ResolutionXUnit" },
1007 { 0x5002,
"exif:ResolutionYUnit" },
1008 { 0x5003,
"exif:ResolutionXLengthUnit" },
1009 { 0x5004,
"exif:ResolutionYLengthUnit" },
1010 { 0x5005,
"exif:PrintFlags" },
1011 { 0x5006,
"exif:PrintFlagsVersion" },
1012 { 0x5007,
"exif:PrintFlagsCrop" },
1013 { 0x5008,
"exif:PrintFlagsBleedWidth" },
1014 { 0x5009,
"exif:PrintFlagsBleedWidthScale" },
1015 { 0x500A,
"exif:HalftoneLPI" },
1016 { 0x500B,
"exif:HalftoneLPIUnit" },
1017 { 0x500C,
"exif:HalftoneDegree" },
1018 { 0x500D,
"exif:HalftoneShape" },
1019 { 0x500E,
"exif:HalftoneMisc" },
1020 { 0x500F,
"exif:HalftoneScreen" },
1021 { 0x5010,
"exif:JPEGQuality" },
1022 { 0x5011,
"exif:GridSize" },
1023 { 0x5012,
"exif:ThumbnailFormat" },
1024 { 0x5013,
"exif:ThumbnailWidth" },
1025 { 0x5014,
"exif:ThumbnailHeight" },
1026 { 0x5015,
"exif:ThumbnailColorDepth" },
1027 { 0x5016,
"exif:ThumbnailPlanes" },
1028 { 0x5017,
"exif:ThumbnailRawBytes" },
1029 { 0x5018,
"exif:ThumbnailSize" },
1030 { 0x5019,
"exif:ThumbnailCompressedSize" },
1031 { 0x501a,
"exif:ColorTransferFunction" },
1032 { 0x501b,
"exif:ThumbnailData" },
1033 { 0x5020,
"exif:ThumbnailImageWidth" },
1034 { 0x5021,
"exif:ThumbnailImageHeight" },
1035 { 0x5022,
"exif:ThumbnailBitsPerSample" },
1036 { 0x5023,
"exif:ThumbnailCompression" },
1037 { 0x5024,
"exif:ThumbnailPhotometricInterp" },
1038 { 0x5025,
"exif:ThumbnailImageDescription" },
1039 { 0x5026,
"exif:ThumbnailEquipMake" },
1040 { 0x5027,
"exif:ThumbnailEquipModel" },
1041 { 0x5028,
"exif:ThumbnailStripOffsets" },
1042 { 0x5029,
"exif:ThumbnailOrientation" },
1043 { 0x502a,
"exif:ThumbnailSamplesPerPixel" },
1044 { 0x502b,
"exif:ThumbnailRowsPerStrip" },
1045 { 0x502c,
"exif:ThumbnailStripBytesCount" },
1046 { 0x502d,
"exif:ThumbnailResolutionX" },
1047 { 0x502e,
"exif:ThumbnailResolutionY" },
1048 { 0x502f,
"exif:ThumbnailPlanarConfig" },
1049 { 0x5030,
"exif:ThumbnailResolutionUnit" },
1050 { 0x5031,
"exif:ThumbnailTransferFunction" },
1051 { 0x5032,
"exif:ThumbnailSoftwareUsed" },
1052 { 0x5033,
"exif:ThumbnailDateTime" },
1053 { 0x5034,
"exif:ThumbnailArtist" },
1054 { 0x5035,
"exif:ThumbnailWhitePoint" },
1055 { 0x5036,
"exif:ThumbnailPrimaryChromaticities" },
1056 { 0x5037,
"exif:ThumbnailYCbCrCoefficients" },
1057 { 0x5038,
"exif:ThumbnailYCbCrSubsampling" },
1058 { 0x5039,
"exif:ThumbnailYCbCrPositioning" },
1059 { 0x503A,
"exif:ThumbnailRefBlackWhite" },
1060 { 0x503B,
"exif:ThumbnailCopyRight" },
1061 { 0x5090,
"exif:LuminanceTable" },
1062 { 0x5091,
"exif:ChrominanceTable" },
1063 { 0x5100,
"exif:FrameDelay" },
1064 { 0x5101,
"exif:LoopCount" },
1065 { 0x5110,
"exif:PixelUnit" },
1066 { 0x5111,
"exif:PixelPerUnitX" },
1067 { 0x5112,
"exif:PixelPerUnitY" },
1068 { 0x5113,
"exif:PaletteHistogram" },
1069 { 0x1000,
"exif:RelatedImageFileFormat" },
1070 { 0x1001,
"exif:RelatedImageLength" },
1071 { 0x1002,
"exif:RelatedImageWidth" },
1072 { 0x800d,
"exif:ImageID" },
1073 { 0x80e3,
"exif:Matteing" },
1074 { 0x80e4,
"exif:DataType" },
1075 { 0x80e5,
"exif:ImageDepth" },
1076 { 0x80e6,
"exif:TileDepth" },
1077 { 0x828d,
"exif:CFARepeatPatternDim" },
1078 { 0x828e,
"exif:CFAPattern2" },
1079 { 0x828f,
"exif:BatteryLevel" },
1080 { 0x8298,
"exif:Copyright" },
1081 { 0x829a,
"exif:ExposureTime" },
1082 { 0x829d,
"exif:FNumber" },
1083 { 0x83bb,
"exif:IPTC/NAA" },
1084 { 0x84e3,
"exif:IT8RasterPadding" },
1085 { 0x84e5,
"exif:IT8ColorTable" },
1086 { 0x8649,
"exif:ImageResourceInformation" },
1087 { 0x8769,
"exif:ExifOffset" },
1088 { 0x8773,
"exif:InterColorProfile" },
1089 { 0x8822,
"exif:ExposureProgram" },
1090 { 0x8824,
"exif:SpectralSensitivity" },
1091 { 0x8825,
"exif:GPSInfo" },
1092 { 0x8827,
"exif:PhotographicSensitivity" },
1093 { 0x8828,
"exif:OECF" },
1094 { 0x8829,
"exif:Interlace" },
1095 { 0x882a,
"exif:TimeZoneOffset" },
1096 { 0x882b,
"exif:SelfTimerMode" },
1097 { 0x8830,
"exif:SensitivityType" },
1098 { 0x8831,
"exif:StandardOutputSensitivity" },
1099 { 0x8832,
"exif:RecommendedExposureIndex" },
1100 { 0x8833,
"exif:ISOSpeed" },
1101 { 0x8834,
"exif:ISOSpeedLatitudeyyy" },
1102 { 0x8835,
"exif:ISOSpeedLatitudezzz" },
1103 { 0x9000,
"exif:ExifVersion" },
1104 { 0x9003,
"exif:DateTimeOriginal" },
1105 { 0x9004,
"exif:DateTimeDigitized" },
1106 { 0x9010,
"exif:OffsetTime" },
1107 { 0x9011,
"exif:OffsetTimeOriginal" },
1108 { 0x9012,
"exif:OffsetTimeDigitized" },
1109 { 0x9101,
"exif:ComponentsConfiguration" },
1110 { 0x9102,
"exif:CompressedBitsPerPixel" },
1111 { 0x9201,
"exif:ShutterSpeedValue" },
1112 { 0x9202,
"exif:ApertureValue" },
1113 { 0x9203,
"exif:BrightnessValue" },
1114 { 0x9204,
"exif:ExposureBiasValue" },
1115 { 0x9205,
"exif:MaxApertureValue" },
1116 { 0x9206,
"exif:SubjectDistance" },
1117 { 0x9207,
"exif:MeteringMode" },
1118 { 0x9208,
"exif:LightSource" },
1119 { 0x9209,
"exif:Flash" },
1120 { 0x920a,
"exif:FocalLength" },
1121 { 0x920b,
"exif:FlashEnergy" },
1122 { 0x920c,
"exif:SpatialFrequencyResponse" },
1123 { 0x920d,
"exif:Noise" },
1124 { 0x9214,
"exif:SubjectArea" },
1125 { 0x9290,
"exif:SubSecTime" },
1126 { 0x9291,
"exif:SubSecTimeOriginal" },
1127 { 0x9292,
"exif:SubSecTimeDigitized" },
1128 { 0x9211,
"exif:ImageNumber" },
1129 { 0x9212,
"exif:SecurityClassification" },
1130 { 0x9213,
"exif:ImageHistory" },
1131 { 0x9214,
"exif:SubjectArea" },
1132 { 0x9215,
"exif:ExposureIndex" },
1133 { 0x9216,
"exif:TIFF-EPStandardID" },
1134 { 0x927c,
"exif:MakerNote" },
1135 { 0x9286,
"exif:UserComment" },
1136 { 0x9290,
"exif:SubSecTime" },
1137 { 0x9291,
"exif:SubSecTimeOriginal" },
1138 { 0x9292,
"exif:SubSecTimeDigitized" },
1139 { 0x9400,
"exif:Temperature" },
1140 { 0x9401,
"exif:Humidity" },
1141 { 0x9402,
"exif:Pressure" },
1142 { 0x9403,
"exif:WaterDepth" },
1143 { 0x9404,
"exif:Acceleration" },
1144 { 0x9405,
"exif:CameraElevationAngle" },
1145 { 0x9C9b,
"exif:WinXP-Title" },
1146 { 0x9C9c,
"exif:WinXP-Comments" },
1147 { 0x9C9d,
"exif:WinXP-Author" },
1148 { 0x9C9e,
"exif:WinXP-Keywords" },
1149 { 0x9C9f,
"exif:WinXP-Subject" },
1150 { 0xa000,
"exif:FlashPixVersion" },
1151 { 0xa001,
"exif:ColorSpace" },
1152 { 0xa002,
"exif:PixelXDimension" },
1153 { 0xa003,
"exif:PixelYDimension" },
1154 { 0xa004,
"exif:RelatedSoundFile" },
1155 { 0xa005,
"exif:InteroperabilityOffset" },
1156 { 0xa20b,
"exif:FlashEnergy" },
1157 { 0xa20c,
"exif:SpatialFrequencyResponse" },
1158 { 0xa20d,
"exif:Noise" },
1159 { 0xa20e,
"exif:FocalPlaneXResolution" },
1160 { 0xa20f,
"exif:FocalPlaneYResolution" },
1161 { 0xa210,
"exif:FocalPlaneResolutionUnit" },
1162 { 0xa214,
"exif:SubjectLocation" },
1163 { 0xa215,
"exif:ExposureIndex" },
1164 { 0xa216,
"exif:TIFF/EPStandardID" },
1165 { 0xa217,
"exif:SensingMethod" },
1166 { 0xa300,
"exif:FileSource" },
1167 { 0xa301,
"exif:SceneType" },
1168 { 0xa302,
"exif:CFAPattern" },
1169 { 0xa401,
"exif:CustomRendered" },
1170 { 0xa402,
"exif:ExposureMode" },
1171 { 0xa403,
"exif:WhiteBalance" },
1172 { 0xa404,
"exif:DigitalZoomRatio" },
1173 { 0xa405,
"exif:FocalLengthIn35mmFilm" },
1174 { 0xa406,
"exif:SceneCaptureType" },
1175 { 0xa407,
"exif:GainControl" },
1176 { 0xa408,
"exif:Contrast" },
1177 { 0xa409,
"exif:Saturation" },
1178 { 0xa40a,
"exif:Sharpness" },
1179 { 0xa40b,
"exif:DeviceSettingDescription" },
1180 { 0xa40c,
"exif:SubjectDistanceRange" },
1181 { 0xa420,
"exif:ImageUniqueID" },
1182 { 0xa430,
"exif:CameraOwnerName" },
1183 { 0xa431,
"exif:BodySerialNumber" },
1184 { 0xa432,
"exif:LensSpecification" },
1185 { 0xa433,
"exif:LensMake" },
1186 { 0xa434,
"exif:LensModel" },
1187 { 0xa435,
"exif:LensSerialNumber" },
1188 { 0xc4a5,
"exif:PrintImageMatching" },
1189 { 0xa500,
"exif:Gamma" },
1190 { 0xc640,
"exif:CR2Slice" },
1191 { 0x10000,
"exif:GPSVersionID" },
1192 { 0x10001,
"exif:GPSLatitudeRef" },
1193 { 0x10002,
"exif:GPSLatitude" },
1194 { 0x10003,
"exif:GPSLongitudeRef" },
1195 { 0x10004,
"exif:GPSLongitude" },
1196 { 0x10005,
"exif:GPSAltitudeRef" },
1197 { 0x10006,
"exif:GPSAltitude" },
1198 { 0x10007,
"exif:GPSTimeStamp" },
1199 { 0x10008,
"exif:GPSSatellites" },
1200 { 0x10009,
"exif:GPSStatus" },
1201 { 0x1000a,
"exif:GPSMeasureMode" },
1202 { 0x1000b,
"exif:GPSDop" },
1203 { 0x1000c,
"exif:GPSSpeedRef" },
1204 { 0x1000d,
"exif:GPSSpeed" },
1205 { 0x1000e,
"exif:GPSTrackRef" },
1206 { 0x1000f,
"exif:GPSTrack" },
1207 { 0x10010,
"exif:GPSImgDirectionRef" },
1208 { 0x10011,
"exif:GPSImgDirection" },
1209 { 0x10012,
"exif:GPSMapDatum" },
1210 { 0x10013,
"exif:GPSDestLatitudeRef" },
1211 { 0x10014,
"exif:GPSDestLatitude" },
1212 { 0x10015,
"exif:GPSDestLongitudeRef" },
1213 { 0x10016,
"exif:GPSDestLongitude" },
1214 { 0x10017,
"exif:GPSDestBearingRef" },
1215 { 0x10018,
"exif:GPSDestBearing" },
1216 { 0x10019,
"exif:GPSDestDistanceRef" },
1217 { 0x1001a,
"exif:GPSDestDistance" },
1218 { 0x1001b,
"exif:GPSProcessingMethod" },
1219 { 0x1001c,
"exif:GPSAreaInformation" },
1220 { 0x1001d,
"exif:GPSDateStamp" },
1221 { 0x1001e,
"exif:GPSDifferential" },
1222 { 0x1001f,
"exif:GPSHPositioningError" },
1263 tag_bytes[] = {0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8};
1271 if ((property == (
const char *) NULL) || (*property ==
'\0'))
1273 while (isspace((
int) ((
unsigned char) *property)) != 0)
1275 if (strlen(property) <= 5)
1279 switch (*(property+5))
1308 tag=(*(
property+5) ==
'@') ? 1UL : 0UL;
1319 for (i=(ssize_t) n-1L; i >= 0; i--)
1323 if ((c >=
'0') && (c <=
'9'))
1326 if ((c >=
'A') && (c <=
'F'))
1329 if ((c >=
'a') && (c <=
'f'))
1334 }
while (*property !=
'\0');
1344 if (EXIFTag[i].tag == 0)
1348 tag=(size_t) EXIFTag[i].tag;
1394 if ((offset < 0) || (size_t) offset >= length)
1400 directory=exif+offset;
1404 exif_resources=
NewSplayTree((
int (*)(
const void *,
const void *)) NULL,
1405 (
void *(*)(
void *)) NULL,(
void *(*)(
void *)) NULL);
1414 directory=directory_stack[level].directory;
1415 entry=directory_stack[level].entry;
1416 tag_offset=directory_stack[level].offset;
1418 if ((directory < exif) || (directory > (exif+length-2)))
1424 for ( ; entry < number_entries; entry++)
1437 q=(
unsigned char *) (directory+(12*entry)+2);
1438 if (q > (exif+length-12))
1445 if (format >= (
sizeof(tag_bytes)/
sizeof(*tag_bytes)))
1452 number_bytes=(size_t) components*tag_bytes[format];
1453 if (number_bytes < components)
1455 if (number_bytes <= 4)
1466 if ((dir_offset < 0) || (size_t) dir_offset >= length)
1468 if (((
size_t) dir_offset+number_bytes) < (
size_t) dir_offset)
1470 if (((
size_t) dir_offset+number_bytes) > length)
1472 p=(
unsigned char *) (exif+dir_offset);
1474 if ((all != 0) || (tag == (size_t) tag_value))
1480 if ((p < exif) || (p > (exif+length-tag_bytes[format])))
1482 value=(
char *) NULL;
1546 if ((p < exif) || (p > (exif+length-number_bytes)))
1548 value=(
char *) NULL;
1549 if (~((
size_t) number_bytes) >= 1)
1552 if (value != (
char *) NULL)
1554 for (i=0; i < (ssize_t) number_bytes; i++)
1557 if ((isprint((
int) p[i]) != 0) || (p[i] ==
'\0'))
1558 value[i]=(char) p[i];
1565 if (value != (
char *) NULL)
1578 description=
"unknown";
1581 if (EXIFTag[i].tag == 0)
1583 if (EXIFTag[i].tag == tag_value)
1585 description=EXIFTag[i].description;
1597 if (tag_value < 0x10000)
1599 (
unsigned long) tag_value);
1601 if (tag_value < 0x20000)
1603 (
unsigned long) (tag_value & 0xffff));
1616 key) == (
const void *) NULL))
1630 if (((
size_t) tag_offset1 < length) &&
1638 directory_stack[level].directory=directory;
1640 directory_stack[level].entry=entry;
1641 directory_stack[level].offset=tag_offset;
1646 for (i=0; i < level; i++)
1647 if (directory_stack[i].directory == (exif+tag_offset1))
1651 directory_stack[level].directory=exif+tag_offset1;
1652 directory_stack[level].offset=tag_offset2;
1653 directory_stack[level].entry=0;
1655 if ((directory+2+(12*number_entries)+4) > (exif+length))
1658 2+(12*number_entries));
1659 if ((tag_offset1 != 0) && ((size_t) tag_offset1 < length) &&
1662 directory_stack[level].directory=exif+tag_offset1;
1663 directory_stack[level].entry=0;
1664 directory_stack[level].offset=tag_offset2;
1671 }
while (level > 0);
1690 #if defined(MAGICKCORE_LCMS_DELEGATE) 1697 if (icc_profile != (cmsHPROFILE *) NULL)
1699 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000) 1703 name=cmsTakeProductName(icc_profile);
1704 if (name != (
const char *) NULL)
1713 (void) memset(info,0,
sizeof(info));
1714 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoDescription,
"en",
"US",
1718 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoDescription,
"en",
1723 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoManufacturer,
"en",
"US",
1727 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoManufacturer,
"en",
1732 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoModel,
"en",
"US",
1736 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoModel,
"en",
"US",
1740 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoCopyright,
"en",
"US",
1744 extent=cmsGetProfileInfoASCII(icc_profile,cmsInfoCopyright,
"en",
1750 (void) cmsCloseProfile(icc_profile);
1759 if (value == (
const char*) NULL)
1761 while (*value !=
'\0')
1763 if (isspace((
int) ((
unsigned char) *value)) == 0)
1802 if ((property == (
const char *) NULL) || (*property ==
'\0'))
1805 if (xmp_profile == (
char *) NULL)
1807 for (p=xmp_profile; *p !=
'\0'; p++)
1808 if ((*p ==
'<') && (*(p+1) ==
'x'))
1887 if (path == (
char *) NULL)
1888 return((
char *) NULL);
1895 " /c {curveto} bind def\n");
1898 " /l {lineto} bind def\n");
1901 " /m {moveto} bind def\n");
1904 " /v {currentpoint 6 2 roll curveto} bind def\n");
1907 " /y {2 copy curveto} bind def\n");
1910 " /z {closepath} bind def\n");
1918 (void) memset(point,0,
sizeof(point));
1919 (void) memset(first,0,
sizeof(first));
1920 (void) memset(last,0,
sizeof(last));
1931 if (knot_count != 0)
1950 if (knot_count == 0)
1962 for (i=0; i < 3; i++)
1966 point[i].
x=(double) x/4096.0/4096.0;
1967 point[i].
y=1.0-(double) y/4096.0/4096.0;
1972 point[1].x,point[1].y);
1973 for (i=0; i < 3; i++)
1985 if ((last[1].x == last[2].x) && (last[1].
y == last[2].
y) &&
1986 (point[0].x == point[1].x) && (point[0].
y == point[1].
y))
1988 " %g %g l\n",point[1].x,point[1].y);
1990 if ((last[1].x == last[2].x) && (last[1].
y == last[2].
y))
1992 " %g %g %g %g v\n",point[0].x,point[0].y,
1993 point[1].x,point[1].y);
1995 if ((point[0].x == point[1].x) && (point[0].
y == point[1].
y))
1997 " %g %g %g %g y\n",last[2].x,last[2].y,
1998 point[1].x,point[1].y);
2001 " %g %g %g %g %g %g c\n",last[2].x,
2002 last[2].y,point[0].x,point[0].y,point[1].x,point[1].y);
2003 for (i=0; i < 3; i++)
2012 if (knot_count == 0)
2018 if ((last[1].x == last[2].x) && (last[1].
y == last[2].
y) &&
2019 (first[0].x == first[1].x) && (first[0].
y == first[1].
y))
2021 " %g %g l z\n",first[1].x,first[1].y);
2023 if ((last[1].x == last[2].x) && (last[1].
y == last[2].
y))
2025 " %g %g %g %g v z\n",first[0].x,first[0].y,
2026 first[1].x,first[1].y);
2028 if ((first[0].x == first[1].x) && (first[0].
y == first[1].
y))
2030 " %g %g %g %g y z\n",last[2].x,last[2].y,
2031 first[1].x,first[1].y);
2034 " %g %g %g %g %g %g c z\n",last[2].x,
2035 last[2].y,first[0].x,first[0].y,first[1].x,first[1].y);
2070 if (((last+1)->x == (last+2)->x) && ((last+1)->y == (last+2)->y) &&
2071 (point->
x == (point+1)->x) && (point->
y == (point+1)->y))
2073 "L %g %g\n",point[1].x,point[1].y);
2076 (last+2)->x,(last+2)->y,point->
x,point->
y,(point+1)->x,(point+1)->y);
2080 const size_t columns,
const size_t rows)
2104 if (path == (
char *) NULL)
2105 return((
char *) NULL);
2108 "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n" 2109 "<svg xmlns=\"http://www.w3.org/2000/svg\"" 2110 " width=\"%.20g\" height=\"%.20g\">\n" 2112 "<path fill-rule=\"evenodd\" style=\"fill:#000000;stroke:#000000;" 2113 "stroke-width:0;stroke-antialiasing:false\" d=\"\n"),(double) columns,
2116 (void) memset(point,0,
sizeof(point));
2117 (void) memset(first,0,
sizeof(first));
2118 (void) memset(last,0,
sizeof(last));
2129 if (knot_count != 0)
2148 if (knot_count == 0)
2160 for (i=0; i < 3; i++)
2164 point[i].
x=(double) x*columns/4096.0/4096.0;
2165 point[i].
y=(double) y*rows/4096.0/4096.0;
2170 point[1].x,point[1].y);
2171 for (i=0; i < 3; i++)
2180 for (i=0; i < 3; i++)
2189 if (knot_count == 0)
2220 read_from_properties;
2228 assert(image != (
Image *) NULL);
2232 if ((property == (
const char *) NULL) || (*
property ==
'\0'))
2233 return((
const char *) NULL);
2235 property_length=strlen(property);
2236 if (property_length > 2 && (*(property+(property_length-2)) ==
':') &&
2237 (*(property+(property_length-1)) ==
'*'))
2241 p=(
const char *) NULL;
2244 if (property == (
const char *) NULL)
2249 if (p != (
const char *) NULL)
2252 if ((property == (
const char *) NULL) ||
2253 (strchr(property,
':') == (
char *) NULL))
2313 return((
const char *) NULL);
2410 #define WarnNoImageReturn(format,arg) \ 2411 if (image == (Image *) NULL ) { \ 2412 (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning, \ 2413 "NoImageForProperty",format,arg); \ 2414 return((const char *) NULL); \ 2416 #define WarnNoImageInfoReturn(format,arg) \ 2417 if (image_info == (ImageInfo *) NULL ) { \ 2418 (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning, \ 2419 "NoImageInfoForProperty",format,arg); \ 2420 return((const char *) NULL); \ 2432 if ((image_info != (
ImageInfo *) NULL) &&
2436 string=(
char *) NULL;
2456 if (
string == (
const char *) NULL )
2488 "%.20gx%.20g%+.20g%+.20g",(
double) image->
page.
width,(double)
2519 if (
string == (
const char *) NULL)
2531 if ( image != (
Image *) NULL )
2565 if ((image->
columns != 0) && (image->
rows != 0) &&
2581 else if (image != (
Image *) NULL)
2604 string=image_info->
unique;
2692 if ((image != (
Image *) NULL) && (image->
next == (
Image *) NULL))
2725 string=
"2147483647";
2726 else if ( image != (
Image *) NULL )
2786 "%.20gx%.20g%+.20g%+.20g",(
double) page.
width,(double) page.
height,
2787 (
double) page.
x,(double)page.
y);
2802 if (
string != (
char *) NULL)
2809 if (image != (
Image *) NULL)
2820 return((
char *) NULL);
2832 assert(property[0] !=
'\0');
2833 assert(image != (
Image *) NULL || image_info != (
ImageInfo *) NULL );
2834 if (property[1] ==
'\0')
2839 if ((image_info != (
ImageInfo *) NULL) &&
2843 string=(
char *) NULL;
2871 (
double) geometry.
x,(double) geometry.
y,
2872 (
double) geometry.
x+geometry.
width,
2873 (double) geometry.
y+geometry.
height);
2940 for (n=0; n < (ssize_t) number_points; n++)
2943 convex_hull[n].x,convex_hull[n].y);
3084 (void)
GetImageMean(image,&mean,&standard_deviation,exception);
3133 for (n=0; n < (ssize_t) number_points; n++)
3136 bounding_box[n].x,bounding_box[n].y);
3189 if (papersize != (
const char *) NULL)
3200 #if defined(MAGICKCORE_LCMS_DELEGATE) 3204 #if !defined(LCMS_VERSION) || (LCMS_VERSION < 2000) 3205 #define cmsUInt32Number DWORD 3220 if (icc_profile != (cmsHPROFILE *) NULL)
3222 #if defined(LCMS_VERSION) && (LCMS_VERSION < 2000) 3223 string=cmsTakeProductName(icc_profile);
3225 (void) cmsGetProfileInfoASCII(icc_profile,cmsInfoDescription,
3228 (void) cmsCloseProfile(icc_profile);
3256 if (name != (
char *) NULL)
3260 while (name != (
char *) NULL)
3349 (void)
GetImageMean(image,&mean,&standard_deviation,exception);
3372 string=image_info->
unique;
3405 if (
string != (
char *) NULL)
3412 if (image != (
Image *) NULL)
3423 return((
char *) NULL);
3425 #undef WarnNoImageReturn 3451 assert(image != (
Image *) NULL);
3457 return((
const char *) NULL);
3518 #define ExtendInterpretText(string_length) \ 3520 size_t length=(string_length); \ 3521 if ((size_t) (q-interpret_text+length+1) >= extent) \ 3524 interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \ 3525 MaxTextExtent,sizeof(*interpret_text)); \ 3526 if (interpret_text == (char *) NULL) \ 3528 if (property_image != image) \ 3529 property_image=DestroyImage(property_image); \ 3530 if (property_info != image_info) \ 3531 property_info=DestroyImageInfo(property_info); \ 3532 return((char *) NULL); \ 3534 q=interpret_text+strlen(interpret_text); \ 3538 #define AppendKeyValue2Text(key,value)\ 3540 size_t length=strlen(key)+strlen(value)+2; \ 3541 if ((size_t) (q-interpret_text+length+1) >= extent) \ 3544 interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \ 3545 MaxTextExtent,sizeof(*interpret_text)); \ 3546 if (interpret_text == (char *) NULL) \ 3548 if (property_image != image) \ 3549 property_image=DestroyImage(property_image); \ 3550 if (property_info != image_info) \ 3551 property_info=DestroyImageInfo(property_info); \ 3552 return((char *) NULL); \ 3554 q=interpret_text+strlen(interpret_text); \ 3556 q+=FormatLocaleString(q,extent,"%s=%s\n",(key),(value)); \ 3559 #define AppendString2Text(string) \ 3561 size_t length=strlen((string)); \ 3562 if ((size_t) (q-interpret_text+length+1) >= extent) \ 3565 interpret_text=(char *) ResizeQuantumMemory(interpret_text,extent+ \ 3566 MaxTextExtent,sizeof(*interpret_text)); \ 3567 if (interpret_text == (char *) NULL) \ 3569 if (property_image != image) \ 3570 property_image=DestroyImage(property_image); \ 3571 if (property_info != image_info) \ 3572 property_info=DestroyImageInfo(property_info); \ 3573 return((char *) NULL); \ 3575 q=interpret_text+strlen(interpret_text); \ 3577 (void) CopyMagickString(q,(string),extent); \ 3610 if (embed_text == (
const char *) NULL)
3613 while ((isspace((
int) ((
unsigned char) *p)) != 0) && (*p !=
'\0'))
3626 "NotAuthorized",
"`%s'",p);
3630 if (interpret_text != (
char *) NULL)
3631 return(interpret_text);
3637 property_info=image_info;
3640 if ((image != (
Image *) NULL) && (image->
columns != 0) && (image->
rows != 0))
3641 property_image=image;
3651 for (q=interpret_text; *p!=
'\0'; number=isdigit((
int) ((
unsigned char) *p)) ?
MagickTrue :
MagickFalse,p++)
3733 if ((*p ==
'\0') || (*p ==
'\'') || (*p ==
'"'))
3758 if (
string != (
char *) NULL)
3766 "UnknownImageProperty",
"\"%%%c\"",*p);
3791 "UnknownImageProperty",
"\"%%[]\"");
3796 if ((*p ==
'\\') && (*(p+1) !=
'\0'))
3801 pattern[len++]=(*p++);
3802 pattern[len++]=(*p++);
3811 pattern[len++]=(*p++);
3827 "UnbalancedBraces",
"\"%%[%s\"",pattern);
3829 if (property_image != image)
3831 if (property_info != image_info)
3833 return((
char *) NULL);
3960 if (
string != (
char *) NULL)
3983 if (
string != (
const char *) NULL)
3990 if (
string == (
char *) NULL)
3991 goto PropertyLookupFailure;
4007 if (
string != (
const char *) NULL)
4014 if (
string == (
char *) NULL)
4015 goto PropertyLookupFailure;
4031 if (
string != (
const char *) NULL)
4038 if (
string == (
char *) NULL)
4039 goto PropertyLookupFailure;
4049 if (
string != (
const char *) NULL)
4067 if (
string != (
const char *) NULL)
4079 if (
string != (
const char *) NULL)
4089 if (
string != (
char *) NULL)
4098 if (
string != (
char *) NULL)
4103 PropertyLookupFailure:
4115 "UnknownImageProperty",
"\"%%[%s]\"",pattern);
4119 if (property_image != image)
4121 if (property_info != image_info)
4123 return(interpret_text);
4159 assert(image != (
Image *) NULL);
4164 return((
char *) NULL);
4196 assert(image != (
Image *) NULL);
4239 const char *property,
const char *value,
ExceptionInfo *exception)
4247 assert(image != (
Image *) NULL);
4254 if (value == (
const char *) NULL)
4257 if (strlen(property) <= 1)
4263 "SetReadOnlyProperty",
"`%s'",property);
4280 "SetReadOnlyProperty",
"`%s'",property);
4304 "SetReadOnlyProperty",
"`%s'",property);
4336 if (compression < 0)
4354 if (image->
delay > (
size_t) floor(geometry_info.
rho+0.5))
4355 image->
delay=(size_t) floor(geometry_info.
rho+0.5);
4360 if ((
double) image->
delay < floor(geometry_info.
rho+0.5))
4362 floor(geometry_info.
sigma+0.5));
4365 image->
delay=(size_t) floor(geometry_info.
rho+0.5);
4368 geometry_info.
sigma+0.5));
4374 "SetReadOnlyProperty",
"`%s'",property);
4416 "SetReadOnlyProperty",
"`%s'",property);
4427 "SetReadOnlyProperty",
"`%s'",property);
4460 "SetReadOnlyProperty",
"`%s'",property);
4486 if (rendering_intent < 0)
4498 if (interpolate < 0)
4508 "SetReadOnlyProperty",
"`%s'",property);
4519 "SetReadOnlyProperty",
"`%s'",property);
4542 "SetReadOnlyProperty",
"`%s'",property);
4551 "SetReadOnlyProperty",
"`%s'",property);
4573 "SetReadOnlyProperty",
"`%s'",property);
4610 if (rendering_intent < 0)
4625 "SetReadOnlyProperty",
"`%s'",property);
4677 "SetReadOnlyProperty",
"`%s'",property);
4688 "SetReadOnlyProperty",
"`%s'",property);
4701 "SetReadOnlyProperty",
"`%s'",property);
#define AppendString2Text(string)
PixelIntensityMethod intensity
MagickExport ssize_t FormatMagickSize(const MagickSizeType size, const MagickBooleanType bi, const char *suffix, const size_t length, char *format)
MagickExport MagickBooleanType QueryColorname(const Image *magick_unused(image), const PixelInfo *color, const ComplianceType compliance, char *name, ExceptionInfo *exception)
MagickExport ImageInfo * AcquireImageInfo(void)
static const char * GetMagickPropertyLetter(ImageInfo *image_info, Image *image, const char letter, ExceptionInfo *exception)
MagickExport XMLTreeInfo * DestroyXMLTree(XMLTreeInfo *xml_info)
MagickExport MagickBooleanType AddValueToSplayTree(SplayTreeInfo *splay_tree, const void *key, const void *value)
char magick[MagickPathExtent]
MagickProgressMonitor progress_monitor
MagickExport char * RemoveImageProperty(Image *image, const char *property)
MagickExport MagickBooleanType IsRightsAuthorized(const PolicyDomain domain, const PolicyRights rights, const char *pattern)
MagickExport size_t ConcatenateMagickString(char *magick_restrict destination, const char *magick_restrict source, const size_t length)
static unsigned short ReadPropertyUnsignedShort(const EndianType endian, const unsigned char *buffer)
static unsigned int ReadPropertyUnsignedLong(const EndianType endian, const unsigned char *buffer)
MagickExport MagickBooleanType DeleteImageOption(ImageInfo *image_info, const char *option)
MagickExport void ResetImagePropertyIterator(const Image *image)
static unsigned long StringToUnsignedLong(const char *magick_restrict value)
MagickExport ssize_t ParseCommandOption(const CommandOption option, const MagickBooleanType list, const char *options)
PixelInterpolateMethod interpolate
MagickPrivate ssize_t FormatLocaleStringList(char *magick_restrict, const size_t, const char *magick_restrict, va_list) magick_attribute((__format__(__printf__
MagickExport XMLTreeInfo * GetNextXMLTreeTag(XMLTreeInfo *xml_info)
MagickExport MagickStatusType ParseAbsoluteGeometry(const char *geometry, RectangleInfo *region_info)
MagickExport MagickBooleanType DeleteImageArtifact(Image *image, const char *artifact)
static signed int ReadPropertyMSBLong(const unsigned char **p, size_t *length)
static MagickBooleanType SkipXMPValue(const char *value)
#define ExtendInterpretText(string_length)
MagickExport MagickBooleanType SetImageArtifact(Image *image, const char *artifact, const char *value)
MagickExport PointInfo * GetImageMinimumBoundingBox(Image *image, size_t *number_vertices, ExceptionInfo *exception)
MagickExport const char * GetImageArtifact(const Image *image, const char *artifact)
static MagickBooleanType GetEXIFProperty(const Image *image, const char *property, ExceptionInfo *exception)
static double StringToDouble(const char *magick_restrict string, char **magick_restrict sentinal)
MagickExport ExceptionInfo * AcquireExceptionInfo(void)
MagickExport ssize_t FormatLocaleString(char *magick_restrict string, const size_t length, const char *magick_restrict format,...)
MagickExport size_t CopyMagickString(char *magick_restrict destination, const char *magick_restrict source, const size_t length)
static MagickBooleanType GetICCProperty(const Image *image, const char *property, ExceptionInfo *exception)
MagickExport MagickBooleanType SignatureImage(Image *image, ExceptionInfo *exception)
char magick[MagickPathExtent]
#define MAGICKCORE_QUANTUM_DEPTH
#define DefaultResolution
MagickExport void ResetImageArtifactIterator(const Image *image)
static long StringToLong(const char *magick_restrict value)
static char * TraceSVGClippath(const unsigned char *, size_t, const size_t, const size_t)
MagickExport const char * GetImageOption(const ImageInfo *image_info, const char *option)
MagickExport char * GetPageGeometry(const char *page_geometry)
CompressionType compression
MagickExport XMLTreeInfo * GetXMLTreeChild(XMLTreeInfo *xml_info, const char *tag)
static signed int ReadPropertySignedLong(const EndianType endian, const unsigned char *buffer)
RectangleInfo tile_offset
MagickExport MagickBooleanType GetImageEntropy(const Image *image, double *entropy, ExceptionInfo *exception)
MagickExport char * FileToString(const char *filename, const size_t extent, ExceptionInfo *exception)
#define EXIF_FMT_URATIONAL
MagickExport void GetPixelInfo(const Image *image, PixelInfo *pixel)
MagickExport const char * GetXMLTreeTag(XMLTreeInfo *xml_info)
MagickExport MagickBooleanType SetImageOption(ImageInfo *image_info, const char *option, const char *value)
static signed short ReadPropertySignedShort(const EndianType endian, const unsigned char *buffer)
static int ReadPropertyByte(const unsigned char **p, size_t *length)
static char * TracePSClippath(const unsigned char *, size_t)
MagickExport MagickBooleanType SetImageGray(Image *image, ExceptionInfo *exception)
#define MagickCoreSignature
MagickExport unsigned char * GetStringInfoDatum(const StringInfo *string_info)
MagickExport MagickBooleanType CloneImageProperties(Image *image, const Image *clone_image)
#define TAG_INTEROP_OFFSET
MagickExport void GetPathComponent(const char *path, PathType type, char *component)
unsigned int MagickStatusType
MagickExport char * AcquireString(const char *source)
static double PerceptibleReciprocal(const double x)
MagickExport void LocaleLower(char *string)
MagickBooleanType black_point_compensation
MagickExport MagickBooleanType GlobExpression(const char *magick_restrict expression, const char *magick_restrict pattern, const MagickBooleanType case_insensitive)
MagickPrivate FxInfo * DestroyFxInfo(FxInfo *)
MagickExport const char * CommandOptionToMnemonic(const CommandOption option, const ssize_t type)
MagickExport StringInfo * FileToStringInfo(const char *filename, const size_t extent, ExceptionInfo *exception)
MagickExport StringInfo * DestroyStringInfo(StringInfo *string_info)
static MagickBooleanType GetIPTCProperty(const Image *image, const char *key, ExceptionInfo *exception)
MagickExport void * AcquireQuantumMemory(const size_t count, const size_t quantum)
char filename[MagickPathExtent]
MagickExport void GetColorTuple(const PixelInfo *pixel, const MagickBooleanType hex, char *tuple)
MagickExport int LocaleNCompare(const char *p, const char *q, const size_t length)
MagickPrivate MagickBooleanType FxEvaluateChannelExpression(FxInfo *, const PixelChannel, const ssize_t, const ssize_t, double *, ExceptionInfo *)
MagickExport MagickBooleanType SetImageProperty(Image *image, const char *property, const char *value, ExceptionInfo *exception)
MagickExport PointInfo * GetImageConvexHull(const Image *image, size_t *number_vertices, ExceptionInfo *exception)
MagickExport const StringInfo * GetImageProfile(const Image *image, const char *name)
MagickExport const char * GetXMLTreeContent(XMLTreeInfo *xml_info)
MagickPrivate MagickBooleanType IsGlob(const char *) magick_attribute((__pure__))
MagickExport void DestroyImageProperties(Image *image)
MagickExport SplayTreeInfo * DestroySplayTree(SplayTreeInfo *splay_tree)
MagickExport int GetMagickPrecision(void)
MagickExport SplayTreeInfo * NewSplayTree(int(*compare)(const void *, const void *), void *(*relinquish_key)(void *), void *(*relinquish_value)(void *))
MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info, const unsigned int frames, ExceptionInfo *exception)
char magick_filename[MagickPathExtent]
MagickExport MagickBooleanType ThrowMagickException(ExceptionInfo *exception, const char *module, const char *function, const size_t line, const ExceptionType severity, const char *tag, const char *format,...)
MagickExport MagickBooleanType LogMagickEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
MagickExport MagickBooleanType IsPathAccessible(const char *path)
MagickExport const char * GetMagickVersion(size_t *version)
MagickExport MagickBooleanType SetImageBackgroundColor(Image *image, ExceptionInfo *exception)
MagickExport const char * GetNextImageProperty(const Image *image)
static signed short ReadPropertyMSBShort(const unsigned char **p, size_t *length)
MagickExport Image * AcquireImage(const ImageInfo *image_info, ExceptionInfo *exception)
MagickExport MagickBooleanType SubstituteString(char **string, const char *search, const char *replace)
#define EXIFMultipleValues(size, format, arg)
#define WarnNoImageInfoReturn(format, arg)
MagickExport void ResetImageOptionIterator(const ImageInfo *image_info)
MagickExport const char * GetMagickCopyright(void)
MagickExport ImageType IdentifyImageType(const Image *image, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageRange(const Image *image, double *minima, double *maxima, ExceptionInfo *exception)
MagickExport MagickBooleanType QueryColorCompliance(const char *name, const ComplianceType compliance, PixelInfo *color, ExceptionInfo *exception)
MagickExport MagickBooleanType GetImageKurtosis(const Image *image, double *kurtosis, double *skewness, ExceptionInfo *exception)
RectangleInfo extract_info
MagickExport const void * GetValueFromSplayTree(SplayTreeInfo *splay_tree, const void *key)
MagickExport MagickBooleanType GetImageMean(const Image *image, double *mean, double *standard_deviation, ExceptionInfo *exception)
MagickExport MagickBooleanType SetImageExtent(Image *image, const size_t columns, const size_t rows, ExceptionInfo *exception)
MagickExport char * GetNextImageProfile(const Image *image)
MagickExport MagickBooleanType SetImageProfile(Image *image, const char *name, const StringInfo *profile, ExceptionInfo *exception)
#define EXIF_FMT_SRATIONAL
#define AppendKeyValue2Text(key, value)
#define MaxDirectoryStack
MagickExport int LocaleCompare(const char *p, const char *q)
static ssize_t CastDoubleToLong(const double value)
char filename[MagickPathExtent]
MagickExport SplayTreeInfo * CloneSplayTree(SplayTreeInfo *splay_tree, void *(*clone_key)(void *), void *(*clone_value)(void *))
#define GetMagickModule()
MagickExport int CompareSplayTreeString(const void *target, const void *source)
MagickExport size_t GetNumberColors(const Image *image, FILE *file, ExceptionInfo *exception)
MagickExport char * InterpretImageProperties(ImageInfo *image_info, Image *image, const char *embed_text, ExceptionInfo *exception)
MagickExport MagickSizeType GetBlobSize(const Image *image)
char unique[MagickPathExtent]
MagickExport XMLTreeInfo * GetXMLTreeSibling(XMLTreeInfo *xml_info)
MagickExport ImageInfo * DestroyImageInfo(ImageInfo *image_info)
RenderingIntent rendering_intent
MagickExport const void * GetNextKeyInSplayTree(SplayTreeInfo *splay_tree)
MagickExport size_t GetImageDepth(const Image *image, ExceptionInfo *exception)
#define EXIFMultipleFractions(size, format, arg1, arg2)
static MagickBooleanType GetXMPProperty(const Image *image, const char *property)
MagickExport RectangleInfo GetImageBoundingBox(const Image *image, ExceptionInfo *exception)
MagickExport MagickBooleanType SetImageColorspace(Image *image, const ColorspaceType colorspace, ExceptionInfo *exception)
MagickExport ssize_t GetImageIndexInList(const Image *images)
MagickExport char * DestroyString(char *string)
MagickExport MagickBooleanType DeleteImageProperty(Image *image, const char *property)
MagickExport const char * GetImageProperty(const Image *image, const char *property, ExceptionInfo *exception)
#define EXIF_FMT_UNDEFINED
MagickExport ImageInfo * CloneImageInfo(const ImageInfo *image_info)
MagickExport const void * GetRootValueFromSplayTree(SplayTreeInfo *splay_tree)
MagickExport MagickStatusType ParseGeometry(const char *geometry, GeometryInfo *geometry_info)
ChromaticityInfo chromaticity
MagickExport void * RemoveNodeFromSplayTree(SplayTreeInfo *splay_tree, const void *key)
MagickExport MagickBooleanType DeleteNodeFromSplayTree(SplayTreeInfo *splay_tree, const void *key)
static MagickBooleanType Get8BIMProperty(const Image *image, const char *key, ExceptionInfo *exception)
MagickExport const char * GetNextImageArtifact(const Image *image)
MagickExport MagickBooleanType ConcatenateString(char **magick_restrict destination, const char *magick_restrict source)
MagickExport void ResetSplayTreeIterator(SplayTreeInfo *splay_tree)
MagickExport void * RelinquishMagickMemory(void *memory)
#define magick_unreferenced(x)
MagickExport MagickBooleanType DefineImageProperty(Image *image, const char *property, ExceptionInfo *exception)
MagickExport char * CloneString(char **destination, const char *source)
MagickExport const char * GetMagickProperty(ImageInfo *image_info, Image *image, const char *property, ExceptionInfo *exception)
CompositeOperator compose
MagickExport void ResetImageProfileIterator(const Image *image)
OrientationType orientation
MagickExport MagickBooleanType FormatImageProperty(Image *image, const char *property, const char *format,...)
MagickExport char * StringInfoToString(const StringInfo *string_info)
MagickExport MagickBooleanType GetImageMedian(const Image *image, double *median, ExceptionInfo *exception)
PixelInfo transparent_color
#define WarnNoImageReturn(format, arg)
MagickExport size_t GetStringInfoLength(const StringInfo *string_info)
PixelInfo background_color
MagickExport size_t GetImageListLength(const Image *images)
static void TraceBezierCurve(char *message, PointInfo *last, PointInfo *point)
MagickExport char * GetNextImageOption(const ImageInfo *image_info)
MagickExport Image * DestroyImage(Image *image)
MagickExport char * ConstantString(const char *source)
ColorspaceType colorspace
MagickExport MagickBooleanType IsImageOpaque(const Image *image, ExceptionInfo *exception)
MagickExport XMLTreeInfo * NewXMLTree(const char *xml, ExceptionInfo *exception)
MagickPrivate FxInfo * AcquireFxInfo(const Image *, const char *, ExceptionInfo *)
MagickExport ExceptionInfo * DestroyExceptionInfo(ExceptionInfo *exception)