You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a regression in Grav 1.7.3 from Grav 1.6.31 while doing HTML diff of our website. We have a template where we use the image format method to replace several PNG to JPG. However, it remains in PNG in Grav 1.7.3. I hope this is not a repost.
Here is the minimal steps to reproduce the problem :
Get a clean install of Grav core 1.7.3
Modify user/themes/quark/templates/default.html.twig with the following content:
I found a regression in Grav 1.7.3 from Grav 1.6.31 while doing HTML diff of our website. We have a template where we use the image format method to replace several PNG to JPG. However, it remains in PNG in Grav 1.7.3. I hope this is not a repost.
Here is the minimal steps to reproduce the problem :
Add the included PNG image inside the following folder : user/pages/01.home/
Load the main page.
Actual result in Grav 1.7.3, the image is still a PNG (the transparency is still there):
Expected result as in Grav 1.6.31, the image becomes JPG :
The problem is in ImageMediaTrait::saveImage. The format is overridden with the following code :
I think the fix would be to verify the format is actually set to guess before getting the file’s extension :
In that case, if we set the format prior hand, our requested format would not be overridden.
Thank you for your time,
François
The text was updated successfully, but these errors were encountered: