Interface ILayoutImageProcessor
-
- All Known Implementing Classes:
LayoutImageProcessor
public interface ILayoutImageProcessor
The class is responsible for image processing in hippo elements to make it acceptable for the native transformators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UUID
assignImageUUID(Picture picture, FormPictureCollection pictureCollection)
Assigns an UUID to the given image.void
replaceImageReferences(HippoLayStaticText text, FormPictureCollection pictureCollection)
Replaces image references in the given formatted text to acceptable ones.
-
-
-
Method Detail
-
replaceImageReferences
void replaceImageReferences(HippoLayStaticText text, FormPictureCollection pictureCollection)
Replaces image references in the given formatted text to acceptable ones.Modifies the formatted text by replacing image URLs or composit IDs to UUIDs, and puts related image sizes with UUIDs to the picture collection.
- Parameters:
text
- the hippo layout formatted text, cannot benull
pictureCollection
- the picture collection, cannot benull
-
assignImageUUID
UUID assignImageUUID(Picture picture, FormPictureCollection pictureCollection)
Assigns an UUID to the given image.Generates an UUID for the image and puts it with image size to the picture collection.
- Parameters:
picture
- the picture, cannot benull
pictureCollection
- the picture collection, cannot benull
- Returns:
- UUID, can be
null
if image is empty.
-
-