This error raises up when I activate a "Define Canvas".

CommentFileSizeAuthor
screenshot.png49.28 KBraulmuroc

Comments

dman’s picture

I can replicate that if a bogus color value was entered in the color field for the canvas.
'333333' works
'' empty string gives us a transparent border
'dfghsd' gives me the error you post.

Looks like it's time to add a validation callback to the color submission form.

dman’s picture

:(
I tried to steal the validation from core image_effect_color_validate() but it's way too unforgiving.
I want colors to allow RRGGBBAA values . Looks like I have to write one.

dman’s picture

Status: Active » Fixed

OK.
I've pushed a color validation routine into the color entry widget. In dev now.
This works by actually calling the parse_color function imagecache_actions_hex2rgba() and making sure it returns a valid result.

While I was there, also overhauled transparency support for canvases. You can have partial transparency on your backgrounds - if you so wish.

May have some side effects with old invalid settings? but this is an improvement. test.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.