diff --git a/curriculum/challenges/english/blocks/lecture-working-with-images-and-svgs/67167835def3588873f339c6.md b/curriculum/challenges/english/blocks/lecture-working-with-images-and-svgs/67167835def3588873f339c6.md index a59119f519f..88a7753615b 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-images-and-svgs/67167835def3588873f339c6.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-images-and-svgs/67167835def3588873f339c6.md @@ -13,7 +13,7 @@ Let's talk about the size of your images first. When you are building a website, The next thing to consider is your file format. Two of the most common file formats are PNG and JPG, but these are no longer the most ideal formats for serving images. Unless you need support for older browsers, you should consider using a more optimized format, like WEBP or AVIF. -Finally, you can run compression algorithms on your images. A compression algorithm is used to reduce the size for files or data. There are options like pngcrush to compress your images locally, or you can use online compression tools. However, it's worth noting that specific file formats, such as JPG, are not lossless. Lossless means that the original data can be perfectly reconstructed from the compressed data. If you try to compress a JPG image, it will result in a degraded quality. You should keep all these things in mind when selecting images for your web pages. +Finally, you can run compression algorithms on your images to reduce file size. Tools like pngcrush work well for lossless formats like PNG, which can be compressed without any quality loss since the original data can be perfectly reconstructed. However, not all formats are lossless. JPG, for example, uses lossy compression — each time a JPG is re-saved or re-compressed, some image data is permanently discarded, resulting in degraded quality. You should keep all these things in mind when selecting and preparing images for your web pages. # --questions-- @@ -91,7 +91,7 @@ Review the middle of the lesson to see which of these options was not mentioned. ## --text-- -Which file format should you never compress? +Which file format uses lossy compression, meaning re-saving or re-compressing it degrades image quality? ## --answers-- @@ -99,7 +99,7 @@ WEBP ### --feedback-- -This format is not lossless, so compressing it would result in a degraded quality. +This format can use both lossy and lossless compression, so it is not specifically known for degrading image quality. --- @@ -107,7 +107,7 @@ PNG ### --feedback-- -This format is not lossless, so compressing it would result in a degraded quality. +This format uses lossless compression, so compressing it would not result in a degraded quality. --- @@ -119,7 +119,7 @@ GIF ### --feedback-- -This format is not lossless, so compressing it would result in a degraded quality. +This format uses lossless compression, so compressing it would not result in a degraded quality. ## --video-solution--