bruvellu / cifonauta

Marine biology image database by CEBIMar/USP
http://cifonauta.cebimar.usp.br
GNU General Public License v3.0
21 stars 5 forks source link

Convert uploaded files to default formats #275

Closed bruvellu closed 6 months ago

bruvellu commented 7 months ago

Currently, if I upload a PNG file, it'll create the web and cover versions of the original file as a .png. That's a problem because PNG files cannot handle metadata like JPG. In addition, they are much heavier to load. Therefore, the image and video files that are uploaded should be converted to standard formats: JPG and MP4.

P.S. The original uploaded file should keep its original format. Actually, I think it's a good idea to keep it as is, not even write metadata to it.

bruvellu commented 6 months ago

Done 1b2726a9c5b6a7ec391bacef8d0e71038268c642