ImageMapster icon indicating copy to clipboard operation
ImageMapster copied to clipboard

Eliminate `enableAutoResizeSupport` configuration option in next major release

Open techfg opened this issue 5 years ago • 0 comments

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

techfg avatar Jan 30 '21 05:01 techfg