17
0
Ana Guerrero 73d8b51b6b Accepting request 1342035 from devel:languages:python
- update 2.0.0:
   * Expanded Format Support: Added support for BMP,
     AVIF, and HEIC/HEIF image formats.
   * Rich Metadata API: Introduced imagesize.get_info(),
     which returns a named tuple (ImageInfo) containing:
     * width and height
     * rotation (EXIF orientation value)
     * xdpi and ydpi
     * colors (color depth/count)
     * channels (number of color channels)
   * URL Support: The API can now fetch and parse image
     headers directly from http and https URLs.
   * Type Safety: Added comprehensive PEP 484 type hints for
     all public API functions and data structures.
   * Enhanced File-like Support: Improved support for
     duck-typed file-like objects that implement read() and
     seek(), even if they do not inherit from io.IOBase.
   * Python Version Drop: Dropped support for Python 2.7 and
     Python 3.4 through 3.9. The **minimum required version is
     now Python 3.10**.
   * Automatic EXIF Rotation: imagesize.get() now applies
     EXIF orientation metadata by default. This means the
     returned width and height will be swapped for images marked
     as rotated (affects JPEG, TIFF, AVIF, and HEIC/HEIF). Use
     exif_rotation=False to restore the old behavior.
   * Error Handling: imagesize.get() and
     imagesize.getDPI() now return (-1, -1) on parsing
     failures instead of raising exceptions. Code relying on
     exceptions for error detection should be updated.
  Improvements & Bug Fixes

OBS-URL: https://build.opensuse.org/request/show/1342035
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-imagesize?expand=0&rev=12
2026-03-24 17:47:57 +00:00
2026-03-23 12:46:04 +00:00
2026-03-23 12:46:04 +00:00
2026-03-23 12:46:04 +00:00
2026-03-23 12:46:04 +00:00
2026-03-23 12:46:04 +00:00
Description
No description provided
1.3 MiB
Languages
RPM Spec 100%