diff --git a/Website/interaction.js b/Website/interaction.js index ad2fa12..f470d92 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -111,7 +111,7 @@ function CreatePublication(publication, connector){ var publicationElement = document.createElement('publication'); publicationElement.setAttribute("id", publication.internalId); var img = document.createElement('img'); - img.src = `data:image;base64,${publication.posterBase64}`; + img.src = `imageCache/${publication.coverFileNameInCache}`; publicationElement.appendChild(img); var info = document.createElement('publication-information'); var connectorName = document.createElement('connector-name'); diff --git a/docker-compose.yaml b/docker-compose.yaml index b669d45..a3ea646 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -3,7 +3,7 @@ image: glax/tranga-api:latest container_name: tranga-api volumes: - - ./tranga:/usr/share/Tranga-API + - ./tranga:/usr/share/Tranga-API #1 when replacing ./tranga replace #2 with same value - ./Manga:/Manga ports: - 6531:80 @@ -12,4 +12,6 @@ image: glax/tranga-website:latest container_name: tranga-website ports: - - 9555:80 \ No newline at end of file + - 9555:80 + volumes: + - ./tranga/imageCache:/usr/share/nginx/html/imageCache #2 when replacing Point to same value as #1/imageCache \ No newline at end of file