Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
SeNioR- Posted November 23, 2024 Posted November 23, 2024 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.
SeNioR- Posted November 23, 2024 Author Posted November 23, 2024 (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. 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, 2024 by SeNioR-
Adlago Posted November 23, 2024 Posted November 23, 2024 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.
Nathan Explosion Posted November 23, 2024 Posted November 23, 2024 Pretty sure that PNG is the requirement for PWA, so Invision are adhering to it.
Adlago Posted November 23, 2024 Posted November 23, 2024 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.
Marc Posted November 24, 2024 Posted November 24, 2024 I will tag a dev to have a look at this, but if Im correct, webp isnt supported by PWA on android
SeNioR- Posted November 30, 2024 Author Posted November 30, 2024 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 😉 EliasM and konon 2
Jim M Posted December 1, 2024 Posted December 1, 2024 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 😉 konon 1
Recommended Posts