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.![image](https://github.com/outl1ne/nova-media-hub/assets/77000006/0fc89e8d-9e65-412b-a513-25b53c6a70bd)
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