Skip to content

Commit

Permalink
Use cropped preview to avoid pixelated images (#68)
Browse files Browse the repository at this point in the history
Use cropped preview to avoid pixelated images
  • Loading branch information
skjnldsv authored Dec 23, 2019
2 parents 6f808ea + 7d14d30 commit c1cc5ea
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 c1cc5ea

Please sign in to comment.