Skip to content

ImageScale vs ImageScaling #160

Open
@gforcada

Description

@gforcada

Context

I'm reading the excellent docs ✨ (thanks @plone/documentation-team 💯 ) and I noticed that when talking about the srcset it does not explicitly mentions what's the actual python API method you should use (I will try to provide a fix for the docs later)...

Issue

So, I opened GitHub and looked at plone/namedfile/scaling.py where I found 2 classes:

  • ImageScale
  • ImageScaling

With almost exact docstrings:

  • view used for generating (and storing) image scales
  • view used for rendering image scales

Little quiz: which docstring belongs to which class? 🙃

Anyway, they look way too similar to not merge them, deprecate one, or... ? 🤔

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