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

Register a node2bean transformer for colors

XMLWordPrintable

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoR