astro-accelerator 7.1.24 → 7.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "7.1.24",
2
+ "version": "7.1.25",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -98,4 +98,4 @@
98
98
  "zod@<=3.22.2": ">=3.22.3"
99
99
  }
100
100
  }
101
- }
101
+ }
@@ -819,6 +819,7 @@ table {
819
819
  .author-page>img {
820
820
  align-self: self-start;
821
821
  width: 100%;
822
+ height: auto;
822
823
 
823
824
  @media (max-width: 860px) {
824
825
  display: block;
@@ -159,17 +159,18 @@ for (const file of filesToProcess) {
159
159
  await createDestinationFolder(resizeDestination);
160
160
 
161
161
  const metadata = await sharp(source).metadata();
162
+ const avifQuality = 80;
162
163
 
163
164
  if (metadata.width > size[key]) {
164
165
  // Only resize if the image is larger than the target size
165
166
  sharp(source)
166
167
  .resize(size[key], null)
167
- .avif({ quality: 90 })
168
+ .avif({ quality: avifQuality })
168
169
  .toFile(resizeDestination + '.avif');
169
170
  } else {
170
171
  // Don't resize as it's smaller than target size
171
172
  sharp(source)
172
- .avif({ quality: 90 })
173
+ .avif({ quality: avifQuality })
173
174
  .toFile(resizeDestination + '.avif');
174
175
  }
175
176
  }
File without changes