Skip to content

Proposal: SVG as a format option in the Image Export select, Figma-style #4

Description

@Sokanon

The idea

Today SVG export is a separate typed export-svg sticky action with no settings section, while PNG and JPG live in the Image Export section's Format select. Figma, Illustrator and Sketch all put SVG in the same format dropdown as the raster formats and disable the scale/resolution options when a vector format is picked. Users already know that shape, and a single Export button with a Format select reads cleaner in the sticky footer than two export buttons side by side.

What it would involve

  • export.image.format (or a new export.format) accepting svg next to png and jpg, with the Resolution select disabled or hidden while svg is selected.
  • The runtime's export action dispatching to the product's svgExportRenderer when svg is selected, keeping runtime ownership of validation, serialization and download.
  • The acceptance contract for Image Export settings (optionCoverage of exactly png/jpg, separate Export SVG action) updated to match.

Why an issue rather than a PR

This touches the signed runtime, the export contract and the acceptance validators, so it's a design call for you rather than something a generated app can carry. Happy to take it on as a PR if you're open to the direction.

Related: #3 fixes the starter route not forwarding svgExportRenderer, which is what makes the current typed SVG action unreachable from a generated app.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions