Skip to content

Commit

Permalink
fix Fragment: improve resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleguido committed Apr 22, 2024
1 parent 38d080c commit eee8c53
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/components/IIIFFragment.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
class="shadow-sm"
:src="computedImageUrl"
:alt="isNotFound ? 'Image not available' : ''"
:style="{
transform: `scale(${scale})`,
'transform-origin': 'left top',
}"
/>
<div class="IIIFFragment__regions" :style="computedRegionsStyle">
<div
Expand Down Expand Up @@ -59,6 +63,11 @@ export default defineComponent({
type: String,
default: 'max',
},
scale: {
// scale down size parameter when printing image
type: Number,
default: 1,
},
coords: {
// IIIF size parameter
type: Object,
Expand Down
3 changes: 2 additions & 1 deletion src/components/modules/SearchResultsListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
@click="goToArticle"
v-if="article.pages.length"
:iiif="article.pages[0].iiif"
size="!248,240"
size="!496,480"
:scale="0.5"
fit-to-regions
:regions="computedRegionsInArticleFirstPage"
/>
Expand Down

0 comments on commit eee8c53

Please sign in to comment.