Skip to content

Add resources.IsProcessableImage #11779

Open
@bep

Description

@bep

This is slightly related to #11688

Note that I'm not totally sure about this ... There may be an alternative fix lurking around for this somewhere.

  • Currently $resources.ByType means filter by MIME main type.
  • The problem with this for type image is that most people expect the images returned to have a .Width and to be resizeable etc.

We have a few options:

  • We could make $resources.ByType 'image' return only images that's processable.
  • We could add some $resource.IsProcessableImage` ... or something less ugly.

Not sure.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions