|
/ Documentation /Troubleshooting/ Blog Featured Image Size Not Working / Error in Image Processing Library

Blog Featured Image Size Not Working / Error in Image Processing Library

Info

Prerequisites: This solution requires Astra Pro with the Blog Pro module active. If you are using the free Astra theme, this filter is not available.

If your blog featured images are displaying incorrectly or you are seeing image processing errors in WordPress, a conflict between Astra Pro’s image resizing library and your server’s image processing setup is the most likely cause.

Common Image Processing Errors in Astra Pro

You may be experiencing this issue if you see any of the following:

  • Error message: “Class is not found – WP_Image_Editor_Imagick”
  • Error message: “Call to undefined method WP_Image_Editor_Imagick::get_error_message()”
  • Bloated wp_options table: Entries similar to “wp_addon_database_migration_batch_4935ee10bd16fca38a7cb9a9f5904d” appear in the WordPress database

How to Fix Astra Pro Image Processing Issues

The fix is to disable Astra Pro’s image resizing queue using a single filter. Blog featured images will still display — they’ll just use WordPress’s default sizes rather than Astra Pro’s custom-resized versions.

You can use the following filter in the child theme’s functions.php

Before you make any customizations, it’s a best practice to create a child theme to avoid affecting your main theme. If you already have a child theme, you can skip this step.

Now, you can follow the below enlisted steps to disable Image Processing from Astra.

Step 1: Access Your WordPress Dashboard

Log in to your WordPress admin dashboard.

Step 2: Open the Child Theme’s functions.php File

Navigate to “Appearance” in the WordPress dashboard and select “Theme File Editor.” In the Theme File Editor, find and click on the “functions.php” file. This file contains the code that controls various aspects of your WordPress theme.

Step 3: Insert the Code

Once you’re in the “functions.php” file, you’ll need to insert the following code snippet:

add_filter( 'astra_image_resizer', '__return_false' );

Step 4: Save Your Changes

After inserting the code, make sure to save your changes by clicking the “Update File” button. Once added, reload your blog page and confirm the image processing errors no longer appear.

By following these steps, you can fix the image processing issues encountered with the Astra theme and ensure your website functions as intended.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Scroll to Top