feat: revert all the resizing stuff
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user