dotCMS / core

Headless/Hybrid Content Management System for Enterprises
http://dotcms.com
Other
825 stars 464 forks source link

Adding a focal point in the image editor causes metadata to stop displaying #22888

Open swicken-dotcms opened 1 year ago

swicken-dotcms commented 1 year ago

Describe the bug When you add a focal point to an image in the editor and save/publish, the metadata tab switches to saying 'No Values'

Reproduced on: 22.08

To Reproduce

  1. From a demo starter open an image
  2. Open the image editor
  3. Add a focal point and hit save
  4. Save/Publish the image, then close it
  5. Reopen the image, check the metadata tab, it will be empty

Expected behavior Metadata should not be impacted by the addition of a focal point. I've tried resetting the cache to no avail.

waqasakramdot commented 1 year ago

I tried on demo after setting the focal point I tried to get metadata through velocity. It is returning metadata but no information related to a focal point.

set($meta = $dotcontent.find("focal point applied inode image"))

$meta.metaData

{path=4/7/47afe703-3add-4718-a2f5-383301e1ae82/fileAsset/rain-forest-view.jpg, modDate=1662031474141, isImage=true, sha256=a0b12eac5c1ba0729caf978b5e51f23ad3088264eaccf4bda78f3b104dcc0606, fileSize=125562, length=125562, name=rain-forest-view.jpg, width=6000, title=rain-forest-view.jpg, version=20220201, contentType=image/jpeg, height=4000, keys=[path, modDate, isImage, sha256, fileSize, length, name, width, title, version, contentType, height, keys, map], map={path=4/7/47afe703-3add-4718-a2f5-383301e1ae82/fileAsset/rain-forest-view.jpg, modDate=1662031474141, isImage=true, sha256=a0b12eac5c1ba0729caf978b5e51f23ad3088264eaccf4bda78f3b104dcc0606, fileSize=125562, length=125562, name=rain-forest-view.jpg, width=6000, title=rain-forest-view.jpg, version=20220201, contentType=image/jpeg, height=4000}}

erickgonzalez commented 1 year ago

Customer hitting this: https://dotcms.zendesk.com/agent/tickets/109218

jdotcms commented 1 month ago

set($meta = $dotcontent.find("focal point applied inode image"))

$meta.metaData

I think the way to recover the meta is

#set($meta = $dotcontent.find("a3f2f0457212e070c6b055c2acb13f6b"))
$meta
$meta.asset
$meta.asset.meta
jdotcms commented 1 month ago

Even after the focus point is being set, the metadata still being able to be recovered However I do not see the focus point info in the metadata

jdotcms commented 1 month ago

After sometime research and testing, we havent return ever the focus point on the meta, it looks such as a feature request instead of a bug report In order to retrieve it you can do

  focal point X: $meta.asset.getFpx()
focal point y: $meta.asset.getFpy()