Experimental change to image manipulation
This commit is contained in:
0
Dockerfile
Normal file → Executable file
0
Dockerfile
Normal file → Executable file
0
config/httpd.conf
Normal file → Executable file
0
config/httpd.conf
Normal file → Executable file
0
src/contact.py
Normal file → Executable file
0
src/contact.py
Normal file → Executable file
0
src/index.py
Normal file → Executable file
0
src/index.py
Normal file → Executable file
4
src/projects.py
Normal file → Executable file
4
src/projects.py
Normal file → Executable 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
0
src/projects.wsgi
Normal file → Executable file
0
src/requirements.txt
Normal file → Executable file
0
src/requirements.txt
Normal file → Executable file
0
src/static/fonts/fontawesome/css/all.min.css
vendored
Normal file → Executable file
0
src/static/fonts/fontawesome/css/all.min.css
vendored
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-brands-400.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-brands-400.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-brands-400.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-brands-400.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-regular-400.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-regular-400.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-regular-400.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-regular-400.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-solid-900.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-solid-900.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-solid-900.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-solid-900.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-v4compatibility.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-v4compatibility.ttf
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-v4compatibility.woff2
Normal file → Executable file
0
src/static/fonts/fontawesome/webfonts/fa-v4compatibility.woff2
Normal file → Executable file
0
src/static/images/njr-code.png
Normal file → Executable file
0
src/static/images/njr-code.png
Normal file → Executable file
0
src/static/images/topfuel_startline.jpg.jpeg
Normal file → Executable file
0
src/static/images/topfuel_startline.jpg.jpeg
Normal file → Executable file
0
src/static/js/filter_projects.js
Normal file → Executable file
0
src/static/js/filter_projects.js
Normal file → Executable file
0
src/static/js/update_copyright.js
Normal file → Executable file
0
src/static/js/update_copyright.js
Normal file → Executable file
0
src/static/style/desktop.css
Normal file → Executable file
0
src/static/style/desktop.css
Normal file → Executable file
0
src/static/style/mobile.css
Normal file → Executable file
0
src/static/style/mobile.css
Normal file → Executable file
0
src/templates/article.html
Normal file → Executable file
0
src/templates/article.html
Normal file → Executable file
0
src/templates/contact.html
Normal file → Executable file
0
src/templates/contact.html
Normal file → Executable file
0
src/templates/error.html
Normal file → Executable file
0
src/templates/error.html
Normal file → Executable file
0
src/templates/footer.html
Normal file → Executable file
0
src/templates/footer.html
Normal file → Executable file
0
src/templates/header.html
Normal file → Executable file
0
src/templates/header.html
Normal file → Executable file
0
src/templates/index.html
Normal file → Executable file
0
src/templates/index.html
Normal file → Executable file
0
src/templates/projects.html
Normal file → Executable file
0
src/templates/projects.html
Normal file → Executable file
Reference in New Issue
Block a user