Skip to content

Commit

Permalink
feat: support heic
Browse files Browse the repository at this point in the history
  • Loading branch information
klieber committed Aug 29, 2023
1 parent e3ee1be commit c2f6eb1
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 96 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /usr/src/app

COPY package*.json ./

RUN apt-get update && apt-get install -y libvips && apt-get clean
RUN npm ci --platform=linux --arch=x64 --only=production --ignore-scripts
RUN npm uninstall sharp && npm install --platform=linux --arch=x64 sharp

Expand Down
5 changes: 3 additions & 2 deletions default-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
],
"handlers": [
{
"extensions": ["jpg", "jpeg", "png", "gif", "webp"],
"extensions": ["jpg", "jpeg", "png", "gif", "webp", "heic"],
"conversions": {
"webp": "jpg"
"webp": "jpg",
"heic": "jpg"
},
"target": "/media/photo"
},
Expand Down
188 changes: 95 additions & 93 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
"winston": "3.10.0"
},
"devDependencies": {
"@babel/eslint-parser": "7.22.11",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/preset-env": "7.22.10",
"@commitlint/cli": "17.7.1",
"@commitlint/config-angular": "17.7.0",
"@babel/eslint-parser": "7.22.11",
"eslint": "7.32.0",
"eslint-config-prettier": "8.10.0",
"eslint-plugin-prettier": "4.2.1",
Expand Down

0 comments on commit c2f6eb1

Please sign in to comment.