468,291 Members | 1,604 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

Can I be able to change the picture of an active website

Hello,
My question is not regarding the code, but a general question. I have a website currently live. The site has some big images which are 0.5 MB, and is taking lot of time to load. I went to GTMetrix and see their suggestions to replace the jpg files with WebP which drastically reduces the size. My question is will I be able to replace the files? Will it cause any harm? Of course I will replace the files with the exact same name. Kindly enlighten me.
Regards
Suman P.
Dec 7 '20 #1
2 3182
dev7060
419 Expert 256MB
Hello,
My question is not regarding the code, but a general question. I have a website currently live. The site has some big images which are 0.5 MB, and is taking lot of time to load. I went to GTMetrix and see their suggestions to replace the jpg files with WebP which drastically reduces the size. My question is will I be able to replace the files? Will it cause any harm? Of course I will replace the files with the exact same name. Kindly enlighten me.
Regards
Suman P.
Test locally before updating the live version.
Dec 7 '20 #2
bakertaylor28
38 32bit
The first problem is using jpeg for web development. The standard in web development is to use png. Nobody really uses jpeg for web development because the files are either massive, the quality isn't that great, or some combination of the two.

Webp is a newer format that isn't supported by some browsers, so you'll want to serve WebP images only to clients that can display them properly, and fall back to a different format for clients that can't. As all browsers support png format, that would be the path of least resistance, with the least amount of code involved.
Feb 26 '21 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by S. Stilwell | last post: by
reply views Thread by PawelR | last post: by
1 post views Thread by Jordi Gou | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.