.png file: UploadAvatar: DecodeConfig: image: unknown format #5620

Closed
opened 2025-11-02 06:31:09 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @turbopixel on GitHub (Jun 24, 2020).

Description

I just download a png file [1] from iconfinder.com and try to upload the image as my profile picture and organisation picture. At both places I get the error message: UploadAvatar: DecodeConfig: image: unknown format.

I can reproduce the problem on gitea.com and also on my self-hosting instance.

[1] https://www.iconfinder.com/icons/998682/browser_internet_icon

Screenshots

  1. download file
    grafik

  2. select file
    grafik

  3. upload file
    grafik

windows can open it
grafik

Originally created by @turbopixel on GitHub (Jun 24, 2020). - Gitea version (or commit ref): https://gitea.com/user/settings - Database (use `[x]`): - [X] Not relevant - Can you reproduce the bug at - [x] Yes on: https://gitea.com ## Description I just download a png file [1] from iconfinder.com and try to upload the image as my profile picture and organisation picture. At both places I get the error message: `UploadAvatar: DecodeConfig: image: unknown format`. I can reproduce the problem on gitea.com and also on my self-hosting instance. [1] https://www.iconfinder.com/icons/998682/browser_internet_icon ## Screenshots 1. download file ![grafik](https://user-images.githubusercontent.com/15839724/85518478-90928c80-b600-11ea-9fc2-2df664f16f5e.png) 2. select file ![grafik](https://user-images.githubusercontent.com/15839724/85518380-76f14500-b600-11ea-8c62-bba274526855.png) 3. upload file ![grafik](https://user-images.githubusercontent.com/15839724/85518397-7a84cc00-b600-11ea-8801-6362438e7e8b.png) windows can open it ![grafik](https://user-images.githubusercontent.com/15839724/85518910-10205b80-b601-11ea-9a1c-b6f2ad2ed8f2.png)
Author
Owner

@turbopixel commented on GitHub (Jun 24, 2020):

Oh great.. When I select the 128x128px size from iconfinder, I can upload the image.
I think its a image size problem.

@turbopixel commented on GitHub (Jun 24, 2020): Oh great.. When I select the **128x128px** size from iconfinder, I can upload the image. I think its a image size problem.
Author
Owner

@netthier commented on GitHub (Jul 3, 2020):

Cannot reproduce in 1.13.0+dev-266-gcd994f635 (docker container).
I tried setting both the 256px and the 512px icon as a profile picture, both of which worked without a problem

@netthier commented on GitHub (Jul 3, 2020): Cannot reproduce in 1.13.0+dev-266-gcd994f635 (docker container). I tried setting both the 256px and the 512px icon as a profile picture, both of which worked without a problem ![](https://i.imgur.com/dxR7xo9.png) ![](https://i.imgur.com/3C7Hzs4.png)
Author
Owner

@mrsdizzie commented on GitHub (Jul 3, 2020):

Same here can't reproduce -- perhaps there was just an issue when you downloaded the image originally and it was corrupt/incomplete?

@mrsdizzie commented on GitHub (Jul 3, 2020): Same here can't reproduce -- perhaps there was just an issue when you downloaded the image originally and it was corrupt/incomplete?
Author
Owner

@turbopixel commented on GitHub (Jul 4, 2020):

It is possible that the file is broken. Only the 256px version cannot be uploaded.
From home I can upload the file. Maybe the problem is my pc at work.

Thanks, I guess it's a local problem.

@turbopixel commented on GitHub (Jul 4, 2020): It is possible that the file is broken. Only the 256px version cannot be uploaded. From home I can upload the file. Maybe the problem is my pc at work. Thanks, I guess it's a local problem.
Author
Owner

@bobemoe commented on GitHub (Nov 10, 2020):

Just experienced this too. Turns out the .png was actually a RIFF and not a PNG. The website had mislabelled it but the browsers still display it ok. Guess Gitea doesn't support RIFF. I converted to PNG and all is ok :)

@bobemoe commented on GitHub (Nov 10, 2020): Just experienced this too. Turns out the .png was actually a [RIFF](https://en.wikipedia.org/wiki/Resource_Interchange_File_Format) and not a PNG. The website had mislabelled it but the browsers still display it ok. Guess Gitea doesn't support RIFF. I converted to PNG and all is ok :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5620