Pillow/docs/handbook
Benjamin Gilbert 8053d5e5a0 Allow disabling default emission of JPEG APP0 and APP14 segments
When embedding JPEGs into a container file format, it may be desirable
to minimize JPEG metadata, since the container will include the pertinent
details.  By default, libjpeg emits a JFIF APP0 segment for JFIF-
compatible colorspaces (grayscale or YCbCr) and Adobe APP14 otherwise.
Add a no_default_app_segments option to disable these.

660894cd36 added code to force emission of the JFIF segment if the DPI is
specified, even for JFIF-incompatible colorspaces.  This seems
inconsistent with the JFIF spec, but apparently other software does it
too.  no_default_app_segments does not disable this behavior, since it
only happens when the application explicitly specifies the DPI.
2024-01-08 05:33:12 -06:00
..
appendices.rst Added PyEncoder 2022-02-25 16:07:01 +11:00
concepts.rst Removed rectangle example from co-ordinate system documentation 2023-05-18 22:14:40 +10:00
image-file-formats.rst Allow disabling default emission of JPEG APP0 and APP14 segments 2024-01-08 05:33:12 -06:00
index.rst Clean up Handbook 2015-09-30 06:38:51 -04:00
overview.rst Link method [ci skip] 2019-06-02 13:34:18 +10:00
text-anchors.rst Replace Python code-blocks with double colons 2023-02-24 08:17:10 +11:00
tutorial.rst fix image url in "Reading from URL" example 2024-01-01 18:06:46 +01:00
writing-your-own-image-plugin.rst Use "gray" more consistently 2023-10-19 19:12:01 +11:00