Experimental change to image manipulation

This commit is contained in:
2025-02-02 23:14:10 +00:00
parent 89ef938af4
commit bd1488c78a
29 changed files with 2 additions and 2 deletions

0
Dockerfile Normal file → Executable file
View File

0
config/httpd.conf Normal file → Executable file
View File

0
src/contact.py Normal file → Executable file
View File

0
src/index.py Normal file → Executable file
View File

4
src/projects.py Normal file → Executable file
View File

@@ -146,9 +146,9 @@ def image(image):
resized_img = BytesIO()
the_image.thumbnail(tuple(req_size))
the_image.save(resized_img, format='jpeg')
the_image.save(resized_img, format=the_image.format)
response = make_response(resized_img.getvalue())
response.headers.set('Content-Type', 'image/jpeg')
response.headers.set('Content-Type', f'image/{the_image.format}')
return response

0
src/projects.wsgi Normal file → Executable file
View File

0
src/requirements.txt Normal file → Executable file
View File

0
src/static/fonts/fontawesome/css/all.min.css vendored Normal file → Executable file
View File

View File

View File

View File

View File

0
src/static/fonts/fontawesome/webfonts/fa-solid-900.ttf Normal file → Executable file
View File

View File

View File

View File

0
src/static/images/njr-code.png Normal file → Executable file
View File

0
src/static/images/topfuel_startline.jpg.jpeg Normal file → Executable file
View File

0
src/static/js/filter_projects.js Normal file → Executable file
View File

0
src/static/js/update_copyright.js Normal file → Executable file
View File

0
src/static/style/desktop.css Normal file → Executable file
View File

0
src/static/style/mobile.css Normal file → Executable file
View File

0
src/templates/article.html Normal file → Executable file
View File

0
src/templates/contact.html Normal file → Executable file
View File

0
src/templates/error.html Normal file → Executable file
View File

0
src/templates/footer.html Normal file → Executable file
View File

0
src/templates/header.html Normal file → Executable file
View File

0
src/templates/index.html Normal file → Executable file
View File

0
src/templates/projects.html Normal file → Executable file
View File