feat: revert all the resizing stuff

This commit is contained in:
Oskar Manhart
2024-08-05 12:02:43 +02:00
parent 9955e348a0
commit c53a516887
3 changed files with 2 additions and 8 deletions

View File

@@ -26,8 +26,6 @@ import os
import mimetypes
from flask import Flask
from flask_image_resizer import Images
from .MyLoginManager import MyLoginManager
from flask_principal import Principal
@@ -125,9 +123,6 @@ def create_app():
config_sql.load_configuration(ub.session, encrypt_key)
config.init_config(ub.session, encrypt_key, cli_param)
# Initialize Flask-Image-Resizer
Images(app)
if error:
log.error(error)

View File

@@ -4,7 +4,7 @@
{% set srcset = book|get_cover_srcset %}
<img
srcset="{{ srcset }}"
src="{{ resized_img_src(url_for('web.get_cover', book_id=book.id, resolution='og', c=book|last_modified), format='webp') }}"
src="{{ url_for('web.get_cover', book_id=book.id, resolution='og', c=book|last_modified) }}"
alt="{{ image_alt }}"
loading="lazy"
/>
@@ -15,7 +15,7 @@
{% set srcset = series|get_series_srcset %}
<img
srcset="{{ srcset }}"
src="{{ resized_img_src(url_for('web.get_series_cover', series_id=series.id, resolution='og', c='day'|cache_timestamp), format='webp') }}"
src="{{ url_for('web.get_series_cover', series_id=series.id, resolution='og', c='day'|cache_timestamp) }}"
alt="{{ book_title }}"
loading="lazy"
/>

View File

@@ -20,4 +20,3 @@ regex>=2022.3.2,<2024.6.25
bleach>=6.0.0,<6.2.0
python-magic>=0.4.27,<0.5.0
flask-httpAuth>=4.4.0,<5.0.0
Flask-Image-Resizer==3.0.6