Which type of pdf has the higher quality, a compressed pdf made out of png files, or a non-compressed pdf made out of jpg files?

By the way, the software I am using is PDFGear.