wanderer-moe / img-resizer

image resizer built w/ cloudflare workers-rs
https://img-resizer.wanderer.moe/
GNU General Public License v3.0
5 stars 1 forks source link

use turso sdk, lock worker #1

Closed dromzeh closed 1 year ago

dromzeh commented 1 year ago

assetId will be passed as a form param as well as an auth key; will then get that asset data from the database.

if that asset does not have an existing 128px clone [checked by is_optimized = 0], fetch the image from URL, resize it, then save on worker as -128px equiv, update is_optimized to be 1

dromzeh commented 1 year ago

i'll let the API handle this - so we can just have the img resizer as a separate service and it can be used for other things like pfps, banners, etc.