twodoorcoupe
3d2cf7fc18
Improve processing constants and resize mode combobox
2024-07-02 13:11:07 +02:00
twodoorcoupe
aa49786785
Make spinboxes show nothing when disabled
2024-07-01 11:54:30 +02:00
twodoorcoupe
d0670b32bb
Add scale to width and scale to height resize modes
2024-07-01 10:28:53 +02:00
Bob Swift
337e80e3b7
Move processing mode and image type options lists to defaults file:
...
- Create new `picard/const/cover_processing.py` file to hold new
`COVER_RESIZE_MODES` and `COVER_CONVERTING_FORMATS` constants.
- Create `COVER_RESIZE_MODES` constant list of modes to display in the
combo box. Each entry is a named tuple comprised of 'mode', 'title' and
'tooltip' to keep all information together for ease of maintenance.
- Create `COVER_CONVERTING_FORMATS` constant list of allowed formats to
display in the combo box.
- Dynamically populate the resize modes and image formats combo boxes
from the `COVER_RESIZE_MODES` and `COVER_CONVERTING_FORMATS` constants
to facilitate changes in the options or display order without having to
recompile the UI file.
- Fix i18n `N_()` function missing on some tooltips.
- Add missing copyright notice for Giorgio Fontanive in
`picard/const/defaults.py`
- Minor formatting changes.
2024-06-28 21:10:02 -06: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
Vaclovas Intas
5a8031d2a2
Translated using Weblate (Lithuanian)
...
Currently translated at 71.6% (866 of 1208 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/lt/
Translation: Picard/App
2024-06-27 20:42:30 +00:00
salo.rock
5cda5800dc
Translated using Weblate (Italian)
...
Currently translated at 100.0% (1208 of 1208 strings)
Co-authored-by: salo.rock <salo.rock@users.noreply.translations.metabrainz.org >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/it/
Translation: Picard/App
2024-06-27 20:42:30 +00:00
Philipp Wolfer
10b8d7a53d
Merge branch '2.x'
...
# Conflicts:
# .github/workflows/package-pypi.yml
# .github/workflows/package.yml
# .github/workflows/run-tests.yml
# picard/__init__.py
# picard/cluster.py
# picard/coverart/image.py
# picard/dataobj.py
# picard/ui/itemviews.py
# picard/ui/metadatabox.py
# picard/ui/searchdialog/track.py
# picard/util/tags.py
# picard/webservice/ratecontrol.py
# po/appstream/it.po
# po/appstream/ru.po
# po/ar.po
# po/attributes/es.po
# po/constants/ko.po
# po/constants/lt.po
# po/constants/ru.po
# po/constants/sv.po
# po/constants/zh_Hans.po
# po/id.po
# po/it.po
# po/ko.po
# po/lt.po
# po/nb.po
# po/nl.po
# po/pl.po
# po/ru.po
# po/sk.po
# po/sl.po
# po/sq.po
# po/sv.po
# po/tr.po
# requirements-build.txt
# requirements-macos-10.12.txt
# requirements-macos-10.14.txt
# scripts/package/macos-package-app.sh
# scripts/package/win-common.ps1
2024-06-27 11:00:03 +02:00
Philipp Wolfer
d375fc1793
Prepare release 2.12
2024-06-27 08:17:48 +02:00
Laurent Monin
fed841599e
Merge pull request #2519 from twodoorcoupe/format_converting
...
PICARD-2936: Add option to convert cover art images to a different format
2024-06-26 18:57:49 +02:00
salo.rock
aa2302fa7d
Translated using Weblate (Italian)
...
Currently translated at 100.0% (17 of 17 strings)
Co-authored-by: salo.rock <salo.rock@users.noreply.translations.metabrainz.org >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/appstream/it/
Translation: Picard/AppStream
2024-06-26 14:42:30 +00:00
salo.rock
4e4ff006fc
Translated using Weblate (Italian)
...
Currently translated at 100.0% (17 of 17 strings)
Co-authored-by: salo.rock <salo.rock@users.noreply.translations.metabrainz.org >
Translate-URL: https://translations.metabrainz.org/projects/picard/2/appstream/it/
Translation: Picard/AppStream
2024-06-26 14:42:29 +00:00
Vaclovas Intas
48d5ade18f
Translated using Weblate (Lithuanian)
...
Currently translated at 71.2% (861 of 1208 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/lt/
Translation: Picard/App
2024-06-26 14:42:29 +00:00
Vaclovas Intas
466fc59d0f
Translated using Weblate (Lithuanian)
...
Currently translated at 69.9% (821 of 1174 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/2/app/lt/
Translation: Picard/App
2024-06-26 14:42:29 +00:00
twodoorcoupe
1be7fd92d2
Add option to save images in a different format
2024-06-26 10:57:31 +02:00
Laurent Monin
0653bd3305
PICARD-2919: fix download of GIF images (and maybe others)
...
Issue is the data downloaded is QtCore.QBytesArray object, and it wasn't convert to bytes.
So ensure it is converted before passing it to image detection methods.
2024-06-25 17:21:30 +02:00
Laurent Monin
b29a8f692c
PICARD-2918: avoid exception if hash isn't found in _datafiles on exit
...
A race condition is possible.
- set _datafiles[self._hash] ASAP
- log errors
- revamp code to limit the risk of race condition
- revamp delete_file() code to be more reliable in case of unexpected errors
2024-06-25 17:13:04 +02:00
Philipp Wolfer
d6d2517c8e
PICARD-2935: apply genre filters and threshold before selecting minimal usage
2024-06-25 17:10:22 +02:00
Philipp Wolfer
dbe1254a2f
PICARD-2935: apply genre filters and threshold before selecting minimal usage
2024-06-25 17:09:28 +02:00
Philipp Wolfer
e2af35caf5
Build with setuptools < 70
2024-06-25 17:00:42 +02:00
Vaclovas Intas
e73c260092
Translated using Weblate (Lithuanian)
...
Currently translated at 70.6% (853 of 1208 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/lt/
Translation: Picard/App
2024-06-25 13:42:29 +00:00
Vaclovas Intas
66375cdd38
Translated using Weblate (Lithuanian)
...
Currently translated at 69.2% (813 of 1174 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/2/app/lt/
Translation: Picard/App
2024-06-25 13:42:29 +00:00
Laurent Monin
fc71fea5f4
Merge pull request #2515 from twodoorcoupe/more_processing_options
...
Add more options to image resizing
2024-06-25 11:41:31 +02:00
twodoorcoupe
ccf716fbe1
Improve resize modes tooltips formatting
2024-06-25 11:10:52 +02:00
twodoorcoupe
762afe38d2
Fix scale factor check and improve tooltips for resize modes
2024-06-25 10:51:40 +02:00
twodoorcoupe
ccbd59324d
Add tooltips to new radio buttons
2024-06-25 10:51:40 +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
89f5dc1243
Refactor ResizeImage and improve ui
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
74e58b5b05
Build on macos-12 image
2024-06-25 09:05:06 +02:00
Philipp Wolfer
efdd628016
Fixed coverart processing test cases
2024-06-24 19:08:11 +02:00
Philipp Wolfer
064685be02
Build on macos-12 image
...
Github Actions deprecated the macos-11 runner
2024-06-24 19:08:11 +02:00
Philipp Wolfer
9325919f05
ClusterList.lookup_metadata must not be a property
2024-06-22 11:28:51 +02:00
Vaclovas Intas
6aa1954d16
Translated using Weblate (Lithuanian)
...
Currently translated at 69.2% (813 of 1174 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/2/app/lt/
Translation: Picard/App
2024-06-20 15:42:28 +00:00
Vaclovas Intas
d584d313f1
Translated using Weblate (Lithuanian)
...
Currently translated at 70.6% (853 of 1208 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/app/lt/
Translation: Picard/App
2024-06-20 15:42:28 +00:00
Laurent Monin
3fceed3f11
Merge pull request #2514 from twodoorcoupe/display_external_file
...
Add new column for external images to artwork infodialog
2024-06-18 22:31:43 +02:00
twodoorcoupe
d535038601
Improve artwork infodialog
2024-06-18 11:45:14 +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
Philipp Wolfer
614330df51
Fix suspend_metadata_images_update used as context
...
MetadataItem.suspend_metadata_images_update is now a context and must not
be assigned directly.
2024-06-14 18:58:34 +02:00
twodoorcoupe
a9797f828c
Apply stylistic fixes
2024-06-14 12:33:47 +02:00
Laurent Monin
b745c1f1f2
Merge pull request #2512 from zas/drop_plugin_prio_enum
...
Drop PluginPriority in favor of a simple integer and add tests
2024-06-14 10:07:05 +02:00
twodoorcoupe
cef3512bae
Improve image processors chain
2024-06-13 21:12:40 +02:00
twodoorcoupe
1a1ca50374
Collect processing time
2024-06-12 10:00:30 +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
Vaclovas Intas
d2af4fbd5a
Translated using Weblate (Lithuanian)
...
Currently translated at 11.3% (118 of 1041 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/2/constants/lt/
Translation: Picard/Constants
2024-06-11 13:42:30 +00:00
Vaclovas Intas
6e152fb6cf
Translated using Weblate (Lithuanian)
...
Currently translated at 11.3% (118 of 1041 strings)
Co-authored-by: Vaclovas Intas <gateway_31@protonmail.com >
Translate-URL: https://translations.metabrainz.org/projects/picard/3/constants/lt/
Translation: Picard/Constants
2024-06-11 13:42:30 +00:00