1276 Commits

Author SHA1 Message Date
Philipp Wolfer
b1a8b2c85c PICARD-2939: Fix exception when genre filtering results in empty genre list 2024-07-13 11:14:18 +02:00
twodoorcoupe
17f5c61ae1 Add option to filter images by type 2024-07-10 11:07:31 +02:00
twodoorcoupe
c96f0b07e6 Move new option to image filters 2024-07-10 11:07:31 +02:00
twodoorcoupe
e8e3bc7188 Make filters use ImageInfo as well 2024-07-10 11:07:31 +02:00
twodoorcoupe
d0670b32bb Add scale to width and scale to height resize modes 2024-07-01 10:28:53 +02:00
twodoorcoupe
6aa6317083 Improve image resizing options UI 2024-06-28 11:10:22 +02:00
twodoorcoupe
2357b2cdaa Add explicit method for getting qimage to ProcessingImage 2024-06-28 09:15:31 +02:00
twodoorcoupe
1be7fd92d2 Add option to save images in a different format 2024-06-26 10:57:31 +02:00
Philipp Wolfer
dbe1254a2f PICARD-2935: apply genre filters and threshold before selecting minimal usage 2024-06-25 17:09:28 +02:00
twodoorcoupe
c6ff9caa5a Add option to stretch or crop 2024-06-25 10:51:40 +02:00
twodoorcoupe
9f5184a48a Add unit tests for new image resizing options 2024-06-25 10:51:40 +02:00
twodoorcoupe
6ff4b9ac4a Add more options to image resizing 2024-06-25 10:51:40 +02:00
Philipp Wolfer
efdd628016 Fixed coverart processing test cases 2024-06-24 19:08:11 +02:00
twodoorcoupe
a127c6098d Hide unneccessary columns in artwork infodialog and update unit tests 2024-06-17 12:28:30 +02:00
twodoorcoupe
c22fe4cd64 Add new external image to artwork infodialog 2024-06-15 11:37:21 +02:00
Philipp Wolfer
9d6434cad7 Merge pull request #2510 from twodoorcoupe/image_processing
PICARD-1241: Add option to resize images above a given maximum size
2024-06-15 09:23:10 +02:00
twodoorcoupe
a9797f828c Apply stylistic fixes 2024-06-14 12:33:47 +02:00
twodoorcoupe
cef3512bae Improve image processors chain 2024-06-13 21:12:40 +02:00
Laurent Monin
8ee7759589 Drop PluginPriority in favor of a simple integer and add tests
- Only default value was used in the code
- having an enum for that is rather limiting its use
- add tests for PluginFunctions class
2024-06-11 16:13:57 +02:00
twodoorcoupe
e18ef5a4ac Compress image only once processing is finished 2024-06-11 11:24:27 +02:00
twodoorcoupe
35b488a4c1 Add option to resize images above a given maximum size 2024-06-07 15:07:51 +02:00
Philipp Wolfer
cc38010597 Merge pull request #2506 from twodoorcoupe/image_filtering
PICARD-2926: Add option to filter out images below a given size
2024-06-07 08:46:34 +02:00
twodoorcoupe
f08a663fb4 Refactor caa_url_fallback_list and rename filtering options 2024-06-04 15:59:39 +02:00
twodoorcoupe
14d1337ec1 Allow Cover Art Archive provider to avoid downloading images too small 2024-06-04 11:23:46 +02:00
Philipp Wolfer
b2861cdeb6 Renamed File.parent to File.parent_item
This avoids hiding QObject.parent()
2024-06-03 08:27:14 +02:00
Philipp Wolfer
321637b6d6 Merged DataObj class with MetadataItem class 2024-06-03 08:27:13 +02:00
twodoorcoupe
c1880ce5e8 Add a way for providers to filter out images with only their metadata 2024-05-31 10:42:08 +02:00
twodoorcoupe
49f1dabd57 Add option to filter out images below a given size 2024-05-30 11:37:09 +02:00
Laurent Monin
39f586fa47 No need to inherit object explicitly 2024-05-28 14:24:29 +02:00
Laurent Monin
9548b75293 PicardFileNamingScript -> FileNamingScriptInfo 2024-05-27 12:06:17 +02:00
Laurent Monin
d9e89bf5a9 PicardScript -> ScriptSerializer 2024-05-27 12:03:04 +02:00
Laurent Monin
929214b3f7 FileNamingScript -> PicardFileNamingScript 2024-05-27 11:59:07 +02:00
Laurent Monin
4fc43af380 ScriptImportError -> PicardScriptFromFileError 2024-05-27 11:59:07 +02:00
Laurent Monin
27a6caac1d Merge pull request #2491 from zas/ignoreupdatescontext
Improve IgnoreUpdatesContext and use it for MainWindow sorting
2024-05-26 11:05:36 +02:00
Laurent Monin
5f21a6b5b9 Merge pull request #2488 from zas/image_list_cleanup
Image list cleanup
2024-05-26 11:05:16 +02:00
Laurent Monin
2835732962 match -> match_: match is a statement in Python 3.10+
It doesn't really conflict with variable name but it confuses syntax highlighters (if they are Python 3.10+ aware ofc)
2024-05-25 12:21:31 +02:00
Laurent Monin
abfdbb3ac6 IgnoreUpdatesContext: add on_last_exit and matching tests 2024-05-24 13:46:46 +02:00
Laurent Monin
ef14f46744 IgnoreUpdatesContext: add on_first_enter and matching tests 2024-05-24 13:46:45 +02:00
Laurent Monin
5e499e5dcd Test nested on_exit/on_enter 2024-05-24 13:46:45 +02:00
Laurent Monin
c24c9133e9 IgnoreUpdatesContext: add on_enter and matching test 2024-05-24 13:46:45 +02:00
Laurent Monin
b60d98febe IgnoreUpdatesContext: onexit -> on_exit 2024-05-24 13:46:45 +02:00
Laurent Monin
d46d4bb08a remove_metadata_images() -> remove_metadata_images_from_children()
Not perfect, but it used the same scheme as other methods in this group at least
2024-05-23 16:08:03 +02:00
Laurent Monin
75bfb1c274 add_metadata_images() -> add_metadata_images_from_children()
It does what it says.
2024-05-23 16:05:55 +02:00
Laurent Monin
8ca7f2cd21 Also test return values 2024-05-23 15:58:37 +02:00
Laurent Monin
df00e4522d Make remove_metadata_images() returns a boolean indicating changes like similar methods 2024-05-23 15:44:30 +02:00
Laurent Monin
8a184d0ff0 metadataitem_update_metadata_images() -> update_metadata_images_from_children() 2024-05-23 10:05:22 +02:00
Laurent Monin
1c75c82eea Move update_metadata_images() from imagelist to MetadataItem.metadataitem_update_metadata_images()
The long name is to avoid conflicts with existing update_metadata_images() in Album/Cluster
2024-05-23 10:05:22 +02:00
Laurent Monin
df8fa5f330 Move add_metadata_images() to MetadataItem 2024-05-23 10:05:22 +02:00
Laurent Monin
6db8ae5382 Move remove_metadata_images() from imagelist to MetadataItem
- it doesn't belong here anyway
- it depends on an object passed as obj -> self
- transitional: local imports
2024-05-23 10:05:22 +02:00
Laurent Monin
ad2753cacc Make CoverArtImage sortable + matching tests 2024-05-20 18:30:20 +02:00