Bumbo

public class Bumbo

Bumbo

A swifty client for Thumbor

  • Trim removes surrounding space in images

    See more

    Declaration

    Swift

    public enum TrimCorner : String
  • Image format

    See more

    Declaration

    Swift

    public enum Format : String
  • Vertical alignment controls height trimming.

    See more

    Declaration

    Swift

    public enum VerticalAlign : String
  • Horizontal alignment controls width trimming.

    See more

    Declaration

    Swift

    public enum HorizontalAlign : String
  • Setup Thumbor server with host and secret key.

    Declaration

    Swift

    public static func configure(host: String, secretKey: String?)

    Parameters

    host

    A URI to Thumbor server

    secretKey

    The encryption key configured in the server

  • Load and resize an image.

    Declaration

    Swift

    public static func load(_ url: String) -> Builder

    Parameters

    url

    A URI to the original image

    width

    The desired image width

    height

    The desired image height

    Return Value

    A builder which filters and settings can be applied to