Frontify / frontify-aem-connector

Frontify Adobe Experience Manager
MIT License
4 stars 4 forks source link

Focal Point API Support #19

Closed LFDave closed 3 years ago

LFDave commented 3 years ago

Requirements

Frontify has released the Focal Point in the API. This should be passed as a parameter, so that implementors can access it. It is used to crop images to a specific dimension without losing the most important part of the image.

Acceptance Criteria

  1. The new parameter will only have an effect on new asset insertions
  2. The focal point parameter is added to the asset URL directly as a GET parameter as fp
  3. The property should look as following: &fp=0.6767,0.7878. Key fp, Value: {float},{float}
  4. IF Focal Point is null or not set THEN the GET parameter is not forwarded at all

Solution Hint

The properties are available in GraphQL as following only on Images and Documents:

... Image {
   focalPoint # null | [Float, Float]
}
... Document {
   focalPoint # null | [Float, Float]
}