     maxThumbnailFilesize: 10 # in MB. When the filename exceeds this limit, the thumbnail will not be generated.
     thumbnailWidth: 120
     thumbnailHeight: 120
-
+    #The default values for the clientSide resize. Set resizeImage to false to disable it
+    resizeImage: true
+    resizeHeight : 1024
+    resizeWidth : 1024
+    resizeQuality: 0.8
     # The base that is used to calculate the filesize. You can change this to
     # 1024 if you would rather display kibibytes, mebibytes, etc...
     # 1024 is technically incorrect,

    #
    #  srcX, srcy, trgX and trgY can be omitted (in which case 0 is assumed).
    #  trgWidth and trgHeight can be omitted (in which case the options.thumbnailWidth / options.thumbnailHeight are used)
    resize: (file) ->
      info =
        srcX: 0
        srcY: 0


      srcRatio = file.width / file.height

      if type == "imageResize"
        info.optWidth = @options.resizeWidth
        info.optHeight = @options.resizeHeight
      else
        info.optWidth = @options.thumbnailWidth
        info.optHeight = @options.thumbnailHeight

      # automatically calculate dimensions if not specified
      if !info.optWidth? and !info.optHeight?
