Going to your wp-includes
folder and open your functions.php
. From there, scroll down to the bottom of your file and add the following lines. From the time of this messege, it is currently working in an updated format the latest WordPress 5.4.2
Add the following:
function use_gd_editor($array) {
return array( 'WP_Image_Editor_GD', );
}
add_filter( 'wp_image_editors', 'use_gd_editor' );
Upload, overwrite, goto your post where your trying to add the image, be patient since some of you out there want to upload a 4k image, which is understandable. It should only take about 20-30 seconds since it is a huge file.
I only recommend this method if you have changed your Maximum Upload and Memory via php.ini or user.ini. You can read about those easy fixes if you have not done so.