mrbrianevans / social-media-export-analyser

Analyse GDPR exports of your data from big social media companies
https://social-media-export-analyser-mrybc.ondigitalocean.app/
MIT License
1 stars 0 forks source link

Preprocessing for images (JPEG, PNG) #33

Closed mrbrianevans closed 2 years ago

mrbrianevans commented 2 years ago

When an image is uploaded, it currently reads the bytes into a string. It should rather call createURL() and return an object like this:

{
    "url":"localhost:5000/zxqpoiwalksdfnma.jpg",
    "originalName": "image1.jpg",
    "altText": "portrait",
    "width": 400,
    "height": 600
}

This will allow it to later be displayed using an img tag