PMXBOT Log file Viewer

Help | Karma | Search:

#pil logs for Tuesday the 6th of November, 2018

(Back to #pil overview) (Back to channel listing) (Animate logs)
[11:04:39] <debianuser> Hello. I can't create good .jpg even with quality=100. Example: I take https://i.imgur.com/hCZGB3s.png as a source .png, do Image.open("source.png").save("pil.jpg",None,quality=100) and get https://i.imgur.com/qLMVKAw.jpg Then I do the conversion with imagemagick (`convert source.png imagemagick.jpg`) and get https://i.imgur.com/724ua13.jpg which is smaller and looks better! Why?
[11:04:44] <debianuser> Is that a bug in PILs jpeg encoder, or some known misfeature? How can I make PIL's .jpg to preserve at least as much detail as ImageMagick's .jpg?
[11:05:32] <debianuser> (Or maybe it's my PIL version being broken, and yours produces better jpegs?)
[11:15:03] <debianuser> Ah! Found it! It was because of subsampling. Image.open("source.png").save("pil.jpg",None,quality=100,subsampling=0) gives a good image! Sorry for disturbing.