Skip to content

Audio with its own picture is drawn with DeckCraft's speaker icon on top of it #2324

Open

Description

@xaoseric

What happens. An audio clip opened from a .pptx shows two icons in the editor: the clip's own picture, which the file stores with the audio, and DeckCraft's built-in speaker drawn over it. Confirmed by hand with a presentation containing audio, saved by another presentation app and opened in DeckCraft.

Cause. The renderer draws a media shape's picture (MediaClip::poster) when it has one. For audio it then always draws the built-in glyph as well (crates/render/src/renderer.rs, the ShapeKind::Media arm: if !mc.video || mc.poster.is_none() { paint::media_glyph(…) }). PPTX import reads the picture of an audio shape into poster and export writes it back, so every imported audio clip with a picture gets both.

Expected. A clip with its own picture shows only that picture. The built-in speaker (audio) or film glyph (video) is drawn only when the clip has no picture. Video already works this way.

Scope. Drawing only. Setting or resetting an audio clip's picture from the app is the separate feature in #2209.

Activity

  1. xaoseric commented on Nov 22, 2026

    @xaoseric
    Author

    Working on this: a clip with its own picture will show only that picture, and the built-in glyph only when there is none.

  2. added
    bugfixFixes something that is broken: wrong result, crash, data loss
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfixFixes something that is broken: wrong result, crash, data loss

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions