mirror of
https://github.com/Afilmory/afilmory
synced 2026-04-24 23:05:05 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>`
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user