Add more options to image resizing

This commit is contained in:
twodoorcoupe
2024-06-19 19:23:09 +02:00
parent efdd628016
commit 6ff4b9ac4a
7 changed files with 259 additions and 109 deletions

View File

@@ -80,12 +80,18 @@ class ImageProcessorsTest(PicardTestCase):
super().setUp()
self.settings = {
'enabled_plugins': [],
'resize_images_saved_to_tags': True,
'cover_tags_maximum_width': 500,
'cover_tags_maximum_height': 500,
'resize_images_saved_to_file': True,
'cover_file_maximum_width': 750,
'cover_file_maximum_height': 750,
'cover_tags_scale_up': False,
'cover_tags_scale_down': True,
'cover_tags_resize_use_width': True,
'cover_tags_resize_target_width': 500,
'cover_tags_resize_use_height': True,
'cover_tags_resize_target_height': 500,
'cover_file_scale_up': False,
'cover_file_scale_down': True,
'cover_file_resize_use_width': True,
'cover_file_resize_target_width': 750,
'cover_file_resize_use_height': True,
'cover_file_resize_target_height': 750,
'save_images_to_tags': True,
'save_images_to_files': True,
}