Sam Mason
eddc9bdcec
switch to #z for comment parameter
...
* means `comment=None` can be passed directly
* no need to conditionally run `str.encode()`
* clean up checking of whether a comment is passed
2022-12-05 17:46:54 +00:00
Andrew Murray
e50ae85ea4
Use jpeg_write_marker to write comment
2022-12-05 13:57:26 +11:00
Andrew Murray
46b7e86bab
Format with ClangFormat
2021-01-03 14:17:51 +11:00
gofr
b212a1eb8f
Keep baseline compatibility when specifying quality
...
16-bit quantization tables can appear at quality values below
about 25. These may cause compatibility problems. Maintain
baseline compatibility and avoid confusing users with warning
messages.
2020-10-10 16:23:58 +02:00
gofr
6db0843af4
Add support for 16-bit precision JPEG quantization values
...
Don't force JPEG quantization to be baseline-compatible
Quantization values will not be limited to values 1..255 and may
be 16 bits if needed. This may cause compatibility issues.
2020-10-10 14:35:09 +02:00
Andrew Murray
660894cd36
Write JFIF header when saving JPEG
2020-05-24 23:58:30 +10:00
Andrew Murray
9f2773b3f7
Added braces
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-05-11 07:19:52 +10:00
Andrew Murray
c1d9931adc
Added braces
2020-05-10 19:56:36 +10:00
Andrew Murray
ae43af61da
Replaced tabs with spaces
2020-05-01 22:08:57 +10:00
Andrew Murray
a8c0794107
Allow saving of zero quality JPEG images
2020-02-21 22:05:44 +11:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00