Phalcode / gamevault-backend

Backend for the self-hosted gaming platform for drm-free games
https://gamevau.lt
Other
165 stars 13 forks source link

Autoconvert other popular image formats to supported ones #241

Open binarygeek119 opened 8 months ago

binarygeek119 commented 8 months ago

Is your feature request related to a problem? Please describe.

image

Describe the solution you'd like use a converter to auto convert in to supported format

Describe alternatives you've considered

Additional context also convert to other formats would be good too. (png, tiff, jpg, gif, etc)

Alfagun74 commented 8 months ago

As per https://gamevau.lt/docs/server-docs/images/#supported-image-types

.bmp, .jpg, .jpeg, .png, .gif, .ico, .tif, .tiff are already supported.

So according to https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#common_image_file_types

We cover almost any of the common image formats except: .avif, .apng, .webp, .svg

Nice Idea, Ill see if i can convert these into a suitable format.

Alfagun74 commented 7 months ago

The image preview may cause problems for these formats. We need to check if there are any issues.

Alfagun74 commented 5 months ago

We probably need to convert the image on the client-side before uploading for the preview instead.