uploadcare / uploadcare-widget-tab-effects

Effects Tab for Uploadcare Widget. Edit images in a browser.
https://uploadcare.com/features/effects_tab/
MIT License
9 stars 12 forks source link

fix auto-crop #31

Closed nd0ut closed 5 years ago

nd0ut commented 5 years ago

This module was copied from original widget source, but I forgot to check crop settings for false value.

  if not @settings.crop or not @settings.multiple
        return

      for crop in @settings.crop
        # if even one of crop option sets allow free crop,
        # we don't need to crop automatically
        if not crop.preferedSize
          return