• Resolved yano23

    (@yano23)


    Hi,
    I have a custom image size “mediano” which recently I changed its size from 510×340 to 400×270 . I regenerated thumbnails, but when I Inspect and check the intrinsic size of the image where “mediano” is used, it still shows 510×340.

    If I use WP default “medium” size, it is regenerated correctly (I changed it from 300px wide to 400px and tested it on one image) so must be a problem with custom sizes. It’s not related to cache.
    This is the code to add the image sizes, maybe you can spot something wrong? Thanks for any help

    function agb_setup() {
    
        // Habilitar imagen destacada
        add_theme_support('post-thumbnails');
    
        // Tama?o imagenes
        add_image_size( 'mediano', 400, 270, true );
    }
    add_action( 'after_setup_theme', 'agb_setup' );
    • This topic was modified 2 years, 11 months ago by yano23.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Intrinsic image size not updated’ is closed to new replies.