OpenAiImageEdit
Table of Contents
Functions
- process_encoded_file() : array{status: string, data: array, code?: int}
- Process an unstrusted submitted file that has been base64 encoded.
Functions
process_encoded_file()
Process an unstrusted submitted file that has been base64 encoded.
process_encoded_file(string $image_data, string $output_image_type) : array{status: string, data: array, code?: int}
Parameters
- $image_data : string
-
File data as submitted
- $output_image_type : string
-
The desired file type of the final image
Return values
array{status: string, data: array, code?: int} —Returns a JSend data structure with an optional code that the caller can use in combination with the ajax_send_response() (by dropping the code in the final payload).