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 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 be null
        pictureCollection - the picture collection, cannot be null
      • 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 be null
        pictureCollection - the picture collection, cannot be null
        Returns:
        UUID, can be null if image is empty.