$count++;
self::row($conf,$row);
+ if (isset($conf['limit']) and $count > $conf['limit']) break;
}
if (!empty($o['_jpg'])) return;
$o['_jpg'] = true;
foreach ($row as $k=>$v) {
+ if (!is_scalar($v) or !self::is_binary($v)) continue;
+ $o['limit'] = 0;
$img = imagecreatefromstring($v);
if ($o['w'] and $o['h']) {
if (!empty($o['_png'])) return;
$o['_png'] = true;
foreach ($row as $k=>$v) {
+ if (!is_scalar($v) or !self::is_binary($v)) continue;
+ $o['limit'] = 0;
$img = imagecreatefromstring($v);
if ($o['w'] and $o['h']) {