fix: optimize images
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
Benno Tielen 2026-06-24 15:09:22 +02:00
parent afc6816451
commit e63a5c2fb6
10 changed files with 11 additions and 11 deletions

View file

@ -38,7 +38,7 @@ export default async function MagazinePage() {
width={magazine_cover.width || 500}
height={magazine_cover.height || 600}
alt={'Pfarreimagazin Ausgabe'}
unoptimized={true}
unoptimized={false}
/>
</a>
}

View file

@ -31,7 +31,7 @@ export default async function DonationPage({ params }: { params: Promise<{id: st
<Row alignItems={"center"}>
<Col>
{ typeof image == "object" && image.url &&
<Image src={image.url} width={300} height={300} alt="" unoptimized={true}/>
<Image src={image.url} width={300} height={300} alt="" unoptimized={false}/>
}
</Col>
<Col>

View file

@ -25,7 +25,7 @@ export const BlogExcerpt = ({id, title, excerpt, photo}: BlogExcerptProps) => {
height={photo.height}
alt={"Blogbild"}
className={styles.image}
unoptimized={true}
unoptimized={false}
/>
</Link>
}

View file

@ -23,7 +23,7 @@ export const ContactPerson2 = ({contact, photo}: ContactPerson2Props) => {
className={styles.photo}
src={photo}
alt={contact.name}
unoptimized={true}
unoptimized={false}
/>
}
<div>

View file

@ -38,7 +38,7 @@ export const ContactPersonCard = ({
alt={contact.name}
width={200}
height={200}
unoptimized={true}
unoptimized={false}
/>
) : (
<div className={styles.photoPlaceholder} />

View file

@ -55,7 +55,7 @@ export const DonationAppeal = () => {
{ data.map(appeal =>
<div key={appeal.id} className={styles.col}>
<h3>{appeal.title}</h3>
<Image src={appeal.image} alt={""} width={200} height={200} unoptimized={true} />
<Image src={appeal.image} alt={""} width={200} height={200} unoptimized={false} />
<p>
{appeal.text}

View file

@ -54,7 +54,7 @@ export const jsxConverters: JSXConvertersFunction = ({ defaultConverters }) => (
width={photo.width}
height={photo.height}
alt={node.value.alt}
unoptimized={true}
unoptimized={false}
/>
)
},

View file

@ -27,7 +27,7 @@ export const PageHeader = ({ title, description, image, alt }: PageHeaderProps)
<Container>
{image && typeof image === 'string' ? (
<Image
unoptimized={true}
unoptimized={false}
className={styles.image}
src={image}
width={1100}
@ -36,7 +36,7 @@ export const PageHeader = ({ title, description, image, alt }: PageHeaderProps)
/>
) : image ? (
<Image
unoptimized={true}
unoptimized={false}
className={styles.image}
src={image}
alt={alt || ''}

View file

@ -43,7 +43,7 @@ export const PublicationAndNewsletterView = ({
width={magazineCover.width || 500}
height={magazineCover.height || 600}
alt={'Pfarreimagazin Ausgabe'}
unoptimized={true}
unoptimized={false}
/>
</a>
)}

View file

@ -115,7 +115,7 @@ export function EventPage(
src={photo}
className={styles.photo}
alt={"Veranstaltungsbild"}
unoptimized={true}
unoptimized={false}
/>
}