when to use jpeg and png

when to use jpeg and png