Skip to content

Eliminate enableAutoResizeSupport configuration option in next major release #361

Open
@techfg

Description

Is your feature request related to a problem and/or adding functionality? Please describe.
In v.1.5.0, a basic autoresize feature was added. In order to add this feature in a 100% backwards compatible way, the configuration option enableAutoResizeSupport was added that enables the autoresize capability.

Describe the solution you'd like
In the next major release, the following should be done:

  1. Eliminate enableAutoResizeSupport configuration and make it the default behavior. In short, this would simply not apply a width/height to the wrapper div that IM inserts in to DOM. Whether or not to automatically resize images would be controlled via autoResize configuration parameter.
  2. Revisit the concept of autoscale vs. autoresize and consider having IM only be responsible for autoscaling but not autoresizing. In this case, IM would rely on the browser/CSS to resize images and when an images resizes, autoscaling would trigger to scale areas and apply css to canvas elements, etc.

Describe alternatives you've considered
N/A

Additional context
N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions