Skip to content

Commit

Permalink
Reduce exec image quality
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpiontornado committed Jun 22, 2024
1 parent 36924c6 commit ae4efb6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions components/team/ExecCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const ExecCard = ({ data, colour }: ExecCardProps) => {
<Image
alt={name}
src={image}
sizes="(max-width: 767px) 100vw, 33vw"
quality="0.5"
sizes="(max-width: 767px) 100vw, 33vw" // 1 column -> 3 at md breakpoint (768px)
quality="40" // 0 to 100, default 75
className={styles["card-img-top"]}
/>
</div>
Expand Down
12 changes: 6 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ const nextConfig = {
sassOptions: {
includePaths: [path.join(__dirname, "styles")],
},
images: {
// Not a permanent solution - from ChatGPT, trying to address images not loading
// see: https://nextjs.org/docs/pages/api-reference/components/image#devicesizes
deviceSizes: [640, 750, 828, 1080, 1200, 1920],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
},
// images: {
// // Not a permanent solution - from ChatGPT, trying to address images not loading
// // see: https://nextjs.org/docs/pages/api-reference/components/image#devicesizes
// deviceSizes: [640, 750, 828, 1080, 1200, 1920],
// imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
// },
};

module.exports = nextConfig;

0 comments on commit ae4efb6

Please sign in to comment.