Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted November 23, 2024Nov 23 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.
November 23, 2024Nov 23 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. 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 Edited November 23, 2024Nov 23 by SeNioR-
November 23, 2024Nov 23 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.
November 23, 2024Nov 23 Pretty sure that PNG is the requirement for PWA, so Invision are adhering to it.
November 23, 2024Nov 23 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.
November 24, 2024Nov 24 I will tag a dev to have a look at this, but if Im correct, webp isnt supported by PWA on android
November 30, 2024Nov 30 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 😉
December 1, 2024Dec 1 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 😉