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
However, when I input an image named sample.png, the resulting conversion file is named sample.thumbnail.png instead of sample.thumbnail.webp in the conversions directory. Despite the file extension being PNG, I have confirmed that the binary content of the converted image is indeed in WebP format.
Then I looked into the source code and found that the extension for the image conversion is always taken from the original media's extension, resulting in the incorrect file extension.
Is this the expected behavior? If not, I think the correct way to get conversion file names should be something like the following:
Hi, I'm having trouble converting the image format.
I have a conversion that converts images to WebP format. Here is my config file:
However, when I input an image named
sample.png
, the resulting conversion file is namedsample.thumbnail.png
instead ofsample.thumbnail.webp
in the conversions directory. Despite the file extension being PNG, I have confirmed that the binary content of the converted image is indeed in WebP format.Then I looked into the source code and found that the extension for the image conversion is always taken from the original media's extension, resulting in the incorrect file extension.
Is this the expected behavior? If not, I think the correct way to get conversion file names should be something like the following:
Let me know what you think and looking forward to hearing from you!
Versions:
PHP 8.3
Nova 4.32.9
Nova Media Hub: 1.7.1
The text was updated successfully, but these errors were encountered: