but jpeg files can suffer generational degradation when repeatedly edited and saved. photographic images may be better stored in a lossless non-jpeg format if they will be re-edited in future, or if the presence of small 'artifacts' is unacceptable. it is however the best format for internet publishing in most cases. gif is limited to an 8-bit palette, or 256 colors. this makes the gif format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images.

Make this proper case
But JPEG files can suffer generational degradation when repeatedly edited and saved. Photographic images may be better stored in a lossless non-JPEG format if they will be re-edited in future, or if the presence of small 'artifacts' is unacceptable. It is however the best format for internet publishing in most cases. GIF is limited to an 8-bit palette, or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colors such as simple diagrams, shapes, logos and cartoon style images.