Large SVG(1000x1000) does not load on Software Layer
- Dominant language
- Java
- Stars
- 35k
- Forks
- 6.2k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 8
Description
**Glide Version**:
4.12.0
**Integration libraries**:
https://github.com/BigBadaboom/androidsvg
**Device/Android Version**:
Pixel 4 API 30 emulator and misc android physical devices
**Issue details / Repro steps / Use case background**:
If you run on a Pixel 4 API 30 emulator in portrait the android image displays. In landscape it does not show the image but instead just the background.
Actual:
Landscape with the sample project with aspect ratio 3:2 does not display image
Expected:
Landscape with sample project with aspect ratio 3:2 does display android icon
Important Note:
If you choose aspect ratio 3:1 it works
**Glide load line / `GlideModule` (if any) / list Adapter code (if any)**:
https://github.com/DavidCorrado/GlideSVGBug
```kotlin
val requestBuilder = GlideApp.with(this)
.`as`(PictureDrawable::class.java)
.transition(withCrossFade())
.listener(SvgSoftwareLayerSetter())
requestBuilder.load(Uri.parse("https://upload.wikimedia.org/wikipedia/commons/d/d7/Android_robot.svg")).into(findViewById(R.id.articleHeaderImage))
```
All code copied from
https://github.com/bumptech/glide/tree/master/samples/svg
**Layout XML**:
**Stack trace / LogCat**:
N/A
Contributor guide
Assessment
This issue has not been assessed yet.