• Hello is there a way to show the preview versions of the images that I have uploaded to my website, the images that I upload are being displayed with their original file size, I want them to be regenerated with a lower quality but I still want the original files on the media library only for homepage regenerated low sizes I want to have, I’ve set up LiteSpeed cache but it didn’t work.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, @ferdalkrmn

    There are several effective ways to generate and display preview versions of images on a website. One popular method is to use a plugin like WP Smush or EWWW Image Optimizer to automatically optimize and compress images as they are uploaded to the media library. Alternatively, you can use WordPress’s built-in image editing tools to manually create and insert smaller versions of images into your website’s pages and posts.

    You can also use a plugin that provides the feature of generating various sizes of images upon upload and displaying them as needed. Additionally, you can use the add_image_size()function in WordPress to define custom image sizes, allowing you to generate the different sizes of images that you need, and then use the the_post_thumbnail() or wp_get_attachment_image() functions to display the appropriate size on your website.

    However, it is essential to ensure that your plugin LiteSpeed cache is appropriately set up and that the plugin is compatible with your theme and other plugins. If the problem persists, you may want to consider trying a different caching plugin
    Thank you.

    Thread Starter ferdalkrmn

    (@ferdalkrmn)

    @sharif200 thank you for your response, so I am using featured image option to display images on my website’s homepage, but why is it still using the original image size, because I checked WordPress has default size for featured images, and I even made the picture thumbnail on admin panel but it still doesn’t work.

    picture: https://i.ibb.co/1bH6r0Q/Capture.png

    Hi, @ferdalkrmn

    A variety of factors could cause the issue you are experiencing. It’s possible that your theme is not properly configured to use the default featured image size or that the theme is using custom code to display the featured images that are not respecting the size you have set in the WordPress settings. Another potential cause could be that the theme uses the full-size image even if you have set the featured image size.

    If you’re looking for a solution, you can try changing the theme or adding some custom CSS or PHP code to adjust the size of the featured images on your homepage. If coding isn’t your forte, you can use a plugin to set the featured image size. Whichever option you choose, you’ll be able to get your featured images looking just the way you want them.
    Thank you.

    There an application https://squoosh.app/ it good for compression your image sizes down. I’ve seen it compress them as much as 80 and 90 percent. It a free application if you want want to give it a try.

    Thread Starter ferdalkrmn

    (@ferdalkrmn)

    @mrtom414 I may use that for other purposes, like before uploading a picture to my website, it seems really useful thanks.

    @sharif200 I have fixed the problem thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress compressing Image sizes on homepage’ is closed to new replies.