Replies: 5 comments
-
您好,感谢您的反馈。这是项目中的设计,要调整这个设计有一定难度,因为需要修改到底层的组件。我计划在下一个重大版本升级的NotionNext中改善它。 现状是,在react-notion-x这个项目中,(它是决定页面渲染的核心组件),youtube的封面图,被手动地替换成了清晰度、体积更小的jpg格式,相关代码 lite-youtube-embed.tsx#L44 Hello, thank you for your feedback. This is part of the project's design, and changing it poses a certain level of complexity as it requires modifications to the core components. I plan to improve this in the next major update of NotionNext. Currently, in the react-notion-x project (which is the main component determining page rendering), the YouTube thumbnail is manually replaced with a clearer and more compact jpg format for optimization purposes, relevant code lite-youtube-embed.tsx#L44. Therefore: In Notion, the YouTube thumbnail is loaded in a higher quality webp format: https://i.ytimg.com/vi_webp/z9cnzGDPBYE/maxresdefault.webp Приветствую, спасибо за ваш отзыв. Это часть дизайна проекта, и его изменение представляет определенную сложность, поскольку требует внесения изменений в базовые компоненты. Я планирую улучшить это в следующем крупном обновлении NotionNext. В настоящее время в проекте react-notion-x (являющемся основным компонентом, определяющим отображение страниц) обложка YouTube вручную заменена на более четкий и компактный формат jpg для оптимизации, ссылка на соответствующий код lite-youtube-embed.tsx#L44. Поэтому: В Notion обложка YouTube загружается в формате webp более высокого качества: https://i.ytimg.com/vi_webp/z9cnzGDPBYE/maxresdefault.webp |
Beta Was this translation helpful? Give feedback.
-
@tangly1024 Can I change (const resolution = 'hqdefault') to (const resolution = 'maxresdefault')? then the picture will be of high quality? |
Beta Was this translation helpful? Give feedback.
-
Yes, that's correct. When (const resolution = 'hqdefault') is changed to (const resolution = 'maxresdefault'), the image will become high resolution. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, I'll try. Thank you so much for your work 💪 |
Beta Was this translation helpful? Give feedback.
-
@tangly1024 Hello again, you gave me a link to another project (NotionX/react-notion-x). And I'm asking how to make high-quality previews in your project (NotionNext)? |
Beta Was this translation helpful? Give feedback.
-
你好,我需要你的帮助。为什么当我嵌入 YouTube 上的视频时,网站上的预览分辨率较低?当它出现在概念页面上时,它是高质量的 maxres 吗?我附上链接和截图
Hi, I need your help. Why when I embed a video from youtube preview on a site in low resolution hq? And when it's on the notion page, is there a high quality maxres? I attach links and screenshots
My site: https://www.vlafriday.space/time-for-habits
Notion: https://vlafriday.notion.site/7922659476794bb69ad9108bd215ddb2
My site:
![hq site](https://private-user-images.githubusercontent.com/78411322/284506649-33ce234b-08d6-426a-93dd-8152d4bdc1f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjU2NjYsIm5iZiI6MTcyNTk2NTM2NiwicGF0aCI6Ii83ODQxMTMyMi8yODQ1MDY2NDktMzNjZTIzNGItMDhkNi00MjZhLTkzZGQtODE1MmQ0YmRjMWY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDEwNDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiOTE5NDRjNmQzZTg1NTgzOTljZDRkYTQ3M2VjMDQ4ZTQzNDU4ZWFiMzQ3YjI5MTdkNjFlNzE2ZDc1ZGY4NzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.8WVP8h2E_KkOxdeyYw3jqtLnXh_g9BwNWeL1keiq8yc)
Notion:
![maxres site](https://private-user-images.githubusercontent.com/78411322/284506748-bf4e3cbf-8d22-4319-b07c-9f806f412df6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5NjU2NjYsIm5iZiI6MTcyNTk2NTM2NiwicGF0aCI6Ii83ODQxMTMyMi8yODQ1MDY3NDgtYmY0ZTNjYmYtOGQyMi00MzE5LWIwN2MtOWY4MDZmNDEyZGY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDEwNDkyNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjZThhNDI0MTMwYzgwYWM0YzI2NjcyNzhjOTJlNzgwYjUzZWE0ZGIyYzg4MGQwNjNhYjBkZTg3M2M0MzM5N2EmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c0WQC9liJsM8HHL7iw9zDf7Qp8hzormGDx1mxxPji5w)
请帮帮我
Help please
Beta Was this translation helpful? Give feedback.
All reactions