WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] resize image on fixed width and height (3 posts)

  1. Tuncay Demirtepe
    Member
    Posted 2 years ago #

    I need to resize images for slider. I defined the size:

    add_image_size('home_image', 750, 420);

    and I call image with size:

    echo wp_get_attachment_image($img->ID, 'home_image');

    but wp resizes image as 560x420px, how can I force wordpress to resize image by 750x420px?

  2. Tuncay Demirtepe
    Member
    Posted 2 years ago #

    I realize what is the problem.. I have to re-upload images after defining size in functions.php

  3. Flex Perception
    Member
    Posted 2 years ago #

    Regenerate Thumbnails plugin will do this if you change your preset images sizes. Enjoy!! (install the plugin, run the regen, no need to re-up)

Topic Closed

This topic has been closed to new replies.

About this Topic