Jump to content

Featured Replies

Posted

Hi IPS Team.

I'm not reporting this as a bug, but I'm curious about the reason why Web App icons are automatically converted to PNG. Is there a reason for this?

The same thing happens in IC4.

for me is webp:

webicons.thumb.png.dc0ad706a2f2acf692fceb8a07e0dee4.png

  • Author

Yes, but if you look at the page source you will see that they have all been converted to PNG even though it shows Webp here.

<link rel="icon" sizes="36x36" href="//media.invisioncic.com/a319035/monthly_2021_11/android-chrome-36x36.png?v=1709133612">
<link rel="icon" sizes="48x48" href="//media.invisioncic.com/a319035/monthly_2021_11/android-chrome-48x48.png?v=1709133612">
<link rel="icon" sizes="72x72" href="//media.invisioncic.com/a319035/monthly_2021_11/android-chrome-72x72.png?v=1709133612">

The problem here is that when you send an icon in webP, it only has the name changed from webP to PNG, but the encoding remains unchanged.

When you try to open the file, for example in Photoshop, an error is displayed that this file is not PNG, even though it is in this format.

ccc.png.d210b2e36209a9873776ae779acd6f0d.png

As you can see, even though the file has been changed to PNG, it still has the encoding from the original file, i.e. WebP.

WEBPVP8

xx.png.2dcc36ebffb30cf4d192144c5cd85045.png

Edited by SeNioR-

These images (in link rel=...) are created and saved by manifest.webmanifest.
Probably there, in some php is set :"type": "image\/png"
Maybe you should create a bug report.

Pretty sure that PNG is the requirement for PWA, so Invision are adhering to it.

 

Pretty sure that PNG is the requirement for PWA, so Invision are adhering to it.

It is clearly described here, for performance it is mandatory to define an image type (and it does not have to be png), but to have a defined type.
Since different image formats are allowed for icons in ACP, it follows that the defined image type in the manifest must follow the selected icon format in the respective user installation.

I will tag a dev to have a look at this, but if Im correct, webp isnt supported by PWA on android

  • Author

Any update? 

I uploaded a GIF as an icon and the image was converted to PNG. The funny thing is that the animation still works 😉

1x.png.afb6630e37487a935719014d0cb180c4.png

 

Any update? 

I uploaded a GIF as an icon and the image was converted to PNG. The funny thing is that the animation still works 😉

1x.png.afb6630e37487a935719014d0cb180c4.png

Harry Potter And The Philosophers Stone GIF

Recently Browsing 0

  • No registered users viewing this page.