Skip to content

Add options to FileAttachment(…).image() #231

@Fil

Description

@Fil

In https://github.com/observablehq/stdlib/blob/main/src/fileAttachment.js#L43 it would be interesting to add options such as:

  • width
  • height
  • alt
  • title
  • intrisicsize
  • styles
  • longdesc

A short-hand notation for "half-size" would also be useful (maybe {pixelRatio: 2}?) currently, when you upload a screenshot taken on a retina screen, you need to look up the image's width, then write a full <img src="….url()" width="W/2"> tag.

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