Better way for decoding image
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Refactor
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- objective-c
- Domain
- mobile-dev, performance
Research direction
Start at the pin_decodedImageWithData method and compare its current bitmap-drawing approach with the linked Twitter Image Pipeline implementations. Check how the proposed 1x1 context behaves for portrait and other image orientations, then verify that decoding preserves orientation while avoiding a temporary bitmap sized like the image.
Written by the indexing model from the issue text.
Description
I'm looking into pin_decodedImageWithData method and wandering can't we find better way for decoding ? With current implementation in order to decode an image we are creating additional bitmap with the same size and draw on it. We could draw into 1x1 context like done here , concrete implementations are here. If there may be issues with image orientation(in which I'm not sure) we can do this way only when image is in portrait mode. By doing this way we can save temporary memory of image size.
- Dominant language
- Objective-C
- Stars
- 4k
- Forks
- 516
- PR merge metrics
- No merged PRs in 30d
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.
More from pinterest/PINRemoteImage
-
Frozn Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
pinterest/PINRemoteImage#653 ·
-
Difficulty 5/5 Over a week Newbie friendliness 1/100
pinterest/PINRemoteImage#652 · 1 comment · 1 reaction ·
-
UI layout overflow Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
pinterest/PINRemoteImage#649 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
pinterest/PINRemoteImage#648 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
pinterest/PINRemoteImage#646 ·
All issues in pinterest/PINRemoteImage
Similar issues
-
clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/openclaw-facetime#40 · 2 comments · 1 reaction ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
obsproject/obs-studio#13918 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
SwiftOldDriver/iOS-Weekly#5439 · 1 comment ·