I'm trying to generate thumbnails for a PDF attachment. Right now in the uploads/ folder there is only the PDF file, no image thumbnails related to it.
But when I run the regeneration with :
wp media regenerate 1188810 --image_size=portrait_medium
it shows this message :
Found 1 image to regenerate.
1/1 No "portrait_medium" thumbnail regeneration needed for "Products catalog" (ID 1188810).
I dont understand why it says no thumbnail regeneration is needed when that's not the case.
My custom image sizes are defined like this in functions.php
:
add_action( 'after_setup_theme', 'mwm_custom_image_sizes' );
function mwm_custom_image_sizes() {
add_theme_support( 'post-thumbnails' );
add_image_size( 'portrait_medium', 200, 286, array( 'center', 'top' ) );
}
fallback_intermediate_image_sizes
filter. See here : wordpress.stackexchange.com/questions/415634/…