Image are loading during ImageVariant initialization
This problem can have a big impact on the overall performance if many document node type has an image property
[TASK] Lazy load image resource
Currently the ImageVariant load the image from disk during initialization.
This patch add a lazy image loading to load image only if it's used in the
Additionnaly replace serialize in ImageService and Image class by json_encode.
Reviewed-by: Dominique Feyer
Tested-by: Dominique Feyer
Reviewed-by: Rens Admiraal
Reviewed-by: Robert Lemke
Tested-by: Robert Lemke