Module: Imgproxy::OptionAliases

Defined in:
lib/imgproxy/option_aliases/info.rb,
lib/imgproxy/option_aliases/processing.rb

Constant Summary collapse

INFO =
{
  size: :s,
  format: :f,
  dimensions: :d,
  video_meta: :vm,
  detect_objects: :do,
  colorspace: :cs,
  bands: :b,
  sample_format: :sf,
  pages_number: :pn,
  alpha: :a,
  crop: :c,
  palette: :p,
  average: :avg,
  dominant_colors: :dc,
  blurhash: :bh,
  calc_hashsum: :chs,
  page: :pg,
  video_thumbnail_second: :vts,
  video_thumbnail_keyframes: :vtk,
  cachebuster: :cb,
  expires: :exp,
  preset: :pr,
  hashsum: :hs,
  max_src_resolution: :msr,
  max_src_file_size: :msfs,
}.freeze
PROCESSING =
{
  resize: :rs,
  size: :s,
  resizing_type: :rt,
  resizing_algorithm: :ra,
  width: :w,
  height: :h,
  "min-width": :mw,
  "min-height": :mh,
  zoom: :z,
  enlarge: :el,
  extend: :ex,
  extend_aspect_ratio: :exar,
  gravity: :g,
  crop: :c,
  trim: :t,
  padding: :pd,
  auto_rotate: :ar,
  rotate: :rot,
  background: :bg,
  background_alpha: :bga,
  adjust: :a,
  brightness: :br,
  contrast: :co,
  saturation: :sa,
  blur: :bl,
  sharpen: :sh,
  pixelate: :pix,
  unsharp_masking: :ush,
  blur_detections: :bd,
  draw_detections: :dd,
  gradient: :gr,
  watermark: :wm,
  watermark_url: :wmu,
  watermark_text: :wmt,
  watermark_size: :wms,
  watermark_shadow: :wmsh,
  style: :st,
  strip_metadata: :sm,
  keep_copyright: :kcr,
  strip_color_profile: :scp,
  enforce_thumbnail: :eth,
  quality: :q,
  format_quality: :fq,
  autoquality: :aq,
  max_bytes: :mb,
  jpeg_options: :jpego,
  png_options: :pngo,
  webp_options: :webpo,
  page: :pg,
  pages: :pgs,
  disable_animation: :da,
  video_thumbnail_second: :vts,
  video_thumbnail_keyframes: :vtk,
  video_thumbnail_tile: :vtt,
  fallback_image_url: :fiu,
  skip_processing: :skp,
  cachebuster: :cb,
  expires: :exp,
  filename: :fn,
  return_attachment: :att,
  preset: :pr,
  hashsum: :hs,
  max_src_resolution: :msr,
  max_src_file_size: :msfs,
  max_animation_frames: :maf,
  max_animation_frame_resolution: :mafr,
}.freeze