fix!: remove webp transformer

- Introduced a migration system for manifest files to support versioning and backward compatibility.
- Updated image processing to switch thumbnail format from WebP to JPEG for better compatibility.
- Added new commands for manifest migration and improved thumbnail handling in the builder.
- Enhanced documentation with architecture details and development commands.

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2025-09-13 23:11:00 +08:00
parent d3b59d9e88
commit 2df511bff7
14 changed files with 296 additions and 53 deletions

View File

@@ -14,5 +14,5 @@ const jsContent = \`export default \\\`\${html.replace(/\`/g, '\\\\\`').replace(
fs.writeFileSync('./src/index.html.ts', jsContent);
"
rm ./public/index.html
pnpm build:jpg
# pnpm build:jpg
pnpm build:next

View File

@@ -27,7 +27,6 @@ export const GET = async (
// 处理标签
const tags = photo.tags?.slice(0, 3).join(' • ') || ''
// Format EXIF information
const formatExifInfo = () => {
if (!photo.exif) return null

View File

@@ -88,7 +88,7 @@ function generateRSSFeed(
<description><![CDATA[${description}]]></description>
<pubDate>${pubDate}</pubDate>
${photo.tags.map((tag) => `<category><![CDATA[${tag}]]></category>`).join('\n ')}
<enclosure url="${photo.thumbnailUrl.startsWith('http') ? photo.thumbnailUrl : config.url + photo.thumbnailUrl}" type="image/webp" length="${photo.size}" />
<enclosure url="${photo.thumbnailUrl.startsWith('http') ? photo.thumbnailUrl : config.url + photo.thumbnailUrl}" type="image/jpeg" length="${photo.size}" />
${exifTags}
</item>`
})