The jpg-format is lossy by definition, even if you chose a quality level of 100.
With png it's the other way around, i.e. here you can always chose the highest compression level but the image is saved/loaded losless. However, afaik, the saving/loading time raises with higher compression.