Java: How do I get the URL of a custom page thumbnail?
TLDR: I need to get the URL of thumbnail I uploaded manually to page properties so I can use it in the page metadata.
example: <meta name="og:image" content="/content/mysite/my-page/jcr:content/my-custom-thumbnail-image-here.png>
Thanks!
------------------------------------------------------------------------
When I upload an image to Page properties/Thumbnail, I can see that AEM creates these paths
- /content/mysite/mypage/jcr:content/image/file/jcr:content/dam:thumbnails/dam:thumbnail_300.png
- /content/mysite/mypage/jcr:content/image/file/jcr:content/dam:thumbnails/dam:thumbnail_48.png
(Sometimes there's a thumbnail_319.png path as well but unsure what triggers its creation.)
I using javax.jcr classes, I can check for the existence of these nodes but is there more targeted (AEM-specific) class I can use?
There was an old discussion here that mentioned Social Media component + getThumbnail but I cannot find any instances of these combo. All I can find about getThumbnail is a "inbox" class (which I assume relates to emails)
-----------------------------------------------
This is how I uploaded the custom thumbnail in page properties

this is the node structure after uploading the custom thumbnail.
