LuckSiege / LuckSiege/PictureSelector

android 10 系统选择图片后会将图片复制到APP下的缓存目录中,期间jpg转为了png,数据成倍增长

Open
#1,869 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
13.6k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

android 10 系统选择图片后会将图片复制到APP下的缓存目录中,期间jpg转为了png,本来4M多的jpg图片结果变成了将近20M的png图片。而且感觉可能是因为这个原因导致选择图片后加载速度变慢,等待时间过长了。有各位大佬遇到过吗。。。我一直是 Android8 测试机,结果最近领导用家里人的Android10机子看了下发现了这个问题。
虽说Android10 改变了存储机制,但是这个选择jpg后转变了png就有点上头了。。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Reproduce image selection on Android 10 with a JPG, then trace where the selected image is copied and converted in the cache flow. Done means the selected JPG does not unexpectedly become a much larger PNG and selection does not incur the reported excessive wait.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.