Skip to content

Commit

Permalink
fix: disable compression on album and art images
Browse files Browse the repository at this point in the history
  • Loading branch information
lihbr committed Aug 29, 2024
1 parent b6c70fe commit 232ff37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/files/albums/[slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export const slug = defineAkteFiles<GlobalData, ["slugWithHash"]>().from({
</header>
<article class="section space-y-6 scrollbar-thin sm:space-y-0 sm:space-x-6 sm:!max-w-none sm:flex sm:items-stretch sm:overflow-auto sm:cursor-grabbing">
${pictures.map((picture) => {
const src = prismic.asImageSrc(picture, { h: 800 })
const src = prismic.asImageSrc(picture, { auto: ["format"], h: 800 })
const raw = prismic.asImageSrc(picture, {
auto: ["format"],
rect: undefined,
w: undefined,
h: undefined,
Expand Down
3 changes: 2 additions & 1 deletion src/files/art/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ export const index = defineAkteFile<GlobalData>().from({
link: prismic.asLink(art.data.credit_submitter_link),
}
const image = {
src: prismic.asImageSrc(art.data.picture),
src: prismic.asImageSrc(art.data.picture, { auto: ["format"] }),
alt: art.data.picture.alt || "",
raw: prismic.asImageSrc(art.data.picture, {
auto: ["format"],
rect: undefined,
w: undefined,
h: undefined,
Expand Down

0 comments on commit 232ff37

Please sign in to comment.