Back to Hugo

processable image

docs/content/en/quick-reference/glossary/processable-image.md

0.161.1640 B
Original Source

A processable image is an image file characterized by one of the following media types:

  • image/bmp
  • image/gif
  • image/jpeg
  • image/png
  • image/tiff
  • image/webp

Hugo can decode and encode these image formats, allowing you to use any of the resource methods applicable to images such as Width, Height, Crop, Fill, Fit, Filter, Process, Resize, etc.

Use the reflect.IsImageResourceProcessable function to determine if an image can be processed.