简体   繁体   English

Safari 收藏夹图标显示为透明图像,即使它们不是

[英]Safari favorites icons are displayed as transparent images even though they're not

I was trying to change a Safari favorites icon that gets displayed when opening a new tab.我试图更改打开新标签时显示的 Safari 收藏夹图标。 I changed some icons by changing the default images in the "/Users/MyUsername/Library/Safari/Touch Icons Cache/" Images folder.我通过更改“/Users/MyUsername/Library/Safari/Touch Icons Cache/”图像文件夹中的默认图像更改了一些图标。 Most of the replaced icons are displayed perfectly but some appeared (I think) to be identified by Safari as a transparent background icon and proceeds to display it as one—even though it's not.大多数被替换的图标都完美显示,但有些出现(我认为)被 Safari 识别为透明背景图标并继续将其显示为一个,即使它不是。

This is the icon that Safari displayed correctly这是Safari正确显示的图标

This is the icon that Safari displayed incorrectly这是Safari显示不正确的图标

Any idea how I can get Safari to display it as it should?知道如何让 Safari 按原样显示吗?

I've followed the criteria of the icons such as having a.png extension and being 144x144.我遵循了图标的标准,例如具有 .png 扩展名和 144x144。

This is the info for the image used for the CNN icon这是用于 CNN 图标的图像的信息

This is the info for the image used for the Triplebyte icon这是用于 Triplebyte 图标的图像信息

What I've tried:我试过的:

  1. Reducing the size of the image减小图像的大小
  2. Changing the color profile更改颜色配置文件

Is this issue actually related to the website I'm trying to get my icon for or an issue with the image file?这个问题实际上与我尝试获取图标的网站或图像文件的问题有关吗?

I tried using another image that was used as an icon by another site.我尝试使用另一个站点用作图标的另一个图像。 Safari also displayed it as a transparent background image. Safari 也将其显示为透明背景图像。 It turned out that the image file wasn't the issue.事实证明,图像文件不是问题。

The solution to this is to just use an image that actually has a transparent background.对此的解决方案是仅使用实际上具有透明背景的图像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM