WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Strange image size bug (4 posts)

  1. gvperkins
    Member
    Posted 1 year ago #

    I have created a WordPress site with a custom theme on my local machine, I am using the add_image_size function to create custom image sizes for various parts of the website, one being a custom photo gallery.

    On my local machine and 3 others in my office they site works perfect. When I copied the site to the live server today (upload all files, find and replace on the DB) the website is showing the images at full resolution rather than the custom sizes.

    The code and DB are exactly the same (apart from the urls) but when inspecting the images the live site is calling the full image for example image-1.jpg where the local copy is calling image-1-300x140.jpg, all the image sizes are in the folders and I have no idea why this is happening.

    i have tried disabling all plugins, checked, browser cache etc..

    I am using the Pods Framework plugin to create the photo gallery.

    Any help would be greatly appreciated.

  2. jasonpaulweber
    Member
    Posted 1 year ago #

    Can you post a link so we can see the html output?

  3. gvperkins
    Member
    Posted 1 year ago #

    Live site:

    <li>
    <a class="lbp_primary cboxElement gallery" rel="lightbox[gallery]" href="http://bwf-cms.caboodlemedia.co.uk/wp-content/uploads/2013/04/Ref-160512_00311.jpg">
            <span></span>
                    <img src="http://xxx/wp-content/uploads/2013/04/Ref-160512_00311.jpg" title="Image 39" alt="Image 39">
        </a></li>

    Local site

    <li>    <a class="lbp_primary cboxElement gallery" rel="lightbox[gallery]" href="http://localhost/wp-content/uploads/2013/04/Ref-160512_00311-715x320.jpg">
            <span></span>
                    <img src="http://localhost/wp-content/uploads/2013/04/Ref-160512_00311-127x129.jpg" title="Image 39" alt="Image 39">
        </a></li>

    I cant send a link as it is still in development for a client.

    Thanks.

  4. gvperkins
    Member
    Posted 1 year ago #

    Actually fixed this by manually deleting all the thumbnails and regenerating them.

Topic Closed

This topic has been closed to new replies.

About this Topic