From 204803917c2df413246bda8fd7ca941602bed543 Mon Sep 17 00:00:00 2001 From: mixmastamyk Date: Sun, 27 Oct 2019 23:36:33 -0700 Subject: [PATCH] Fix mismatched name, add explanation. Mention why this information is not available in the EXIF tag specified for this purpose. --- src/PIL/JpegPresets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/PIL/JpegPresets.py b/src/PIL/JpegPresets.py index 387844f8e..012bf81b0 100644 --- a/src/PIL/JpegPresets.py +++ b/src/PIL/JpegPresets.py @@ -33,7 +33,10 @@ Possible subsampling values are 0, 1 and 2 that correspond to 4:4:4, 4:2:2 and 4:2:0. You can get the subsampling of a JPEG with the -`JpegImagePlugin.get_subsampling(im)` function. +`JpegImagePlugin.get_sampling(im)` function. + +In JPEG compressed data a JPEG marker is used instead of an EXIF tag. +(ref.: https://www.exiv2.org/tags.html) Quantization tables