How to optimize image for sliders

Hello

Iam New to wordpress,I want to create slider section I have created image with dimensions of 1920×820 px for slider image

I want to optimize the image like the screenshot I have attached you can see the same image is looking perfect on desktop view and also on mobile specially mobile view usually what happens it looks like crop version of that image on mobile view

So I want to do it like that can you please help me or guide me

2 Comments
  1. Create multiple versions for each device size while keeping the same aspect ratio to optimize the images. Make sure your slider supports responsive images, as this makes a big difference! Also add custom CSS with `background-size: cover;` to avoid cropping. Using JPEG for photos and PNG for transparency works well, or you can try WebP for better compression and don’t forget to preview the slider on both desktop and mobile!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer