﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32084	Can't upload PNG to ImageField	terminator14	nobody	"I have an image field like this:

{{{
logo_help_text = ""Company Logo""
logo = models.ImageField(upload_to='logos/', blank=True, null=True, help_text=logo_help_text)
}}}

I can upload lots of different images, in Django Admin to this field without issue. The particular image I was trying to upload had no problems being uploaded, but the image contained a logo with dark letters, and my website background color was dark, so it looked bad. All I did was use Gimp 2.10.4 (MacOS) to change the color of the company name text in the logo to a lighter color, and export the PNG.

According to MacOS' 'file' tool, both the source logo, and the resulting logo are identified exactly the same:

{{{
test.png: PNG image data, 1280 x 403, 8-bit/color RGBA, non-interlaced
}}}


For some reason, when I try to upload the resulting PNG, Django admin tells me ""Upload a valid image. The file you uploaded was either not an image or a corrupted image."".

Image file that can't be uploaded attached."	Bug	closed	Uncategorized	2.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
