fix non-resized images

This commit is contained in:
Bryan Gerlach
2024-09-26 11:28:54 -05:00
parent 13a2cf13a3
commit 04558547ac
2 changed files with 2 additions and 3 deletions

View File

@@ -28,8 +28,8 @@ class GenerateForm(forms.Form):
urlLink = forms.CharField(label="Custom URL for links", required=False)
#Visual
iconfile = forms.FileField(label="Custom App Icon (in .png format)", required=False)
logofile = forms.FileField(label="Custom App Logo (in .png format)", required=False)
iconfile = forms.FileField(label="Custom App Icon (in .png format)", required=False, widget=forms.FileInput(attrs={'accept': 'image/png'}))
logofile = forms.FileField(label="Custom App Logo (in .png format)", required=False, widget=forms.FileInput(attrs={'accept': 'image/png'}))
theme = forms.ChoiceField(choices=[
('light', 'Light'),
('dark', 'Dark'),

View File

@@ -226,7 +226,6 @@ def update_github_run(request):
return HttpResponse('')
def resize_and_encode_icon(imagefile):
print(imagefile)
try:
with io.BytesIO() as image_buffer:
for chunk in imagefile.chunks():