diff --git a/Image.php b/Image.php
index 5939199..fd98abf 100644
--- a/Image.php
+++ b/Image.php
@@ -650,9 +650,17 @@ public function __toString()
/**
* Returning basic html code for this image
*/
- public function html($title = '', $type = 'jpg', $quality = 80)
- {
- return '
';
+ public function html($title = '', $type = 'jpg', $attributes = array(), $quality = 80)
+ {
+ $html = array();
+ if (!empty($attributes)) {
+ foreach ((array)$attributes as $key => $value) {
+ if (is_numeric($key)) $key = $value;
+ if (!is_null($value)) $key . '="' . $value . '"';
+ $html[] = $key . '="' . ($value) . '"';
+ }
+ }
+ return '
';
}
/**