Class ImageRenderer
java.lang.Object
se.datadosen.jalbum.ImageRenderer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildSrcset(List<Rendition> renditions, String typicalPath) Generate a srcset attribute value for given list of renditionsgetCloseupRenditions(OutputFormat format) getThumbRenditions(OutputFormat format) static RenditiongetTypical(List<Rendition> renditions) static booleanisSameBase(String testName, AlbumObject typicalAO) static booleanisSameRoot(String testName, String typicalName) static booleanTest if passed test file is a variant of typicalFile, i.e.follows the -nnnw pattern where nnn is the image widthstatic booleanisVariant(String testName, AlbumObject typicalAO) static Stringstatic StringnameSuffix(String name) stripTypical(List<Rendition> renditions)
-
Constructor Details
-
ImageRenderer
-
-
Method Details
-
getAndResetIntermediateImage
- Returns:
- Scaled image to be passed to the thumbnail processing stage
-
getCloseupRenditions
-
getThumbRenditions
-
getCloseupRenditions
- Parameters:
format- Specific image format to filter list on- Returns:
- Closeup (image) renditions, from largest to smallest. Includes the typical/base rendition too
-
getThumbRenditions
- Parameters:
format- Specific image format to filter list on- Returns:
- Thumbnail renditions, from largest to smallest. Includes the typical/base rendition too
-
getTypical
-
stripTypical
-
buildSrcset
-
isVariant
-
isVariant
-
isSameBase
-
isSameRoot
-
nameRoot
-
nameSuffix
-