Skip to content

Commit

Permalink
Use cropped preview to avoid pixelated images
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and npmbuildbot[bot] committed Dec 23, 2019
1 parent 6f808ea commit 7d14d30
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions js/photos.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/components/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
return this.mime.startsWith('image')
},
src() {
return generateUrl(`/core/preview?fileId=${this.fileid}&x=${256}&y=${256}&a=true&v=${this.etag}`)
return generateUrl(`/core/preview?fileId=${this.fileid}&x=${256}&y=${256}&a=false&v=${this.etag}`)
},
},

Expand Down

0 comments on commit 7d14d30

Please sign in to comment.