GutterColor icon indicating copy to clipboard operation
GutterColor copied to clipboard

Support for mixed digits and percentages in RGB, HSL...

Open tdhsmith opened this issue 11 years ago • 3 comments

As noted in #60, ImageMagick does not allow rgb, hsl, rgba, or hsla to mix percentage and non-percentage values. (Alpha channel is excluded; it is always expected to be between 0 and 1.) This is a problem because mixing values is common (#15) and necessary. The CSS spec for HSL, for example, requires a format of hsl(<angle>, <percentage>, <percentage>).

@jbrooksuk suggested we first try to submit a patch to ImageMagick.

If that's unsuccessful or out of their scope, we'll have to add number conversion logic.

tdhsmith avatar Aug 07 '14 08:08 tdhsmith

Marked as nobug, invalid just so we know that it's something unrelated to GC itself (for the time being).

jbrooksuk avatar Aug 07 '14 11:08 jbrooksuk

Submitted a bug report / feature discussion on the ImageMagick boards. Might've gone over the top on the explanation but I was procrastinating on work. :laughing:

tdhsmith avatar Aug 12 '14 00:08 tdhsmith

Awesome! That's a really nice report, let's see where it goes!

jbrooksuk avatar Aug 12 '14 07:08 jbrooksuk