Packages

o

io.archivesunleashed.matchbox

ComputeImageSize

object ComputeImageSize

Image sizing utilities.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ComputeImageSize
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(bytes: Array[Byte]): (Int, Int)

    Computes image size from a byte array using ImageIO.

    Computes image size from a byte array using ImageIO.

    Used by ExtractPopularImages to calculate the size of the image as a tuple of integers (width, height).

    bytes

    image as a byte array

    returns

    size of image as a tuple (width, height) or (0,0).