Common utilities for working with image data.


  • ImageUtils



  • extensionToMimeType(extension: string): string
  • getChannels(buffer: ArrayBuffer, mimeType: string): number
  • Returns a conservative estimate of the number of channels in the image. For some image formats, the method may return 4 indicating the possibility of an alpha channel, without the ability to guarantee that an alpha channel is present.

  • getMemSize(buffer: ArrayBuffer, mimeType: string): number
  • getSize(buffer: ArrayBuffer, mimeType: string): vec2
  • mimeTypeToExtension(mimeType: string): string
Function symbol, f(📦) → 📦, where the argument and output are a box labeled 'glTF'.

Made by Don McCurdy TypeDoc documentation Copyright 2021 under MIT license