- VALID_FILE_OPTIONS =
%w[path fileType tags includeFolder name limit skip]
- VALID_FILE_DETAIL_OPTIONS =
["fileID"]
- VALID_UPLOAD_OPTIONS =
%w[file file_name use_unique_file_name tags folder is_private_file custom_coordinates response_fields]
- MANDATORY_INIT_MISSING =
{
'message': "Missing public_key or private_key or url_endpoint during ImageKit initialization",
help: "",
}
- INVALID_TRANSFORMATION_POS =
{'message': "Invalid transformationPosition parameter",
help: "",}
- INVALID_URL_GENERATION_PARAM =
{'message': "Invalid url parameter", help: ""}
- INVALID_TRANSFORMATION_OPTIONS =
{
'message': "Invalid transformation parameter options",
help: "",
}
- CACHE_PURGE_URL_MISSING =
{'message': "Missing URL parameter for this request",
help: "",}
- CACHE_PURGE_STATUS_ID_MISSING =
{'message': "Missing Request ID parameter for this request",
help: "",}
- FILE_ID_MISSING =
{'message': "Missing File ID parameter for this request",
help: "",}
- UPDATE_DATA_MISSING =
{'message': "Missing file update data for this request",
help: "",}
- UPDATE_DATA_TAGS_INVALID =
{'message': "Invalid tags parameter for this request",
help: "tags should be passed as null or an array like ['tag1', 'tag2']",}.freeze
- UPDATE_DATA_COORDS_INVALID =
{'message': "Invalid custom_coordinates parameter for this request",
help: "custom_coordinates should be passed as null or a string like 'x,y,width,height'",}
- LIST_FILES_INPUT_MISSING =
{
'message': "Missing options for list files",
help: "If you do not want to pass any parameter for listing, pass an empty object",
}
- MISSING_FILE_URL =
{'message': "Missing file_url for purge_cache", help: ""}
- MISSING_UPLOAD_DATA =
{'message': "Missing data for upload", help: ""}
- MISSING_UPLOAD_FILE_PARAMETER =
{'message': "Missing file parameter for upload",
'help': "",}
- MISSING_UPLOAD_FILENAME_PARAM =
{
'message': "Missing fileName parameter for upload",
'help': "",
}
- INVALID_PHASH_VALUE =
{'message': "Invalid pHash value",
'help': "Both pHash strings must be valid hexadecimal numbers",}
- MISSING_PHASH_VALUE =
{'message': "Missing pHash value",
'help': "Please pass two pHash values",}
- UNEQUAL_STRING_LENGTH =
{'message': "Unequal pHash string length",
'help': "For distance calculation, the two pHash strings must have equal length",}
- DEFAULT_TIME_DIFF =
60 * 30
- SUPPORTED_TRANS =
{
'height': "h",
'width': "w",
'aspect_ratio': "ar",
'quality': "q",
'crop': "c",
'crop_mode': "cm",
'x': "x",
'y': "y",
'focus': "fo",
'format': "f",
'radius': "r",
'background': "bg",
'border': "bo",
'rotation': "rt",
'blur': "bl",
'named': "n",
'overlay_image': "oi",
'overlay_x': "ox",
'overlay_y': "oy",
'overlay_focus': "ofo",
'overlay_height': "oh",
'overlay_width': "ow",
'overlay_text': "ot",
'overlay_text_font_size': "ots",
'overlay_text_font_family': "otf",
'overlay_text_color': "otc",
'overlay_alpha': "oa",
'overlay_text_typography': "ott",
'overlay_background': "obg",
'overlay_image_trim': "oit",
'progressive': "pr",
'lossless': "lo",
'trim': "t",
'metadata': "md",
'color_profile': "cp",
'default_image': "di",
'dpr': "dpr",
'effect_sharpen': "e-sharpen",
'effect_usm': "e-usm",
'effect_contrast': "e-contrast",
'effect_gray': "e-grayscale",
'original': "orig",
}