meghlal / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

with zc=2 problem with $canvas_color #243

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
if you change $canvas_color = $this->param('cc', 'FFFFFF');
with
$canvas_color = $this->param('cc', 'HTMLCOLOR');

the "HTMLCOLOR" not render correctly 

Solution:  
change this :
$canvas_color_B = hexdec (substr ($canvas_color, 2, 2));

to this
$canvas_color_B = hexdec (substr ($canvas_color, 4, 2));

Original issue reported on code.google.com by lbasi...@gmail.com on 21 Aug 2011 at 1:07

GoogleCodeExporter commented 9 years ago
I don't understand the problem? You're suggesting you use a non hexadecimal 
colour, and that it doesn't work?

Original comment by BinaryMoon on 21 Aug 2011 at 8:18

GoogleCodeExporter commented 9 years ago

Original comment by BinaryMoon on 4 Dec 2012 at 9:21