You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add conversion.convert_svg2png image conversion function + support for SVG in probing.format_for#113
Add i18n.Lang class used as typed result of i18n operations #151
Changed
BREAKING Renamed zimscraperlib.image.convertion to zimscraperlib.image.conversion to fix typo
BREAKING Many changes in type hints to match the real underlying code
BREAKING Force all boolean arguments (and some other non-obvious parameters) to be keyword-only in function calls for clarity / disambiguation (see ruff rule FBT002)
Prefer to use IO[bytes] to io.BytesIO when possible since it is more generic
BREAKINGi18n.NotFound renamed i18n.NotFoundError
BREAKINGtypes.get_mime_for_name now returns str | None
BREAKINGcreator.Creator.add_metadata and creator.Creator.validate_metadata now only accepts bytes | str as value (it must have been converted before call)
BREAKING second argument of creator.Creator.add_metadata has been renamed to value instead of content to align with other methods
When a type issue arises in metadata checks, wrong value type is displayed in exception
BREAKINGi18n.get_language_details(), i18n.get_iso_lang_data(), i18n.find_language_names() and i18n.update_with_macro now process / return a new typed Lang class #151
BREAKING Rename i18.NotFound to i18n.NotFoundError
Removed
BREAKING Remove translation features in i18n: Locale class + _ and setlocale functions #134
Fixed
Metadata length validation is buggy for unicode strings #158
Pillow 10.4.0 reveals improper type hints for image probing functions #177