Uploaded image for project: 'Imaging'
  1. Imaging
  2. MGNLIMG-82

Register a node2bean transformer for colors

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Neutral
    • None
    • None
    • image operations, tools
    • None

    Description

      We do have info.magnolia.imaging.util.ColorConverter, and it is used by info.magnolia.imaging.operations.text.TextStyleTransformer, but somehow we're missing the ability to convert all colors.

      This might be due to the fact we can't globally register converters for types, except by modifying info.magnolia.content2bean.impl.Content2BeanTransformerImpl#Content2BeanTransformerImpl, which is where we could register a org.apache.commons.beanutils.Converter. The imaging module might get away with globally (statically) register a converter, but I'm not convinced this will work, since Content2BeanTransformerImpl is probably already initialized by then.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                gjoseph Magnolia International
                gjoseph Magnolia International
                Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR