zulip/zerver
Alex Vandiver 9a1f78db22 thumbnail: Support checking for images from streaming sources.
We may not always have trivial access to all of the bytes of the
uploaded file -- for instance, if the file was uploaded previously, or
by some other process.  Downloading the entire image in order to check
its headers is an inefficient use of time and bandwidth.

Adjust `maybe_thumbnail` and dependencies to potentially take a
`pyvips.Source` which supports streaming data from S3 or disk.  This
allows making the ImageAttachment row, if deemed appropriate, based on
only a few KB of data, and not the entire image.
2024-09-17 12:51:30 -07:00
..
actions user_groups: Add `creator` and `date_created` field in user groups. 2024-09-13 18:44:58 -07:00
data_import mattermost: Handle duplicate dm-groups. 2024-09-09 12:05:28 -07:00
integration_fixtures/nagios
lib thumbnail: Support checking for images from streaming sources. 2024-09-17 12:51:30 -07:00
management lint: Fix several duplicate word typos. 2024-09-10 15:59:00 -07:00
migrations settings: Add 'allow_private_data_export' user setting. 2024-09-16 15:48:40 -07:00
models settings: Add 'allow_private_data_export' user setting. 2024-09-16 15:48:40 -07:00
openapi settings: Add 'allow_private_data_export' user setting. 2024-09-16 15:48:40 -07:00
tests thumbnail: Support checking for images from streaming sources. 2024-09-17 12:51:30 -07:00
tornado retention: Remove outdated compat block for delete_message events. 2024-09-10 17:07:47 -07:00
transaction_tests ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00
views settings: Add 'allow_private_data_export' user setting. 2024-09-16 15:48:40 -07:00
webhooks integrations: Add support for release events to GitLab integration. 2024-09-16 09:26:20 -07:00
worker upload: Download files with their original names. 2024-09-09 12:40:17 -07:00
__init__.py
apps.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
context_processors.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
decorator.py analytics: Migrate to @typed_endpoint. 2024-08-26 08:57:49 -07:00
filters.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
forms.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
logging_handlers.py ruff: Fix UP007 Use `X | Y` for type annotations. 2024-07-13 22:28:22 -07:00
middleware.py ruff: Fix UP035 Import from `collections.abc`, `typing` instead. 2024-07-13 22:28:22 -07:00
signals.py ruff: Bump target-version from py38 to py310. 2024-07-13 22:28:22 -07:00