Skip to content

Commit ae4efb6

Browse files
Reduce exec image quality
1 parent 36924c6 commit ae4efb6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

components/team/ExecCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const ExecCard = ({ data, colour }: ExecCardProps) => {
2626
<Image
2727
alt={name}
2828
src={image}
29-
sizes="(max-width: 767px) 100vw, 33vw"
30-
quality="0.5"
29+
sizes="(max-width: 767px) 100vw, 33vw" // 1 column -> 3 at md breakpoint (768px)
30+
quality="40" // 0 to 100, default 75
3131
className={styles["card-img-top"]}
3232
/>
3333
</div>

next.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ const nextConfig = {
99
sassOptions: {
1010
includePaths: [path.join(__dirname, "styles")],
1111
},
12-
images: {
13-
// Not a permanent solution - from ChatGPT, trying to address images not loading
14-
// see: https://nextjs.org/docs/pages/api-reference/components/image#devicesizes
15-
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
16-
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
17-
},
12+
// images: {
13+
// // Not a permanent solution - from ChatGPT, trying to address images not loading
14+
// // see: https://nextjs.org/docs/pages/api-reference/components/image#devicesizes
15+
// deviceSizes: [640, 750, 828, 1080, 1200, 1920],
16+
// imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
17+
// },
1818
};
1919

2020
module.exports = nextConfig;

0 commit comments

Comments
 (0)