I define custom image sizes in my theme like this :
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' ) );
etc...
}
When I upload an image, the defaut and custom image sizes are created as expected :
But when I upload a PDF file, only the default image sizes for the cover are generated :
How can I tell Wordpress to generate PDF cover images for all image sizes that are defined ?