Percentage height not working

Tony Sharpe - October 30, 2009 - 15:17
Project:Imagecache Effects
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm trying to set the reflection to a percentage but the integer is always interpreted as pixels. I'm using 50%

#1

Tony Sharpe - October 30, 2009 - 18:59

Changing the regex in imageapi.inc (line 105) to the following sorts it:

if (preg_match('/^\d{1,3}%$/', $options['size'])) {

 
 

Drupal is a registered trademark of Dries Buytaert.