Skip to content

Commit

Permalink
Fix printing multi-page photos
Browse files Browse the repository at this point in the history
Closes #864
  • Loading branch information
inukshuk committed May 14, 2024
1 parent 2d3e7ae commit 7cebef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands/item/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ async function prepForPrinting(photo, _, {
let src = Cache.url(cache.root, 'full', photo)
let [img, { width, height }] = await loadImage(src, photo)

// TODO check for duplicates before prep?
let path = join(tmp, `${photo.checksum}.jpg`)
let path = join(tmp, `${photo.checksum}_${photo.page}.jpg`)

if (prefs.optimize && maxSize) {
img.resize({
Expand Down

0 comments on commit 7cebef5

Please sign in to comment.