Saving the sketch to a high quality JPG file

Does anyone know how to save processing sketch as a high quality jpg file? When i use save(“*.jpg”); and even set it to high resolution, the quality for some works is low, the colors of the original work and the saved jpg file differ (see upload image). I can’t use svg since i use loadPixels();

try png or tiff instead?

see Reference /

I tried png, it saves correctly. Thanks!