Commit Graph

11 Commits

Author SHA1 Message Date
Stefan Forstenlechner 53e0e9bd1f Add security check to avoid access violations
In case of malicious users double check paths, so that they are not able
 to traverse outside of the image directory.
2022-04-29 21:14:38 +02:00
Stefan Forstenlechner a7c4a17ecc Better error handling
Remove `image-size` dependency as sharp covers the needed functionality.
2022-04-25 23:31:17 +02:00
Stefan Forstenlechner 0b910e1ac5 use winston logger in app 2022-04-17 16:21:48 +02:00
Stefan Forstenlechner 2923e1b373 Catch incorrect path exceptions and add logging 2022-04-17 16:21:44 +02:00
Stefan Forstenlechner 71711bb698 Set max-age and expire header for caching 2022-04-17 14:12:13 +02:00
Stefan Forstenlechner 1034df02f2 First thumbnail attempt 2022-04-10 20:49:19 +02:00
Stefan Forstenlechner b6ddbfb92b Decode URI 2022-04-10 17:56:46 +02:00
Stefan Forstenlechner 8299fd24ec Consider orientation 2022-04-10 17:40:47 +02:00
Stefan Forstenlechner a50dbd0d36 server format commit 2022-04-09 20:36:52 +02:00
Stefan Forstenlechner 10431fdede temp commit 2022-04-09 19:53:20 +02:00
Stefan Forstenlechner 809cae0fee initial commit 2022-04-09 13:30:58 +02:00