summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Moor <tom.moor@gmail.com>2012-06-11 18:55:50 +0800
committerTom Moor <tom.moor@gmail.com>2012-06-11 18:55:50 +0800
commit49367fa3f24b5cec2e9bc3aadd6eda47d90f769a (patch)
tree067a9e23897108c911bbcf11705ff4c92bc2a2d3
parenta4ba8cbaa1a2ff5ed0b7bd9d15871de946cb9445 (diff)
downloadfastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.zip
fastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.tar.gz
fastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.tar.bz2
Added copyright notice
-rw-r--r--Fastimage.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/Fastimage.php b/Fastimage.php
index 8ad7cfb..aa69467 100644
--- a/Fastimage.php
+++ b/Fastimage.php
@@ -1,5 +1,16 @@
<?php
+/**
+ * FastImage - Because sometimes you just want the size!
+ * Based on the Ruby Implementation by Steven Sykes (https://github.com/sdsykes/fastimage)
+ *
+ * Copyright (c) 2012 Tom Moor
+ * Tom Moor, http://tommoor.com
+ *
+ * MIT Licensed
+ * @version 0.1
+ */
+
class Fastimage
{
private $strpos = 0;
@@ -218,7 +229,7 @@ class Fastimage
{
$size = unpack("C*", $str);
- return ($size[1] << 8) + $size[2];
+ return ($size[1] << 8) + $size[2];
}