Repository Analysis

python-pillow/Pillow

Python Imaging Library (fork)

10.6 Low AI signal View on GitHub
10.6
Adjusted Score
10.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
13,587
Stars
Python
Language
132,617
Lines of Code
496
Files
1126
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 3MEDIUM 127LOW 996

Pattern Findings

1126 matches across 12 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers391 hits · 403 pts
SeverityFileLineSnippet
LOWsetup.py170def _find_library_dirs_ldconfig() -> list[str]:
LOWchecks/check_large_memory.py51def test_size_greater_than_int() -> None:
LOWTests/test_imagecms.py235def test_unsupported_color_space() -> None:
LOWTests/test_imagecms.py245def test_invalid_color_temperature() -> None:
LOWTests/test_imagecms.py349def test_extended_information() -> None:
LOWTests/test_imagecms.py354 def assert_truncated_tuple_equal(
LOWTests/test_imagecms.py536def test_transform_typesafety() -> None:
LOWTests/test_imagecms.py544def assert_aux_channel_preserved(
LOWTests/test_imagecms.py603def test_preserve_auxiliary_channels_rgba() -> None:
LOWTests/test_imagecms.py609def test_preserve_auxiliary_channels_rgba_in_place() -> None:
LOWTests/test_imagecms.py615def test_preserve_auxiliary_channels_rgbx() -> None:
LOWTests/test_imagecms.py621def test_preserve_auxiliary_channels_rgbx_in_place() -> None:
LOWTests/test_imagecms.py627def test_auxiliary_channels_isolated() -> None:
LOWTests/test_image_paste.py360 def test_incorrect_abbreviated_form(self) -> None:
LOWTests/test_file_msp.py84def test_cannot_save_wrong_mode(tmp_path: Path) -> None:
LOWTests/test_image_array.py98def test_fromarray_strides_without_tobytes() -> None:
LOWTests/test_file_xbm.py55def test_open_filename_with_underscore() -> None:
LOWTests/test_file_psd.py123def test_open_after_exclusive_load() -> None:
LOWTests/test_file_psd.py135def test_negative_top_left_layer() -> None:
LOWTests/test_file_psd.py160def test_combined_larger_than_size() -> None:
LOWTests/test_file_psd.py215def test_bounds_crash_overflow() -> None:
LOWTests/test_imagewin.py104 def test_dib_frombytes_tobytes_roundtrip(self) -> None:
LOWTests/test_imageshow.py62def test_show_without_viewers(monkeypatch: pytest.MonkeyPatch) -> None:
LOWTests/test_features.py54def test_libjpeg_turbo_version() -> None:
LOWTests/test_features.py61def test_libimagequant_version() -> None:
LOWTests/test_features.py77def test_check_warns_on_nonexistent() -> None:
LOWTests/test_file_xpm.py55def test_not_enough_image_data() -> None:
LOWTests/test_core_resources.py87 def test_set_block_size_stats(self) -> None:
LOWTests/test_core_resources.py120 def test_set_blocks_max_stats(self) -> None:
LOWTests/test_file_pcx.py137def test_break_in_count_overflow(
LOWTests/test_file_png.py237 def test_load_transparent_rgb(self) -> None:
LOWTests/test_file_png.py251 def test_save_p_transparent_palette(self, tmp_path: Path) -> None:
LOWTests/test_file_png.py274 def test_save_p_single_transparency(self, tmp_path: Path) -> None:
LOWTests/test_file_png.py299 def test_save_p_transparent_black(self, tmp_path: Path) -> None:
LOWTests/test_file_png.py317 def test_save_grayscale_transparency(self, tmp_path: Path) -> None:
LOWTests/test_file_png.py351 def test_save_rgb_single_transparency(self, tmp_path: Path) -> None:
LOWTests/test_file_png.py388 def test_verify_ignores_crc_error(self, monkeypatch: pytest.MonkeyPatch) -> None:
LOWTests/test_file_png.py402 def test_verify_not_ignores_crc_error_in_required_chunk(
LOWTests/test_file_png.py575 def test_roundtrip_icc_profile(self) -> None:
LOWTests/test_file_png.py582 def test_roundtrip_no_icc_profile(self) -> None:
LOWTests/test_file_png.py598 def test_repr_png_error_returns_none(self) -> None:
LOWTests/test_file_png.py635 def test_roundtrip_private_chunk(self) -> None:
LOWTests/test_file_png.py653 def test_textual_chunks_after_idat(self, monkeypatch: pytest.MonkeyPatch) -> None:
LOWTests/test_file_png.py684 def test_unknown_compression_method(self) -> None:
LOWTests/test_imagegrab.py58 def test_grab_invalid_xdisplay(self) -> None:
LOWTests/test_imagegrab.py163 def test_grabclipboard_wl_clipboard(self, ext: str) -> None:
LOWTests/test_imagegrab.py179 def test_grabclipboard_wl_clipboard_errors(self, arg: str) -> None:
LOWTests/test_shell_injection.py26 def assert_save_filename_check(
LOWTests/test_shell_injection.py50 def test_save_netpbm_filename_bmp_mode(self, tmp_path: Path) -> None:
LOWTests/test_shell_injection.py58 def test_save_netpbm_filename_l_mode(self, tmp_path: Path) -> None:
LOWTests/test_file_bmp.py41def test_fallback_if_mmap_errors() -> None:
LOWTests/test_file_bmp.py229def test_unsupported_bmp_bitfields_layout() -> None:
LOWTests/test_file_im.py110def test_save_unsupported_mode(tmp_path: Path) -> None:
LOWTests/test_image_rotate.py143def test_alpha_rotate_no_fill() -> None:
LOWTests/test_image_rotate.py151def test_alpha_rotate_with_fill() -> None:
LOWTests/test_pickle.py87def test_pickle_la_mode_with_palette(tmp_path: Path) -> None:
LOWTests/test_pickle.py116def helper_assert_pickled_font_images(
LOWTests/test_nanoarrow.py267def test_image_nested_metadata(mode: str, metadata: list[str]) -> None:
LOWTests/test_imagefont.py459def test_free_type_font_get_name(font: ImageFont.FreeTypeFont) -> None:
LOWTests/test_imagefont.py463def test_free_type_font_get_metrics(font: ImageFont.FreeTypeFont) -> None:
331 more matches not shown…
Decorative Section Separators107 hits · 338 pts
SeverityFileLineSnippet
MEDIUMsetup.py2# ------------------------------
MEDIUMsetup.py5# ------------------------------
MEDIUMsetup.py8# ------------------------------
MEDIUMTests/test_image_getcolors.py39# --------------------------------------------------------------------
MEDIUM.github/workflows/wheels.yml5 # ┌───────────── minute (0 - 59)
MEDIUM.github/workflows/wheels.yml6 # │ ┌───────────── hour (0 - 23)
MEDIUM.github/workflows/wheels.yml7 # │ │ ┌───────────── day of the month (1 - 31)
MEDIUM.github/workflows/wheels.yml8 # │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
MEDIUM.github/workflows/wheels.yml9 # │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
MEDIUMsrc/PIL/MpoImagePlugin.py191# ---------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py158# --------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py375# --------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py746# --------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py1101# --------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py1540# --------------------------------------------------------------------
MEDIUMsrc/PIL/PngImagePlugin.py1566# --------------------------------------------------------------------
MEDIUMsrc/PIL/PcxImagePlugin.py135# --------------------------------------------------------------------
MEDIUMsrc/PIL/PcxImagePlugin.py223# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageFile.py82# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageFile.py110# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageFile.py641# --------------------------------------------------------------------
MEDIUMsrc/PIL/SpiderImagePlugin.py213# --------------------------------------------------------------------
MEDIUMsrc/PIL/SpiderImagePlugin.py241# --------------------------------------------------------------------
MEDIUMsrc/PIL/SpiderImagePlugin.py299# --------------------------------------------------------------------
MEDIUMsrc/PIL/MpegImagePlugin.py77# --------------------------------------------------------------------
MEDIUMsrc/PIL/GribStubImagePlugin.py31# --------------------------------------------------------------------
MEDIUMsrc/PIL/GribStubImagePlugin.py66# --------------------------------------------------------------------
MEDIUMsrc/PIL/PixarImagePlugin.py68# --------------------------------------------------------------------
MEDIUMsrc/PIL/MicImagePlugin.py25# --------------------------------------------------------------------
MEDIUMsrc/PIL/MicImagePlugin.py99# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImtImagePlugin.py23# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImtImagePlugin.py98# --------------------------------------------------------------------
MEDIUMsrc/PIL/GifImagePlugin.py69# --------------------------------------------------------------------
MEDIUMsrc/PIL/GifImagePlugin.py509# --------------------------------------------------------------------
MEDIUMsrc/PIL/GifImagePlugin.py1139# --------------------------------------------------------------------
MEDIUMsrc/PIL/GifImagePlugin.py1210# --------------------------------------------------------------------
MEDIUMsrc/PIL/PalmImagePlugin.py103# --------------------------------------------------------------------
MEDIUMsrc/PIL/PalmImagePlugin.py111# --------------------------------------------------------------------
MEDIUMsrc/PIL/PalmImagePlugin.py211# --------------------------------------------------------------------
MEDIUMsrc/PIL/FpxImagePlugin.py41# --------------------------------------------------------------------
MEDIUMsrc/PIL/FpxImagePlugin.py253# --------------------------------------------------------------------
MEDIUMsrc/PIL/BufrStubImagePlugin.py31# --------------------------------------------------------------------
MEDIUMsrc/PIL/BufrStubImagePlugin.py66# --------------------------------------------------------------------
MEDIUMsrc/PIL/PSDraw.py146# --------------------------------------------------------------------
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py31# --------------------------------------------------------------------
MEDIUMsrc/PIL/Hdf5StubImagePlugin.py66# --------------------------------------------------------------------
MEDIUMsrc/PIL/IcoImagePlugin.py52# --------------------------------------------------------------------
MEDIUMsrc/PIL/IcoImagePlugin.py389# --------------------------------------------------------------------
MEDIUMsrc/PIL/EpsImagePlugin.py35# --------------------------------------------------------------------
MEDIUMsrc/PIL/EpsImagePlugin.py420# --------------------------------------------------------------------
MEDIUMsrc/PIL/EpsImagePlugin.py472# --------------------------------------------------------------------
MEDIUMsrc/PIL/TgaImagePlugin.py31# --------------------------------------------------------------------
MEDIUMsrc/PIL/TgaImagePlugin.py181# --------------------------------------------------------------------
MEDIUMsrc/PIL/TgaImagePlugin.py271# --------------------------------------------------------------------
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py378# ------------------------------------------------------------
MEDIUMsrc/PIL/Jpeg2KImagePlugin.py449# ------------------------------------------------------------
MEDIUMsrc/PIL/PcfFontFile.py34# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageTk.py39# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageTk.py69# --------------------------------------------------------------------
MEDIUMsrc/PIL/ImageTk.py191# --------------------------------------------------------------------
47 more matches not shown…
Unused Imports298 hits · 295 pts
SeverityFileLineSnippet
LOWconftest.py1
LOWselftest.py3
LOWsetup.py9
LOWchecks/check_libtiff_segfault.py1
LOWchecks/check_large_memory.py1
LOWchecks/check_j2k_overflow.py1
LOWchecks/check_j2k_leaks.py1
LOWchecks/32bit_segfault_check.py1
LOWchecks/check_release_notes.py1
LOWchecks/check_jpeg_leaks.py1
LOWchecks/check_large_memory_numpy.py1
LOWchecks/check_wheel.py1
LOWchecks/check_fli_oob.py1
LOWchecks/check_png_dos.py1
LOWchecks/check_j2k_dos.py3
LOWchecks/check_fli_overflow.py1
LOWchecks/check_jp2_overflow.py13
LOWchecks/check_imaging_leaks.py1
LOWchecks/check_icns_dos.py3
LOWwinbuild/build_prepare.py1
LOWTests/test_imagecms.py1
LOWTests/test_fontfile.py1
LOWTests/test_image_fromqimage.py1
LOWTests/test_qt_image_toqimage.py1
LOWTests/test_pyroma.py1
LOWTests/test_pyarrow.py1
LOWTests/test_tiff_ifdrational.py1
LOWTests/test_image_paste.py1
LOWTests/test_file_msp.py1
LOWTests/test_image_array.py1
LOWTests/test_file_xbm.py1
LOWTests/conftest.py1
LOWTests/test_font_pcf.py1
LOWTests/test_tiff_crashes.py13
LOWTests/test_file_psd.py1
LOWTests/test_file_dcx.py1
LOWTests/test_imagewin.py1
LOWTests/test_imageshow.py1
LOWTests/test_font_leaks.py1
LOWTests/test_qt_image_qapplication.py1
LOWTests/test_file_gimppalette.py1
LOWTests/test_features.py1
LOWTests/test_image_putalpha.py1
LOWTests/test_image_draft.py1
LOWTests/test_file_xpm.py1
LOWTests/test_webp_leaks.py1
LOWTests/test_core_resources.py1
LOWTests/test_file_pcx.py1
LOWTests/test_file_png.py1
LOWTests/test_imagegrab.py1
LOWTests/test_uploader.py1
LOWTests/test_shell_injection.py1
LOWTests/test_locale.py1
LOWTests/test_file_pcd.py1
LOWTests/test_file_bmp.py1
LOWTests/test_file_im.py1
LOWTests/test_image_rotate.py1
LOWTests/test_pickle.py1
LOWTests/test_file_cur.py1
LOWTests/test_file_blp.py1
238 more matches not shown…
Over-Commented Block136 hits · 134 pts
SeverityFileLineSnippet
LOWchecks/check_jp2_overflow.py1# Reproductions/tests for OOB read errors in FliDecode.c
LOWTests/test_tiff_crashes.py1# Reproductions/tests for crashes/read errors in TiffDecode.c
LOWTests/test_image_transform.py221 sz, Image.Transform.EXTENT, (0, 0, w, h), Image.Resampling.NEAREST
LOWTests/test_file_apng.py121 with Image.open("Tests/images/apng/dispose_op_previous_region.png") as im:
LOWTests/oss-fuzz/fuzz_font.py1#!/usr/bin/python3
LOWTests/oss-fuzz/build.sh1#!/bin/bash -eu
LOWTests/oss-fuzz/fuzz_pillow.py1# Copyright 2020 Google LLC
LOWTests/oss-fuzz/build_dictionaries.sh1#!/bin/bash -eu
LOWdocs/conf.py1#
LOWdocs/conf.py61
LOWdocs/conf.py81# Else, today_fmt is used as the format for a strftime call.
LOWdocs/conf.py101# show_authors = False
LOWdocs/conf.py141
LOWdocs/conf.py181# If true, SmartyPants will be used to convert quotes and dashes to
LOWdocs/conf.py201# If true, links to the reST sources are added to the pages.
LOWsrc/_imagingft.c21#define PY_SSIZE_T_CLEAN
LOWsrc/_imagingft.c41#undef __FTERRORS_H__
LOWsrc/_webp.c1#define PY_SSIZE_T_CLEAN
LOWsrc/_imagingmath.c61
LOWsrc/encode.c1061/* -------------------------------------------------------------------- */
LOWsrc/_imaging.c81#ifdef __CYGWIN__
LOWsrc/libImaging/ImPlatform.h21#if defined(PIL_NO_INLINE)
LOWsrc/libImaging/ImPlatform.h41#else /* not WIN */
LOWsrc/libImaging/ImPlatform.h61#define FLOAT64 double
LOWsrc/libImaging/ImagingUtils.h1#ifdef WORDS_BIGENDIAN
LOWsrc/libImaging/JpegDecode.c21 * See the README file for details on usage and redistribution.
LOWsrc/libImaging/Pack.c61 out[3] = tmp[4], \
LOWsrc/libImaging/Imaging.h121};
LOWsrc/libImaging/Imaging.h741export_imaging_array(Imaging im, struct ArrowArray *array);
LOWsrc/libImaging/Imaging.h761#define MUTEX_UNLOCK(m) PyMutex_Unlock(m)
LOWsrc/libImaging/JpegEncode.c21
LOWsrc/libImaging/Quant.c21#include "Imaging.h"
LOWsrc/libImaging/Arrow.h1#include <stdint.h>
LOWsrc/libImaging/QuantOctree.c1/* Copyright (c) 2010 Oliver Tonnhofer <olt@bogosoft.com>, Omniscale
LOWsrc/PIL/MpoImagePlugin.py1#
LOWsrc/PIL/ImageMode.py1#
LOWsrc/PIL/PngImagePlugin.py1#
LOWsrc/PIL/PngImagePlugin.py21# 2004-09-20 fl Added PngInfo chunk container
LOWsrc/PIL/XbmImagePlugin.py1#
LOWsrc/PIL/PcxImagePlugin.py1#
LOWsrc/PIL/SunImagePlugin.py1#
LOWsrc/PIL/SunImagePlugin.py41 # {
LOWsrc/PIL/SunImagePlugin.py101 if self.mode == "L":
LOWsrc/PIL/ImageFile.py1#
LOWsrc/PIL/SpiderImagePlugin.py1#
LOWsrc/PIL/SpiderImagePlugin.py21##
LOWsrc/PIL/TarIO.py1#
LOWsrc/PIL/MpegImagePlugin.py1#
LOWsrc/PIL/BdfFontFile.py1#
LOWsrc/PIL/ImageStat.py1#
LOWsrc/PIL/PixarImagePlugin.py1#
LOWsrc/PIL/GimpPaletteFile.py1#
LOWsrc/PIL/ImageColor.py1#
LOWsrc/PIL/ContainerIO.py1#
LOWsrc/PIL/MspImagePlugin.py1#
LOWsrc/PIL/MspImagePlugin.py81 # cc-by-attribution -- That page references is taken from the
LOWsrc/PIL/MspImagePlugin.py101 # Write the RunValue byte RunCount times
LOWsrc/PIL/MicImagePlugin.py1#
LOWsrc/PIL/ImtImagePlugin.py1#
LOWsrc/PIL/GifImagePlugin.py1#
76 more matches not shown…
Deep Nesting126 hits · 121 pts
SeverityFileLineSnippet
LOWsetup.py386
LOWsetup.py497
LOWwinbuild/build_prepare.py471
LOWTests/test_imagecms.py627
LOWTests/test_pyarrow.py26
LOWTests/test_features.py27
LOWTests/test_features.py31
LOWTests/test_file_png.py71
LOWTests/test_imagegrab.py102
LOWTests/test_nanoarrow.py26
LOWTests/test_bmp_reference.py19
LOWTests/test_bmp_reference.py64
LOWTests/test_arro3.py34
LOWTests/test_file_tiff.py599
LOWTests/test_file_jpeg2k.py526
LOWTests/test_file_libtiff.py160
LOWTests/test_file_libtiff.py207
LOWTests/test_imageops.py409
LOWTests/test_imagedraw.py1429
LOWdocs/example/DdsImagePlugin.py117
LOWdocs/example/DdsImagePlugin.py155
LOWdocs/example/DdsImagePlugin.py179
LOW.github/compare-dist-sizes.py120
LOWsrc/PIL/MpoImagePlugin.py41
LOWsrc/PIL/PngImagePlugin.py1174
LOWsrc/PIL/PngImagePlugin.py1325
LOWsrc/PIL/PngImagePlugin.py498
LOWsrc/PIL/PngImagePlugin.py628
LOWsrc/PIL/PngImagePlugin.py877
LOWsrc/PIL/PngImagePlugin.py1024
LOWsrc/PIL/AvifImagePlugin.py147
LOWsrc/PIL/PcxImagePlugin.py53
LOWsrc/PIL/SunImagePlugin.py36
LOWsrc/PIL/ImageFile.py672
LOWsrc/PIL/ImageFile.py117
LOWsrc/PIL/ImageFile.py291
LOWsrc/PIL/ImageFile.py531
LOWsrc/PIL/ImageText.py25
LOWsrc/PIL/ImageText.py175
LOWsrc/PIL/ImageText.py327
LOWsrc/PIL/QoiImagePlugin.py54
LOWsrc/PIL/QoiImagePlugin.py154
LOWsrc/PIL/MspImagePlugin.py115
LOWsrc/PIL/ImtImagePlugin.py36
LOWsrc/PIL/GifImagePlugin.py516
LOWsrc/PIL/GifImagePlugin.py545
LOWsrc/PIL/GifImagePlugin.py663
LOWsrc/PIL/GifImagePlugin.py876
LOWsrc/PIL/GifImagePlugin.py929
LOWsrc/PIL/GifImagePlugin.py1027
LOWsrc/PIL/GifImagePlugin.py175
LOWsrc/PIL/PalmImagePlugin.py117
LOWsrc/PIL/ImageQt.py132
LOWsrc/PIL/PdfParser.py339
LOWsrc/PIL/PdfParser.py176
LOWsrc/PIL/PdfParser.py987
LOWsrc/PIL/PdfParser.py1025
LOWsrc/PIL/ImageCms.py230
LOWsrc/PIL/FpxImagePlugin.py124
LOWsrc/PIL/_deprecate.py8
66 more matches not shown…
Excessive Try-Catch Wrapping40 hits · 44 pts
SeverityFileLineSnippet
LOWsetup.py305 except Exception: # noqa: PERF203
LOWsetup.py470 except Exception:
LOWsetup.py493 except Exception:
LOWsetup.py613 except Exception:
LOWsetup.py753 except Exception:
MEDIUMsetup.py463def get_macos_sdk_path(self) -> str | None:
MEDIUMsetup.py484def get_ios_sdk_path(self) -> str:
LOWchecks/check_fli_oob.py67 except Exception as msg:
LOWchecks/check_jp2_overflow.py23 except Exception as msg:
LOWTests/conftest.py23 except Exception as e:
LOWTests/conftest.py60 except Exception:
LOWTests/test_bmp_reference.py30 except Exception: # as msg:
LOWTests/test_bmp_reference.py59 except Exception: # noqa: PERF203
LOWTests/test_bmp_reference.py109 except Exception as msg: # noqa: PERF203
LOWTests/test_image_access.py276 except Exception:
LOWTests/helper.py69 except Exception:
LOWTests/helper.py95 except Exception:
LOWTests/helper.py133 except Exception as e:
LOWTests/helper.py138 except Exception:
LOWTests/oss-fuzz/fuzz_font.py30 except Exception:
LOWTests/oss-fuzz/fuzz_pillow.py28 except Exception:
LOWsrc/PIL/PngImagePlugin.py464 except Exception:
LOWsrc/PIL/ImageFile.py208 except Exception as msg:
LOWsrc/PIL/SpiderImagePlugin.py232 except Exception:
LOWsrc/PIL/EpsImagePlugin.py247 except Exception:
LOWsrc/PIL/Jpeg2KImagePlugin.py300 except Exception:
LOWsrc/PIL/Jpeg2KImagePlugin.py307 except Exception:
LOWsrc/PIL/Jpeg2KImagePlugin.py424 except Exception:
LOWsrc/PIL/ImageTk.py142 except Exception:
LOWsrc/PIL/ImageTk.py230 except Exception:
MEDIUMsrc/PIL/ImageTk.py134def __del__(self) -> None:
MEDIUMsrc/PIL/ImageTk.py222def __del__(self) -> None:
LOWsrc/PIL/TiffImagePlugin.py1763 except Exception:
LOWsrc/PIL/Image.py793 except Exception:
LOWsrc/PIL/Image.py1204 except Exception:
LOWsrc/PIL/Image.py2711 except Exception:
LOWsrc/PIL/Image.py4092 except Exception:
LOWsrc/PIL/JpegImagePlugin.py91 except Exception:
LOWsrc/PIL/JpegImagePlugin.py563 except Exception as e:
LOWsrc/PIL/ImageFont.py110 except Exception:
Self-Referential Comments13 hits · 35 pts
SeverityFileLineSnippet
MEDIUMTests/test_imagemorph.py165 # Create a corner detector pattern
MEDIUMTests/test_000_sanity.py10 # Create an image and do stuff with it.
MEDIUMTests/test_file_xvthumb.py18 # Create a Hopper image with a similar XV palette
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its
MEDIUMsrc/PIL/ImageOps.py218 # Create the low-end values
MEDIUMsrc/PIL/ImageOps.py224 # Create the mapping (2-color)
MEDIUMsrc/PIL/ImageOps.py239 # Create the mapping (3-color)
MEDIUMsrc/PIL/ImageOps.py261 # Create the high-end values
MEDIUMsrc/PIL/TiffTags.py7# This module provides clear-text names for various well-known
MEDIUMsrc/PIL/TiffTags.py16# This module provides constants and clear-text names for various
MEDIUMsrc/PIL/TiffImagePlugin.py520 """This class represents a TIFF tag directory. To speed things up, we
MEDIUMsrc/PIL/TiffImagePlugin.py1061 """This class represents the **legacy** interface to a TIFF tag directory.
MEDIUMsrc/PIL/SgiImagePlugin.py147 # Define the file as SGI File Format
Redundant / Tautological Comments8 hits · 10 pts
SeverityFileLineSnippet
LOWTests/test_file_png.py691 # Set MAXBLOCK to the length of the actual data
LOWTests/test_decompression_bomb.py34 # Set limit to trigger warning on the test file
LOWTests/test_decompression_bomb.py43 # Set limit to trigger exception on the test file
LOWTests/test_decompression_bomb.py67 # Set limit to trigger exception on the test file
LOWsrc/PIL/WebPImagePlugin.py105 # Check if an error occurred
LOWsrc/PIL/TiffImagePlugin.py71# Set these to true to force use of libtiff for reading or writing.
LOWsrc/PIL/Image.py2015 # Return result
LOWsrc/PIL/Image.py2945 # Return result
Cross-Language Confusion2 hits · 10 pts
SeverityFileLineSnippet
HIGHsrc/PIL/PngImagePlugin.py1002 self.png.push(cid, pos, length)
HIGHsrc/PIL/PngImagePlugin.py1043 self.png.push(cid, pos, length)
AI Slop Vocabulary3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMsrc/PIL/PcxImagePlugin.py18# 2002-06-09 fl Made 2-bit and 4-bit support a bit more robust
MEDIUMsrc/PIL/ImageFile.py22# 2004-02-25 fl Made incremental parser more robust
MEDIUMsrc/PIL/Image.py2268 # We're going to leverage the convert mechanism to use the
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHsrc/PIL/Image.py3294 Creates an image memory referencing pixel data in a byte buffer. This function is similar to :py:func:`~PIL.Im
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippet
LOWsrc/PIL/TiffImagePlugin.py13# progressive decoding, make sure to use TIFF files where the tag