• aslamK

    (@4slam)


    The --skip=image_resize option of wp-import (WP-CLI command) causes the import to “skip time-consuming thumbnail generation”. Since Featured Images are thumbnails, if I ran wp-import with a WXR file and this option, followed by wp media regenerate --yes, will the Featured Images of the imported posts be set as they were on the site that was exported to the WXR file?

    IOW, if I run wp-import with option --skip=image_resize, will I then have to manually set the Featured Image of every imported post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • luxurycarshop

    (@luxurycarshop)

    If you use the --skip=image_resize option with the wp-import WP-CLI command, it will indeed skip the time-consuming thumbnail generation during the import process. However, this doesn’t mean you’ll have to manually set the Featured Image for every imported post. Here’s how it typically works:

    1. Using wp-import with --skip=image_resize: By using this option, you are bypassing the creation of multiple image sizes (thumbnails) for each imported image during the import. This speeds up the import process but may result in missing or unoptimized thumbnails for featured images.
    2. Running wp media regenerate --yes: After the import, you can run wp media regenerate --yes to generate the missing image sizes/thumbnails for the imported media. This command regenerates the image sizes based on your WordPress theme’s settings and the image size configurations set in your WordPress installation.
    3. Featured Images: After you run wp media regenerate, the featured images of your imported posts should be set as they were on the site that was exported to the WXR file. The regeneration process should create the necessary thumbnail sizes for featured images. You shouldn’t need to manually set the featured images again; they should be automatically updated.

    Keep in mind that the success of this process depends on your theme’s image size settings and the compatibility of the images in the imported content with these settings. If your theme requires specific custom image sizes for featured images, you may need to configure those settings in your WordPress theme or use a plugin to ensure the regeneration process aligns with your theme’s requirements.

    Thread Starter aslamK

    (@4slam)

    @luxurycarshop Thanks for the explanation!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Effect of wp-import with –skip=image_resize on Featured Images’ is closed to new replies.