Class ImageInfo

java.lang.Object
org.nuxeo.ecm.platform.picture.api.ImageInfo
All Implemented Interfaces:
Serializable

public class ImageInfo extends Object implements Serializable
Wrapper class for the information returned by the Identify ImageMagick command.
Author:
tiry
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • fromMap

      public static ImageInfo fromMap(Map<String,Serializable> map)
    • getWidth

      public int getWidth()
    • setWidth

      public void setWidth(int width)
    • getHeight

      public int getHeight()
    • setHeight

      public void setHeight(int height)
    • getFormat

      public String getFormat()
    • setFormat

      public void setFormat(String format)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFilePath

      public String getFilePath()
    • getFile

      public File getFile()
    • getDepth

      public int getDepth()
    • setDepth

      public void setDepth(int depth)
    • getColorSpace

      public String getColorSpace()
      Since:
      5.9.5
    • setColorSpace

      public void setColorSpace(String colorSpace)
      Since:
      5.9.5
    • toMap

      public Map<String,Serializable> toMap()
      Returns a Map of attributes for this ImageInfo.

      Used when saving this ImageInfo to a DocumentModel property.

      Since:
      7.1