capacitor-community / capacitor-community/contacts
Add thumbnailImage projection
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 144
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
As it stands, on iOS the plugin retrieves the full size image, which can slow things down considerably.
Describe the solution you'd like
When displaying contact images as thumbnails, it would be much more efficient to retrieve CNContactThumbnailImageDataKey instead of CNContactImageDataKey.
I'm happy to give it a shot on iOS. I'd simply add a new projection for thumbnailImage and implement the Swift plugin accordingly. I have no experience with Android dev unfortunately.
Describe alternatives you've considered
We could:
- resize the images and store them in a cache. Wildly impractical and overkill.
- write a quick and dirty plugin which only performs thumbnail image retrieval. An hour of work tops, but community wouldn't benefit and our codebase would be that much dirtier.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing image projections and the Swift iOS plugin implementation mentioned in the issue. Add the thumbnailImage projection using CNContactThumbnailImageDataKey, then verify that iOS contact thumbnail requests use the thumbnail data rather than the full-size image.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100