Kiesel
September 9, 2024, 1:40pm
1
It seems that webp images turn for some odd reason into PNG images above a certain pixel size of the source image (9.2.8), using $image->getThumbnailURL() ?
Is that a bug or a very strange feature? Can I somehow deactivate that?
Steevb
September 10, 2024, 6:26am
2
What pixel size is giving the issue?
Kiesel
September 10, 2024, 9:14am
3
Hi Steevb
I just realized that EVERY webp image is turned into a PNG. My WebP images were only shown webp if the original size was used.
How is that possible? Can concrete5 not deal with webP images?
Steevb
September 10, 2024, 11:01am
4
I cannot replicate the issue, I’m using 9.3.3. Maybe update the cms?
PHP uses GDK or ImageMagick for image manipulation. Resize format may also depend on how those external tools are configured on the server.
Kiesel
September 11, 2024, 7:34am
6
Hi John
When using ImageMagick in my own implementations, it works with WebP like a charm. Is it, that 9.2.8 doesn’t yet have WebP support?
The above was just a suggestion of further things to check.
Webp on GitHub.
Looks like you will need 9.3+ for webp.
concretecms:develop
← parasek:feature/webp
opened 06:49PM - 04 Sep 23 UTC
This pull request adds webp support for:
- creating image using image helper,…
- creating image using Concrete Thumbnails system.
Right now, if webp image is used, thumbnail system and image helper will create .png as fallback.
This is bad for scoring on [PageSpeed Insights](https://pagespeed.web.dev/), since png files are not compressed very well.
After this change you will have wider selection of image creating strategies (Dashboard > System & Settings > Files > Thumbnails > Thumbnail Options):
- Always create WEBP thumbnails (smallest file size, transparency is kept)
- Always create PNG thumbnails (slightly bigger file size, transparency is kept)
- Always create JPEG thumbnails (slightly smaller file size, transparency is not available)
- Automatic: keep source format if it is supported, otherwise create a WEBP thumbnail
I have decided to replace png fallback with webp, since webp is now widely supported (https://caniuse.com/webp).
I can rollback it to png though, if support of those ancient browsers is still required.
Not like that matter much, since this fallback was used only because webp was partially supported by core.
I have set default webp quality to 80 (Dashboard > System & Settings > Files > Image Options).
This PR is related to https://github.com/concretecms/concretecms/issues/10291
opened 12:47AM - 14 Dec 23 UTC
closed 08:42PM - 18 Jan 24 UTC
Type:Enhancement
### Description
It would be nice to include support for creating thumbnails wit… h webp for servers that run imagick. The current implementation just turns .webp into extremely large png files. Correct me if I am wrong...
![Screenshot 2023-12-13 at 7 46 46 PM](https://github.com/concretecms/concretecms/assets/91479716/ef05f1ae-36fb-4159-8db5-720ec55e2eef)
### Example
_No response_