leepeuker / movary

Self hosted web app to track and rate your watched movies
MIT License
388 stars 14 forks source link

Add API endpoint for images #589

Open JVT038 opened 6 months ago

JVT038 commented 6 months ago

I have added two API endpoints:

They return a 404 if the ID doesn't exist or if the item doesn't have an image. If the image does exist, then it returns 200 with the raw image data attached in the body.

Part of #572

JVT038 commented 6 months ago

@leepeuker What do you think about using something like imagejpeg or ImageMagick to compress the returned images?