reflex/reflex/utils
Krys 278183b526
fix image serializing - REF-1889 (#2550)
* fix image serializing

* If get_format_mimetype does not work, look up format in Image.MIME

Throw a warning if the image format does not have an associated MIME type and
ultimately fallback to image/png and let the browser figure it out.

* test_media: end to end serialization of PIL images

---------

Co-authored-by: Masen Furer <m_github@0x26.net>
2024-02-22 08:13:19 -08:00
..
__init__.py [REF-99] Add first version of CLI for hosting service (#1810) 2023-10-21 13:09:56 -07:00
build.py only exclude assets folder if it's in the root_dir (#2308) 2023-12-18 15:51:13 -08:00
console.py Upgrade to NextJS 14 (#2142) 2023-11-13 09:52:51 -08:00
exceptions.py rx.match component (#2318) 2024-01-04 09:48:18 -08:00
exec.py apps should no longer call "app.compile()" (#2291) 2023-12-18 16:06:21 -08:00
export.py apps should no longer call "app.compile()" (#2291) 2023-12-18 16:06:21 -08:00
format.py Fix fstrings being escaped improperly (#2571) 2024-02-13 14:32:44 -08:00
imports.py [REF-144] Add context in each component to prevent rerenders (#2198) 2023-11-27 16:05:59 -08:00
path_ops.py Resolve correct python path on windows (#2373) 2024-01-09 09:58:06 -08:00
prerequisites.py use sync redis client to sanity check (#2679) 2024-02-21 07:01:44 -08:00
processes.py use sync redis client to sanity check (#2679) 2024-02-21 07:01:44 -08:00
serializers.py fix image serializing - REF-1889 (#2550) 2024-02-22 08:13:19 -08:00
telemetry.py Rework telemetry to support installation_id (#2480) 2024-01-31 11:39:48 -08:00
types.py Fix SQLAlchemy list types (#2668) 2024-02-20 15:14:33 -08:00
watch.py code cleanup (split constants into a folder) (#1866) 2023-09-28 17:27:20 -07:00