widen — Resize image proportionally to given width

    Resizes the current image to new width, constraining aspect ratio. Pass an optional Closure callback as third parameter, to apply additional constraints like preventing possible upsizing.

    callback (optional)

    Closure callback defining constraint to prevent unwanted upsizing of the image. See examples below.

    upsize

    Keep image from being upsized.