Jump to content

Recommended Posts

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.

Posted (edited)

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-
Posted

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.

Posted
16 minutes ago, Nathan Explosion said:

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.

Posted
16 hours ago, SeNioR- said:

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 members

    • No registered users viewing this page.
×
×
  • Create New...