action logoraisr_projects_create { label: "Create a new project." description: "This POST-Method creates a new project." provider: logoraisr method: POST path: "/projects/" encoding: json input: { type: "object" required: ["file_id", "project_title"] properties: { file_id: { type: "string" format: "uuid" description: "Id of the file on which the process is to be applied." } process: { type: "object" required: ["processing_algorithm"] properties: { crop: { type: "string" description: "Crops the image according to the specified mechanism. If you specify the size \"WidthexHeight\", the image will be cropped centered. If coordinates \"x1,y1,x2,y2\" are given, the image is cropped according to the coordinates. The image will be cropped to the size of the stories if \"faces\" are specified as. Example Centered: \"crop\": \"200x300\". Example Region: \"crop\": \"200,300,150,300\". Example Faces: \"crop\": \"faces\"." } flip: { type: "boolean" description: "Flips the image around the horizontal axis, from top to bottom. Example: \"flip\": true" } mirror: { type: "boolean" description: "Mirrors the image around the vertical axis, i.e. from right to left. Example: \"mirror\": true" } processing_algorithm: { type: "string" description: "Schlüssel welcher Verarbeitungs-Algorithmus angewendet wird. Zur Auswahl stehen \"logo-to-vector\", \"logo-super-resolution\", \"logo-segmentation\" und \"image-processing\"." } resize: { type: "string" description: "Changes the size of the image according to the specified size. Example: \"resize\": \"200x300\"." } rotate: { type: "integer" description: "Rotates the image around the center according to the specified degree. Example: \"rotate\": 90" } } } project_title: { type: "string" description: "Name of the project with which it is saved." } } } output: { type: "object" properties: { project_id: { type: "integer" description: "Id of the created project." } project_number: { type: "integer" description: "Number of the created project." } result_file_id: { type: "string" format: "uuid" description: "Id of the result_file. This id must be specified to create the result_file_url." } } } }