Endpoints to retrieve image and video metadata
Closed this issue · 0 comments
KrzysiekWyka commented
Endpoints should be independent of rest which are using different libraries to process media because in this case, we want to use exiftool
. At this moment I have in mind two possible paths to integrate with it:
- binary file downloaded inside dockerfile
- binary from some npm package (e.g. https://www.npmjs.com/package/@mcmics/dist-exiftool)
Some POC should be performed to decide which one to use.
Endpoints to implement:
POST /image/metadata
POST /video/metadata
Both services should process media from request but return different kinds of data (ofc json format).
image
- dimensions
- mimetype
- orientation (landscape/portrait)
video
- dimenstions
- video length
- mimetype
- orientation (landscape/portrait)
And more (if somebody has ide please write it down inside this issue).
Some tests with sample media should be implemented.