rejetto / hfs

HFS is a web file server to run on your computer. Share folders or even a single file thanks to the virtual file system.
GNU General Public License v3.0
2.13k stars 209 forks source link

error middleware plugin thumbnails: Input buffer contains unsupported image format #569

Closed W-i-n-7 closed 5 months ago

W-i-n-7 commented 5 months ago

unnamed my console is full of this

W-i-n-7 commented 5 months ago

21.4.2024 22.33.08 error Error: bad content-type header, no multipart boundary 21.4.2024 22.33.07 error Error: bad content-type header, no multipart boundary

22.4.2024 22.32.51 log error middleware plugin thumbnails: pngload_buffer: libspng read error

21.4.2024 23.23.53 log error middleware plugin thumbnails: Premature close

W-i-n-7 commented 5 months ago

other errors i found in the log

rejetto commented 5 months ago

next time report the bug on the plugin's page please, to not be "counted" as bug of hfs. it's likely to be a file that's not working for some reason, but i need the file to work on it.

W-i-n-7 commented 5 months ago

next time report the bug on the plugin's page please, to not be "counted" as bug of hfs. it's likely to be a file that's not working for some reason, but i need the file to work on it.

oh okay as for the file, i now noticed that there was 2 wallpapers with no thumbnail and found out this was because a bmp file was renamed to be a png instead maybe the plugin could look for the file format inside the file and not with the extension? though this may be a big ask for example in Hex 42 4D is for a .bmp file

rejetto commented 5 months ago

i don't think i will work for such a feature in the plugin, but if someone wants to work on it, feel free. can you send me one file causing the problem? i may still devise a better behavior.

W-i-n-7 commented 5 months ago

i don't think i will work for such a feature in the plugin, but if someone wants to work on it, feel free. can you send me one file causing the problem? i may still devise a better behavior.

thats fine i wasnt expecting it

Windows7 this file is one (bmp renamed to png)

W-i-n-7 commented 5 months ago

oh, it embedded here downloadable Windows7.zip

W-i-n-7 commented 5 months ago

@rejetto maybe atleast have it so that the plugin doesnt cause these errors in the console?

rejetto commented 5 months ago

that's what i meant

rejetto commented 5 months ago

ok, now you can update the plugin. thanks for reporting