Since the file you send is base64 encoded, you will need to decode and save the result into a file at a temp directory. From there it is just a normal server side wordpress image manipulation and insertion of the relevant info into the DB, something that there are many examples for on this site.
You should probably return the URL of the generated image in the AJAX response, but that depends on what results you need to show
Related Posts:
- Adding a custom image upload size and making it selected by default?
- Change the filename format of saved featured images
- How to register images uploaded via FTP in media library?
- Create Image Uploader for Widget
- Using file_exists to check file in Uploads
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Admin Media grid view images won’t load
- Debugging upload problem: What part of WP does actual image-resizing?
- How to resize image on client-side before upload?
- How to upload imagick resource to media in wordpress
- Accessing a random image via ajax
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Get most recent media upload
- Convert all images to PNG on file upload
- Why is $_REQUEST an empty array in admin-ajax.php?
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Can’t upload image using media_sideload_image
- Upload multiple images to a Woocomerce product
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- get_children displaying images removed from the page
- Enable custom logo upload if logo is not in header
- How do I Import / Upload Files with jQuery AJAX?
- WordPress automatically adds links to uploaded images
- WordPress function when file is uploaded, deleted or edited
- Get uploaded image and attach it to the new post
- Get featured image with custom size outside WordPress
- Images Uploaded saving onto older/previous year folders
- WordPress İmages Upload & Delete Error
- Allow user to Upload image and manipulate it on the frontend
- How to Make Thumbnail of Post Stay Animated
- Convert all uploaded PNG files to PNG-8 format
- Some problems in custom widget
- Checking page before applying image restrictions while uploading
- WordPress loading all local images from specific directory?
- Save the outputted image into the Media Library, with a different filename and extension
- 403 (Forbidden) delete file image in themer folder
- Is custom behaviour possible when asynchronously uploading?
- How to resize an image server-side before upload?
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Name Input from widget displays Sidebar name instead of saved data
- How to automatically convert images to WebP on WordPress?
- Generate and upload screenshot as featured image for user-submitted post
- Upload multiple files via ajax from an HTML file input
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?
- Get image’s size name from it’s dimension
- Cannot display or echo alt text on featured image
- Load a page into a div with Ajax
- Recent posts with featured image or fallback image with permalink
- Creating a Multi-Level Associative Object Using AJAX
- Best practice for migration friendly images in posts/pages?
- wordpress count link clicks by ip address
- Set the background to a default image if there isn’t a specified “featured image”
- Ajax – Call to undefined function get_option()
- ajax, right way to do it and make it works?
- Mass update excerpt
- Ajax load more posts with multiple tax query
- Ajax call not working
- How to store data from multiple forms using ajax and php
- How to control WordPress image metadata (using Imagick)?
- WordPress Sending data to Ajax with select option
- PHP 8, AJAX mail form to function.php doesn’t work
- PDF file randomly breaks upon upload
- WordPress ajax doesn’t display object method on jQuery .change() function
- Ajax loaded form replaces form action with Ajax url
- Ajax category filtering products default show all
- Get image URL after image created from canvas and sent to WP uploads with AJAX
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Status 400 for AJAX POST Request with admin-ajax.php
- Problem with custom plugin using AJAX to pull info from php file
- Gutenberg block – Save PHP function’s output as HTML?
- Get the post ID and display the images
- Ajax random number always the same
- Responsive Header for Phone
- Call a PHP Function with Multiple Parameters that is outside the AJAX Handler
- How to upload a file to a folder named after the user_id via plugin
- Reprinting tags with all attributes
- Need help with Google drive API [closed]
- Ajax date_query not working past the first iteration
- How to get original custom taxonomy slug after the slug has been rewritten?
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- Why ajax doesn’t work on certain wordpress hooks?
- Repeating admin-ajax.php not found error in admin
- Is it possible to intercept all ajax requests and get the parameters and the returns?
- How to get next image with this code from same post?
- AJAX pagination, update current page
- Unread Repeater field IMG alt not working
- Save Search System
- adjust section according to country?
- populate form fields in a loop with ajax
- dynamic dependent select dropdown
- WordPress, AJAX and pre_get_posts using conditional tags
- Are nonces in WP REST API optional by default?
- Change “add to cart” button color based on Woocommerce product category [closed]
- Ajax request returns ‘Array’. How to output the actual results?
- How to send Ajax request from my plugin in admin dashboard?
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- How to use thumbnail size of image if I’m only using src to get image