Andrew Murray
cbdc751628
Read AND mask from end
2021-08-10 07:04:36 +10:00
Andrew Murray
2c9a9b3529
Added ICO saving in BMP format
2021-05-27 06:21:28 +10:00
Hugo van Kemenade
6461dd63b3
Merge pull request #5429 from radarhere/ico
...
Use bpp from ICO header
2021-04-25 12:07:38 +03:00
Andrew Murray
900b849aa8
Use bpp from header
2021-04-22 21:18:21 +10:00
Andrew Murray
4b066e66da
Added info about mode when saving for Windows [ci skip]
2021-04-20 23:58:52 +10:00
Eric Soroos
480f6819b5
Fix Memory DOS in Icns, Ico and Blp Image Plugins
...
Some container plugins that could contain images of other formats,
such as the ICNS format, did not properly check the reported size of
the contained image. These images could cause arbitrariliy large
memory allocations.
This is fixed for all locations where individual *ImageFile classes
are created without going through the usual Image.open method.
2021-03-06 10:19:14 +11:00
Alexander
1ff61bcaa6
use offset for all binary input functions instead of slicing
2020-12-30 19:10:50 +11:00
Alexander
3757b8c748
remove extra i8 calls where input is proved bytes[] or int
2020-12-30 19:04:11 +11:00
Andrew Murray
e37a8a263d
Merge pull request #4568 from ziplantil/ico-append-images
...
Add append_images support for ICO
2020-12-24 11:10:33 +11:00
Andrew Murray
2ae597c357
Renamed variable to match IcnsImagePlugin
2020-11-04 22:42:53 +11:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
ziplantil
4ca8a3507d
commit suggestion; update src/PIL/IcoImagePlugin.py
...
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-04-20 12:08:41 +03:00
ziplantil
39f4738775
lint
2020-04-19 16:54:53 +03:00
ziplantil
07b24c6e6e
add append_images support for ico, much like icns
2020-04-19 16:32:58 +03:00
Alexander
fc28182040
fix formatting
2019-12-20 20:42:00 +03:00
Alexander
b48996c213
rename max_reduce to reducing_gap
2019-12-20 14:59:18 +03:00
Alexander
fa9e85cd1f
max_reduce arguments in resize and thumbnail
2019-12-17 03:01:51 +03:00
Hugo
e5486b40f8
Merge remote-tracking branch 'upstream/master' into rm-2.7
2019-11-18 13:56:42 +02:00
Hugo
0c5895470c
Remove deprecated __version__ from plugins
2019-11-05 17:01:03 +02:00
Hugo
538d9e2e5d
Upgrade Python syntax with pyupgrade --py3-plus
2019-10-07 14:30:59 +03:00
Andrew Murray
eed2bfc5b4
Added decompression bomb checks
2019-09-30 18:45:13 +10:00
Andrew Murray
4834157658
Documented OS support for saved files [ci skip]
2019-08-20 20:42:58 +10:00
Jon Dufresne
d50445ff30
Introduce isort to automate import ordering and formatting
...
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.
Uses the configuration recommended by the Black to avoid conflicts of
style.
Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Andrew Murray
02a2e93703
Do not load ICO if already loaded
2019-06-12 02:18:54 +10:00
Hugo
cab7231e2a
Format with Black
2019-06-11 11:42:05 +03:00
Hugo
53a7e35004
Format with Black
2019-06-10 18:22:46 +03:00
Andrew Murray
d830cca5ca
Handle unexpected ICO image sizes
2019-05-12 20:44:29 +10:00
pirate486743186
a62c825922
adding some missing mime types and extensions
...
for reference
https://en.wikipedia.org/wiki/BMP_file_format
https://en.wikipedia.org/wiki/ICO_(file_format)
https://en.wikipedia.org/wiki/Pcx
https://en.wikipedia.org/wiki/Netpbm_format
https://en.wikipedia.org/wiki/.tga
2019-03-04 15:44:39 +11:00
Jon Dufresne
a11fed32b3
Deprecate PIL.*ImagePlugin.__version__ attributes
...
Use PIL.__version__ instead.
2019-02-02 17:39:55 -08:00
Andrew Murray
0adeb82e98
Changed Image size property to be read-only by default
2018-09-30 13:45:18 +10:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00