2021年10月26日火曜日

Bloggerのぼやけたサムネイルを修正できるかもしれない方法

How to fix the error:
1. Select edit HTML
2. Find "s72-c"
3. Rewrite: ('s72-c', 'w500')
My blog also had an image error and that's how I fixed it!
https://copywritingvn.blogspot.com/

Thumbnails images blur issue - Blogger Community
https://support.google.com/blogger/thread/131610601/thumbnails-images-blur-issue?hl=en

丁度タイミング良く投稿されていたので引用
まぁ s72-c というのは判っているのですが、該当のブログの修正されたソース部分

function bp_thumbnail_resize(image_url, post_title) {
image_tag = '<img class="post-thumb" src="' + image_url.replace('s72-c', 'w500') + '" alt="' + post_title.replace(/"/g, "") + '" title="' + post_title.replace(/"/g, "") + '"/>';
if (post_title != "") return image_tag;
else return ""
}

新しいサイズを決めてやるということですね
これは width で、おそらく h(height)でも指定が可能だと思います。

試してはないですが、
<b:if cond='data:post.thumbnailUrl'> を置き換える方法はこちらに載っています

s72-c Thumbnail Size And Blurry Image Problem
https://shareusyourday.blogspot.com/2019/03/s72-c-thumbnail-size-and-blurry-image-problem.html

F(uriouz)

欲しいものリスト / 優先度の高いほしいものリスト / ☕を奢る
Donate 寄付 カンパ サポート Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation.
詳細プロフィールを表示

0 comments:

スパム対策の為コメントをオフにしています。
Disqusは利用出来ます。

注: コメントを投稿できるのは、このブログのメンバーだけです。

...

Recent Posts

 
"The Android robot is reproduced or modified from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License."