Autopsy
3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Static Public Member Functions | |
static Image | getDefaultIcon () |
static boolean | thumbnailSupported (Content content) |
static Image | getIcon (Content content, int iconSize) |
static File | getIconFile (Content content, int iconSize) |
static File | getFile (long id) |
static boolean | isJpegFileHeader (AbstractFile file) |
static boolean | isPngFileHeader (AbstractFile file) |
Static Public Attributes | |
static final int | ICON_SIZE_SMALL = 50 |
static final int | ICON_SIZE_MEDIUM = 100 |
static final int | ICON_SIZE_LARGE = 200 |
Static Private Member Functions | |
static Image | generateAndSaveIcon (Content content, int iconSize, File saveFile) |
static BufferedImage | generateIcon (Content content, int iconSize) |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(ImageUtils.class.getName()) |
static final Image | DEFAULT_ICON = new ImageIcon("/org/sleuthkit/autopsy/images/file-icon.png").getImage() |
static final List< String > | SUPP_EXTENSIONS = Arrays.asList(ImageIO.getReaderFileSuffixes()) |
static final List< String > | SUPP_MIME_TYPES = new ArrayList<>(Arrays.asList(ImageIO.getReaderMIMETypes())) |
Utilities for creating and manipulating thumbnail and icon images.
Definition at line 49 of file ImageUtils.java.
|
staticprivate |
Generate an icon and save it to specified location.
content | File to generate icon for |
iconSize | |
saveFile | Location to save thumbnail to |
Definition at line 238 of file ImageUtils.java.
References org.sleuthkit.autopsy.coreutils.ImageUtils.DEFAULT_ICON, and org.sleuthkit.autopsy.coreutils.ImageUtils.generateIcon().
Referenced by org.sleuthkit.autopsy.coreutils.ImageUtils.getIcon().
|
staticprivate |
Definition at line 259 of file ImageUtils.java.
References org.sleuthkit.autopsy.corelibs.ScalrWrapper.cropImage(), org::sleuthkit::datamodel::Content.getName(), and org.sleuthkit.autopsy.corelibs.ScalrWrapper.resizeFast().
Referenced by org.sleuthkit.autopsy.coreutils.ImageUtils.generateAndSaveIcon().
|
static |
Get the default Icon, which is the icon for a file.
Definition at line 65 of file ImageUtils.java.
References org.sleuthkit.autopsy.coreutils.ImageUtils.DEFAULT_ICON.
|
static |
Get a file object for where the cached icon should exist. The returned file may not exist.
id |
Definition at line 170 of file ImageUtils.java.
References org.sleuthkit.autopsy.casemodule.Case.getCacheDirectory(), and org.sleuthkit.autopsy.casemodule.Case.getCurrentCase().
Referenced by org.sleuthkit.autopsy.coreutils.ImageUtils.getIcon(), and org.sleuthkit.autopsy.coreutils.ImageUtils.getIconFile().
|
static |
Get a thumbnail of a specified size. Generates the image if it is not already cached.
content | |
iconSize |
Definition at line 124 of file ImageUtils.java.
References org.sleuthkit.autopsy.coreutils.ImageUtils.DEFAULT_ICON, org.sleuthkit.autopsy.coreutils.ImageUtils.generateAndSaveIcon(), org.sleuthkit.autopsy.coreutils.ImageUtils.getFile(), and org::sleuthkit::datamodel::Content.getId().
Referenced by org.sleuthkit.autopsy.coreutils.ImageUtils.getIconFile().
|
static |
Get a thumbnail of a specified size. Generates the image if it is not already cached.
content | |
iconSize |
Definition at line 156 of file ImageUtils.java.
References org.sleuthkit.autopsy.coreutils.ImageUtils.getFile(), org.sleuthkit.autopsy.coreutils.ImageUtils.getIcon(), and org::sleuthkit::datamodel::Content.getId().
|
static |
Check if is jpeg file based on header
file |
Definition at line 181 of file ImageUtils.java.
References org::sleuthkit::datamodel::AbstractFile.getSize(), and org::sleuthkit::datamodel::AbstractFile.read().
Referenced by org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isImageSupported(), and org.sleuthkit.autopsy.coreutils.ImageUtils.thumbnailSupported().
|
static |
Definition at line 204 of file ImageUtils.java.
References org::sleuthkit::datamodel::AbstractFile.getSize(), and org::sleuthkit::datamodel::AbstractFile.read().
Referenced by org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isImageSupported().
|
static |
Can a thumbnail be generated for the content?
content |
Definition at line 75 of file ImageUtils.java.
References org::sleuthkit::datamodel::AbstractContent.getGenInfoAttributes(), org::sleuthkit::datamodel::AbstractFile.getNameExtension(), org::sleuthkit::datamodel::AbstractFile.getSize(), org.sleuthkit.autopsy.coreutils.ImageUtils.isJpegFileHeader(), and org::sleuthkit::datamodel::BlackboardAttribute::ATTRIBUTE_TYPE.TSK_FILE_TYPE_SIG.
Referenced by org.sleuthkit.autopsy.report.ReportGenerator.TableReportsWorker.checkIfFileIsImage().
|
staticprivate |
Definition at line 54 of file ImageUtils.java.
Referenced by org.sleuthkit.autopsy.coreutils.ImageUtils.generateAndSaveIcon(), org.sleuthkit.autopsy.coreutils.ImageUtils.getDefaultIcon(), and org.sleuthkit.autopsy.coreutils.ImageUtils.getIcon().
|
static |
Definition at line 52 of file ImageUtils.java.
|
static |
Definition at line 51 of file ImageUtils.java.
|
static |
Definition at line 50 of file ImageUtils.java.
|
staticprivate |
Definition at line 53 of file ImageUtils.java.
|
staticprivate |
Definition at line 55 of file ImageUtils.java.
|
staticprivate |
Definition at line 56 of file ImageUtils.java.
Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.