cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.32k stars 216 forks source link

Paparazzi.gif with `name` does not generate separate APNG file #1643

Closed geoff-powell closed 1 month ago

geoff-powell commented 1 month ago

Description When providing a name to a paparazzi.gif() call, the outfile does not contain the name

Steps to Reproduce

class GifTest { @Test fun animation() { val buildView = { ComposeView(paparazzi.context).apply { setContent { Text(text = "Hello") } } } paparazzi.gif(buildView()) paparazzi.gif(buildView(), name = "two", fps = 2, end = 500) paparazzi.gif(buildView(), name = "middle-anim", start = 300) } }


* Only 1 output APNG is generated `paparazzi.sample_GifTest_animation.png` in `snapshots/videos`

**Expected behavior**
Should generate 3 APNG files in `snapshots/videos`
* `paparazzi.sample_GifTest_animation.png`
* `paparazzi.sample_GifTest_animation_two.png`
* `paparazzi.sample_GifTest_animation_middle_anim.png`

**Additional information:**
- Paparazzi Version: 1.3.4
- OS: Mac OS 14.7
- Compile SDK: 34
- Gradle Version: 8.10.2
- Android Gradle Plugin Version: 8.4.1
geoff-powell commented 1 month ago

My mistake, my gradle task was not running recordPaparazzi correctly so this is working as expected. Closed