A new chapter with my Image Share Extension:
I started using appex.get_attachments instead of appex.get_images, because with get attachments I get the path name and thus can check for HEIC images with the same name as JPGs. This is great for the Photos app.
However in the Files app I get via get_attachments duplicates for the same file path! get_images(image_tyepe='ui') still gives me only single files.
Here some debug output with two files selected in the Files app when calling the Share Extension.
get_attachments list:
/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Journals/Diary/_assets/Aubergine-menu_MAR2021_Julia.jpg
/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Journals/Diary/_assets/Aubergine-menu_MAR2021_Julia.jpg
/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Journals/Diary/_assets/Aubergine-menu_MAR2021_Leo.jpg
/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/Journals/Diary/_assets/Aubergine-menu_MAR2021_Leo.jpg
get_images list
<_ui.Image object at 0x1162F7240>
<_ui.Image object at 0x1162F7550>
So I clearly prefer using get_images! But then I do not know the name and extension of the underlying file (for the HEIC deduping). - Any way to get this?
Many thanks for pointers in advance!