[MGNLIMG-180] Provide a TextStyleTransformer which extends Node2BeanTransformerImpl Created: 02/Dec/15  Updated: 29/Mar/19  Resolved: 22/Nov/17

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: 3.2.3
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Christoph Meier Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by DOCU-648 Show the "Example operation chain: Im... Closed
supersession
is superseded by MGNLIMG-200 Remove uses of the Content API Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Date of First Response:

 Description   

When adding a text overlay within an image operation chain ... a TextStyleTransformer is required.
Current existing class info.magnolia.imaging.operations.text.TextStyleTransformer extends info.magnolia.content2bean.impl.Content2BeanTransformerImpl (which is deprecated).
We should deprecate this class and provide a TextStyleTransformer which extends info.magnolia.jcr.node2bean.impl.Node2BeanTransformerImpl.
With existing classes it seems impossible to add a text layer.

Also ensure the new component is registered in the module. Right now, if you want to use TextStyleTransformer, it must be registered in a module descriptor:

<components>
  <id>main</id>
  <component>
    <type>info.magnolia.imaging.operations.text.TextStyleTransformer</type>
    <implementation>info.magnolia.imaging.operations.text.TextStyleTransformer</implementation>
  </component>
</components>


 Comments   
Comment by Christoph Meier [ 02/Dec/15 ]

Here is "my" "temporary" solution compared to the "original": "original"

Comment by Richard Gange [ 22/Nov/17 ]

Closed as obsolete. TextStyleTransformer is now TextStyleNodeTransformer. TextStyleNodeTransformer extends info.magnolia.jcr.node2bean.impl.Node2BeanTransformerImpl. See MGNLIMG-200.

Generated at Mon Feb 12 02:13:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.