Commit Graph

22 Commits

Author SHA1 Message Date
Ethan Paul 1ace9ae881
Bump bugfix version 2022-03-09 19:55:54 -05:00
Ethan Paul 55661034a4
Fix jpeg image autorotation issue
See also https://github.com/python-pillow/Pillow/issues/4703
See also https://github.com/huggingface/transformers/pull/14062
2021-12-30 21:29:42 -05:00
Ethan Paul 0bf2aba0ba
Fix typing and linting errors
Fix typing error in checksum path factory
Fix immediate reraise in manip resource handler
Fix unsilenced warning in manip protocol function
2021-11-23 20:04:36 -05:00
Ethan Paul fe0811d525
Fix source resource always working even when expose_source is false 2021-11-23 16:21:04 -05:00
Ethan Paul 0ac073e733
Implement scaling manipulation support 2021-11-23 14:46:17 -05:00
Ethan Paul ecf25b40a0
Add initial MVP for b&w and crop manips 2021-11-23 00:23:13 -05:00
Ethan Paul 5cbd0b019c
Move index tooling to top level module namespace 2021-11-23 00:23:12 -05:00
Ethan Paul 5613f8287c
Fix handling of relative paths in image source field 2021-11-23 00:23:12 -05:00
Ethan Paul bbb7dec2b3
Fix link name generation logic to support nested directories 2021-11-23 00:23:11 -05:00
Ethan Paul dc81600d0c
Generalize hashing function to checksum container
Fix sylink creation/removal on image record model
2021-11-23 00:23:10 -05:00
Ethan Paul a87ca3bc80
Update manip endpoint to fix path problem
One of the goals is to make the generated content directory directly hostable
via a web browser for performance. This means that the application needs to be
able to generate a file tree identical to the URL structure so that clients can
fetch a single URL and either use the cached image or trigger a manipulation
depending on whether it already exists.

With a url structure of /key and /key/manip for the source and manips respectively,
it becomes impossible to create a file tree matching it since 'key' must be both
the source file and a directory containing the manipulated images.

This updates it to use 'original' as a special manip name so the URL structure of
/key/original and /key/manip can match the directory structure
2021-11-23 00:23:08 -05:00
Ethan Paul d5267e51d9
Implement trivial functionality for image source endpoint 2021-11-13 00:56:07 -05:00
Ethan Paul 25b61a612c
Add trivial CLI for maintenance tasks 2021-11-13 00:56:06 -05:00
Ethan Paul caa05e6e32
Add index generation tooling for detecting source images 2021-11-12 23:35:39 -05:00
Ethan Paul 56e683a94a
Update default content directory 2021-11-12 23:35:32 -05:00
Ethan Paul 19739d17f4
Fix typing errors
Fix missing dependencies in static tox envs
2021-10-30 11:51:41 -04:00
Ethan Paul 158db1209b
Update database schema for new image/alias structure 2021-10-30 10:59:41 -04:00
Ethan Paul 1b7856c590
Fix enum typing on config helper funcs 2021-10-29 22:14:39 -04:00
Ethan Paul f46168e29d
Lint and document API resources
Add unimplemented authentication decorator
2021-10-29 19:45:32 -04:00
Ethan Paul 37303ccc50
Lint and document config and constants modules 2021-10-29 19:45:32 -04:00
Ethan Paul dff79571ba
Reimplement manip configuration settings
Add support for future color changes
Once and for all settle how crop/scaling will work
Add proper exceptions
2021-10-29 18:56:52 -04:00
Ethan Paul 67abbd5374
Rename project to kodak 2021-10-28 23:17:00 -04:00