Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Raise Call NameLoad Str ExceptHandler body Assign NameStore NameLoad Import alias If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Raise orelse Raise Call NameLoad Str If UnaryOpNot NameLoad body Assign NameStore NameStore NameLoad orelse TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotIn Str NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num decorator_list ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareNotEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Return Call NameLoad BinOpBitAnd NameLoad AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body For TupleStore NameStore NameStore NameStore NameLoad body Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore SubscriptLoad NameLoad Slice Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict orelse Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Num Num If Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body If CompareLt Call NameLoad SubscriptLoad NameLoad Index NameLoad BinOpAdd NameLoad Num body AugAssignAdd SubscriptStore NameLoad Index NameLoad BinOpMult ListLoad Dict BinOpSub BinOpAdd Num NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad BinOpMult ListLoad Dict BinOpAdd NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot NameLoad body Assign NameStore ListLoad orelse If BoolOpAnd Call AttributeLoad NameLoad attr Str UnaryOpNot NameLoad body Assign NameStore Dict Assign TupleStore NameStore NameStore NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str If BoolOpAnd CompareEq NameLoad Str CompareIn NameLoad Str body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareIn NameLoad TupleLoad Str Str Str Str body TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore NameLoad orelse If BoolOpAnd CompareEq NameLoad Str Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Str NameLoad attr orelse If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd CompareEq NameLoad Str CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num ListLoad Dict Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr Num Num If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body If CompareLtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMult ListLoad Dict BinOpSub BinOpAdd Num NameLoad Call NameLoad NameLoad TryExcept body Assign SubscriptStore NameLoad Index NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore Dict NameLoad NameLoad ExceptHandler type NameLoad body If BoolOpOr CompareNotEq NameLoad Num UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Assign NameStore ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore BoolOpOr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad If NameLoad body Return NameLoad Assign NameStore BoolOpOr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad Assign NameStore BoolOpOr Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad body Return NameLoad Return Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body ImportFrom alias TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr handlers ExceptHandler body Return NameLoad Assign TupleStore NameStore NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad Assign TupleStore NameStore NameStore TupleLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad ListLoad NameLoad NameLoad body Return NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str ListLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Return NameLoad TryExcept body Assign NameStore SubscriptLoad ListComp NameLoad comprehension NameStore NameLoad CompareEq SubscriptLoad NameLoad Index Str Str Index Num handlers ExceptHandler type NameLoad body Return NameLoad If BoolOpOr UnaryOpNot Call NameLoad NameLoad NameLoad UnaryOpNot Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot Call NameLoad ListComp Call NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad TupleLoad Str Str Str Str body Return NameLoad Return Call NameLoad keyword Str keyword BinOpMult SubscriptLoad NameLoad Index Str NameLoad keyword BinOpMult SubscriptLoad NameLoad Index Str NameLoad keyword BinOpMult SubscriptLoad NameLoad Index Str NameLoad keyword BinOpMult SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults vararg kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A six N/A os N/A re N/A ctypes N/A PIL.Image django.core.exceptions ImproperlyConfigured cropduster.files ImageFile cropduster.utils json N/A N/A N/A libxmp N/A N/A N/A ImportError N/A N/A N/A ImproperlyConfigured Could not import libxmp N/A N/A N/A libxmp None N/A ctypes.util N/A N/A N/A N/A ctypes util find_library exempi N/A N/A N/A N/A N/A ImproperlyConfigured cropduster.standalone used, but exempi shared library not installed N/A N/A libxmp N/A N/A check_file_format get_format_info None N/A N/A N/A N/A exempi N/A libxmp _exempi N/A N/A N/A AttributeError N/A N/A exempi N/A N/A libxmp exempi EXEMPI N/A check_file_format N/A exempi xmp_files_check_file_format N/A get_format_info N/A exempi xmp_files_get_format_info N/A N/A N/A check_file_format argtypes N/A N/A N/A check_file_format argtypes N/A N/A ctypes c_char_p N/A N/A N/A check_file_format restype N/A N/A N/A check_file_format restype N/A ctypes c_ulong N/A N/A N/A get_format_info argtypes N/A N/A N/A get_format_info argtypes N/A N/A ctypes c_ulong N/A ctypes c_void_p N/A N/A N/A get_format_info restype N/A N/A N/A get_format_info restype N/A ctypes c_bool EnumerationMeta N/A type N/A __new__ N/A N/A cls name bases attrs N/A N/A N/A N/A _lookup attrs N/A N/A lookup N/A N/A N/A k v N/A N/A six iteritems attrs N/A N/A N/A isinstance v N/A six integer_types N/A N/A N/A N/A lookup setdefault v k N/A N/A attrs N/A _lookup lookup N/A N/A N/A N/A super EnumerationMeta cls __new__ cls name bases attrs N/A __contains__ N/A N/A self value N/A N/A N/A N/A value N/A self _lookup N/A N/A Enumeration N/A object N/A value_name N/A N/A cls value N/A N/A N/A N/A N/A N/A cls _lookup get value N/A classmethod N/A N/A N/A six add_metaclass EnumerationMeta FormatOptions N/A Enumeration N/A N/A XMP_FMT_CAN_INJECT_XMP 1 N/A XMP_FMT_CAN_EXPAND 2 N/A XMP_FMT_CAN_REWRITE 4 N/A XMP_FMT_PREFERS_IN_PLACE 8 N/A XMP_FMT_CAN_RECONCILE 16 N/A XMP_FMT_ALLOWS_ONLY_XMP 32 N/A XMP_FMT_RETURNS_RAW_PACKET 64 N/A XMP_FMT_HANDLER_OWNS_FILE 256 N/A XMP_FMT_ALLOW_SAFE_UPDATE 512 N/A XMP_FMT_NEEDS_READONLY_PACKET 1024 N/A XMP_FMT_USE_SIDECAR_XMP 2048 N/A XMP_FMT_FOLDER_BASED_FORMAT 4096 N/A FileFormats N/A Enumeration N/A N/A XMP_FT_PDF 1346651680 N/A XMP_FT_PS 1347624992 N/A XMP_FT_EPS 1162892064 N/A XMP_FT_JPEG 1246774599 N/A XMP_FT_JPEG2K 1246779424 N/A XMP_FT_TIFF 1414088262 N/A XMP_FT_GIF 1195984416 N/A XMP_FT_PNG 1347307296 N/A XMP_FT_SWF 1398228512 N/A XMP_FT_FLA 1179402528 N/A XMP_FT_FLV 1179407904 N/A XMP_FT_MOV 1297045024 N/A XMP_FT_AVI 1096173856 N/A XMP_FT_CIN 1128877600 N/A XMP_FT_WAV 1463899680 N/A XMP_FT_MP3 1297101600 N/A XMP_FT_SES 1397052192 N/A XMP_FT_CEL 1128614944 N/A XMP_FT_MPEG 1297106247 N/A XMP_FT_MPEG2 1297101344 N/A XMP_FT_MPEG4 1297101856 N/A XMP_FT_WMAV 1464680790 N/A XMP_FT_AIFF 1095321158 N/A XMP_FT_HTML 1213484364 N/A XMP_FT_XML 1481460768 N/A XMP_FT_TEXT 1952807028 N/A XMP_FT_PHOTOSHOP 1347634208 N/A XMP_FT_ILLUSTRATOR 1095311392 N/A XMP_FT_INDESIGN 1229866052 N/A XMP_FT_AEPROJECT 1095061536 N/A XMP_FT_AEPROJTEMPLATE 1095062560 N/A XMP_FT_AEFILTERPRESET 1179015200 N/A XMP_FT_ENCOREPROJECT 1313034066 N/A XMP_FT_PREMIEREPROJECT 1347571786 N/A XMP_FT_PREMIERETITLE 1347572812 N/A XMP_FT_UNKNOWN 538976288 N/A file_format_supported N/A N/A file_path N/A N/A N/A N/A N/A N/A N/A os path exists file_path N/A N/A N/A IOError N/A File %s could not be found file_path N/A N/A check_file_format N/A N/A False N/A file_format N/A check_file_format N/A N/A N/A os path abspath file_path N/A format_options N/A N/A ctypes c_int N/A N/A file_format N/A FileFormats XMP_FT_UNKNOWN N/A N/A format_options N/A get_format_info file_format N/A N/A ctypes byref format_options N/A N/A isinstance format_options N/A ctypes c_int N/A N/A format_options N/A format_options value N/A N/A bool N/A format_options N/A FormatOptions XMP_FMT_CAN_INJECT_XMP N/A MetadataDict N/A dict N/A N/A 
    Normalizes the key/values returned from libxmp.file_to_dict()
    into something more useful. Among the transformations:

      - Flattens namespaces (file_to_dict returns metadata tuples keyed on
        the namespaces)
      - Removes namespace prefixes from keys (e.g. "mwg-rs", "xmpMM", "stArea")
      - Expands '/' and '[index]' into dicts and lists. For example
        the key 'mwg-rs:Regions/mwg-rs:RegionList[1]' becomes

            {'Regions': {'RegionList: []}}

        (note that list from libxmp.file_to_dict() are 1-indexed)
      - Converts stDim:* and stArea:* values into ints and floats,
        respectively
     __init__ N/A N/A self file_path N/A N/A N/A N/A self file_path file_path N/A ns_dict N/A N/A libxmp file_to_dict file_path N/A N/A N/A self clean ns_dict N/A clean N/A N/A self ns_dict N/A N/A N/A N/A ns values N/A N/A six iteritems ns_dict N/A N/A N/A k v opts values N/A N/A current self N/A bits N/A N/A k split / N/A bit N/A bits N/A -1 N/A N/A bit N/A N/A N/A bit rpartition : N/A -1 N/A m N/A N/A re search ^(.*)\[(\d+)\](?=\/|\Z) bit N/A N/A m N/A N/A current N/A N/A current setdefault bit N/A N/A N/A bit N/A N/A m group 1 N/A index N/A N/A int N/A N/A m group 2 1 N/A N/A isinstance N/A N/A current get bit list N/A N/A N/A N/A len N/A current N/A bit N/A index 1 N/A N/A N/A current N/A bit N/A N/A N/A N/A N/A 1 index N/A len N/A current N/A bit N/A current N/A N/A current N/A bit N/A index N/A N/A N/A current N/A bit N/A N/A N/A N/A index 1 N/A current N/A N/A current N/A bit N/A index N/A N/A N/A N/A opts get VALUE_IS_ARRAY N/A v N/A N/A v N/A N/A N/A N/A N/A N/A opts get VALUE_IS_STRUCT N/A v N/A N/A v N/A N/A N/A ns_prefix sep k N/A N/A N/A bits N/A -1 rpartition : N/A N/A N/A ns_prefix stDim N/A k w, h N/A N/A N/A N/A v N/A int v N/A N/A N/A N/A TypeError ValueError N/A N/A v None N/A N/A N/A N/A ns_prefix stArea N/A k N/A w h x y N/A N/A N/A N/A v N/A float v N/A N/A N/A N/A TypeError ValueError N/A N/A v None N/A N/A N/A N/A k DerivedFrom N/A isinstance v N/A six string_types N/A N/A v N/A N/A N/A N/A re sub ^xmp\.did: v lower N/A N/A N/A N/A ns_prefix crop N/A k json N/A N/A v N/A N/A json loads v N/A N/A N/A N/A ns_prefix crop N/A k md5 N/A N/A v N/A N/A v lower N/A m N/A N/A re search ^(.*)\[(\d+)\](?=\/|\Z) k N/A m N/A N/A current N/A N/A current setdefault N/A N/A m group 1 N/A N/A N/A k N/A N/A int N/A N/A m group 2 1 N/A N/A N/A isinstance current list N/A isinstance k N/A six integer_types N/A N/A N/A N/A len current k N/A N/A N/A N/A current append N/A N/A N/A N/A N/A 1 k N/A len current N/A N/A N/A N/A current N/A k v N/A N/A N/A TypeError N/A N/A current N/A k v N/A N/A IndexError N/A N/A N/A N/A k 0 N/A N/A isinstance current list N/A N/A N/A current N/A v N/A crop_size N/A N/A self N/A N/A cropduster.resizing Size N/A size_json N/A N/A N/A N/A N/A self get size N/A get json None N/A size_json N/A N/A size_json N/A size_w N/A N/A N/A N/A N/A self get size N/A get w None N/A size_h N/A N/A N/A N/A N/A self get size N/A get h None N/A N/A N/A size_w N/A size_h N/A N/A None N/A N/A Size crop w size_w h size_h N/A property crop_thumb N/A N/A self N/A N/A cropduster.models Thumb N/A N/A N/A pil_img N/A N/A N/A PIL Image open N/A self file_path N/A N/A N/A N/A None N/A N/A orig_w orig_h N/A pil_img size N/A dimensions N/A N/A N/A N/A self get Regions N/A get AppliedToDimensions None N/A N/A N/A isinstance dimensions dict N/A N/A None N/A N/A w h N/A N/A N/A dimensions get w N/A N/A dimensions get h N/A N/A N/A all N/A map N/A N/A N/A v N/A N/A isinstance v int N/A w h N/A N/A None N/A region_list N/A N/A N/A N/A self get Regions N/A get RegionList N/A N/A N/A N/A isinstance region_list list N/A N/A None N/A N/A N/A crop_region N/A N/A r N/A r region_list N/A N/A r N/A Name Crop N/A 0 N/A N/A N/A IndexError N/A N/A None N/A N/A N/A N/A isinstance crop_region dict N/A N/A isinstance N/A N/A crop_region get Area dict N/A N/A None N/A area N/A N/A crop_region get Area N/A N/A N/A all N/A N/A isinstance v float N/A N/A k v N/A N/A area items N/A k N/A w h x y N/A N/A None N/A N/A Thumb name crop crop_x N/A N/A area N/A x w crop_y N/A N/A area N/A y h crop_w N/A N/A area N/A w w crop_h N/A N/A area N/A h h width orig_w height orig_h N/A property N/A MetadataImageFile N/A ImageFile N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A N/A N/A super MetadataImageFile self __init__ args kwargs N/A self N/A N/A N/A self metadata N/A MetadataDict N/A self path N/A N/A