• hello, actually I want to auto resize all my images in posts, not to medium, large,… I don’t want to make another file like 400×400, … but I want to resize the same original image, the same link, URL, etc.
    I was using this plugin: Resize Images In Posts but after “Serve static content” this plugin is not working anymore.

    what is the best way?

    thank you,

Viewing 1 replies (of 1 total)
  • Custom image sizes can be defined from a custom plugin or functions.php in your theme.

    For reference:
    https://developer.ww.wp.xz.cn/reference/functions/add_image_size/

    Example from those docs:

    add_action( 'after_setup_theme', 'wpdocs_theme_setup' );
    function wpdocs_theme_setup() {
        add_image_size( 'category-thumb', 300 ); // 300 pixels wide (and unlimited height)
        add_image_size( 'homepage-thumb', 220, 180, true ); // (cropped)
    }
Viewing 1 replies (of 1 total)

The topic ‘auto resize image’ is closed to new replies.