WordPress Uploading Image Error

Andrei Iordache

Andrei Iordache

WordPress Developer

🚀 I Help People Get Found Online | WordPress Development, Core Web Vitals, Security&Maintenance

WordPress uploading image error:

You will get this WordPress error while you’re trying to upload an image on your WordPress site.

There are different reasons for this error, and we will try to find the best solution to get rid of it.

Check your image file name

First of all, check your image’s name. If it contains special characters, this might be the reason. Rename the image with simple words, even random words.

Post-processing of the image failed.

This happens when you are trying to upload an image that is large in pixel size, for example, an image with 3000 x 2000 pixels. Which is too large for your server to process.

Read more here: [SOLVED] Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again. 

Other possible solutions:

  1. Decrease your image size before uploading. You can use GIMP (it’s a free and very useful photo editor software). After install, select (from the menu above): Image -> Scale Image -> put a lower image size.
  2. Increase PHP Memory – Again, the PHP Memory limit has a crucial role for each WordPress site.
  3. ModSecurity – Your hosting server may have mod_security enabled, and it might be the cause of this error, so you may disable it and check if works.

To disable the mod_security, add the following code to the .htaccess: 

ATTENTION: EACH MODIFICATION ON THIS FILE MAY BREAK YOUR SITE. BEFORE DOING ANYTHING, DOWNLOAD A COPY OF THAT FILE INTO YOUR COMPUTER, OR COPY THAT FILE ON YOUR SERVER AND RENAME IT BY ADDING AN “-OLD” TO THE FILE. IN CASE SOMETHING GOES WRONG, REINSTATE THE OLD FILE.

<IfModule mod_security.c> 
SecFilterEngine Off 
SecFilterScanPOST Off 
</IfModule>

Unable to create the directory and broken images in the Media Library

Do you see this error when you try to upload a new image: “Unable to create directory wp-content/uploads/2022/02. Is its parent directory writable by the server”?. If so, the folder permission is not well configured. Here is the solution:

  1. Navigate to wp-content/uploads/ (with Filezilla, or even through cPanel and Files Manager feature)
  2. Use your FTP program to change the uploads folder permission to 755, apply it to all enclosed items.
  3. This will make sure all items and folders within your uploads folder are set to 755.

Submit Your Guest Post

Previous Post
Unable to delete a plugin
Next Post
Warning – “Cannot Modify Header Information” Error
Lusi StudiosLusi Studios
15:32 22 Jun 22
Andrei did an amazing job! He helped in a very rushed time and he excelled at everything. Thanks again!
I am grateful and I would to thank Websites Seller for their support in site recovery and site transfer. Websites Seller just saved my business. Thank you!
Wouter GhysensWouter Ghysens
11:52 10 Sep 21
Looking for a Wordpress transfer from site A to site B, I found back Andrei from Wesites Seller on Google.He was very proactive in his approach, came with hundreds of ideas and lifetime experiences from other migrations. He knows the wordpress, the hosting and php database as the back of his pocket.And we worked out this migration very smooth. Together we solved it, and myself and my business are very pleased with his approach.100% recommendation & kudo's from out of Belgium!
Ioachim CiobanuIoachim Ciobanu
18:39 14 Jul 21
Websites Seller built my resume site. Deliverables were quickly completed, and I was asked for my feedback at each stage of development. All feedback I gave was implemented in a short time.Another great thing is that he comes with smart solutions, regarding stuff which I didn't initially think of (site security, Google site speed optimization and so on). Basically, he was great, staying in touch, keeping me updated and paid attention to what was most important for my site.Overall, I am very happy with the work done. I highly recommend this developer!
K CollinsK Collins
09:11 19 May 21
I needed help with website speed - to improve my core web vitals - without compromising the usability of my site. Andrei was extremely responsive, proactive and fast. And more importantly, he increased by website speed. Highly recommend him, and I will be using him going forward on all my projects.
js_loader

Submit Your Guest Post

Services

WordPress Website Maintenance Services

WordPress Maintenance Services

WordPress website maintenance service that provides cloud backups, emergency support, weekly website updates, speed and many more.

sally

WordPress Migration Service

Safely transfer your WordPress website to a new location for $75. … Migrate your website to its new host.

lawyer-office

Lawyer Web Design

We specializes in website design, Internet marketing and SEO for lawyers and attorneys throughout the Europe and US.