LuckSiege / LuckSiege/PictureSelector

测试并查看了源码,框架不支持GIF图片压缩哦

Open
#2,102 0 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

com.luck.picture.lib.compress.Luban 这个类里面的方法 compressRealLocalMedia
此方法走的是这个
` if (suffix.startsWith(".gif")) {
// GIF without compression
if (SdkVersionUtils.checkedAndroid_Q()) {
String newFilePath = media.isCut() ? media.getCutPath() :
AndroidQTransformUtils.copyPathToAndroidQ(context, media.getId(),
streamProvider.getPath(), media.getWidth(), media.getHeight(), media.getMimeType(), filename);
result = new File(TextUtils.isEmpty(newFilePath) ? newPath : newFilePath);
} else {
result = new File(newPath);
}
}`

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

Start with com.luck.picture.lib.compress.Luban.compressRealLocalMedia and read the existing suffix.startsWith(".gif") branch. Trace the compression flow and related Android media handling to determine what GIF support should mean; done should be verified by confirming GIF inputs are compressed without breaking the existing copy behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.