class Primer::Alpha::ImageCrop
A client-side mechanism to crop images.
def initialize(src:, rounded: true, **system_arguments)
-
system_arguments
(Hash
) -- <%= link_to_system_arguments_docs %> -
rounded
(Boolean
) -- If the crop mask should be a circle. Defaults to true. -
src
(String
) -- The path of the image to crop.
def initialize(src:, rounded: true, **system_arguments) @system_arguments = deny_tag_argument(**system_arguments) @system_arguments[:tag] = "image-crop" @system_arguments[:src] = src @system_arguments[:rounded] = true if rounded end