diff options
author | Tom Moor <tom.moor@gmail.com> | 2012-06-11 18:55:50 +0800 |
---|---|---|
committer | Tom Moor <tom.moor@gmail.com> | 2012-06-11 18:55:50 +0800 |
commit | 49367fa3f24b5cec2e9bc3aadd6eda47d90f769a (patch) | |
tree | 067a9e23897108c911bbcf11705ff4c92bc2a2d3 | |
parent | a4ba8cbaa1a2ff5ed0b7bd9d15871de946cb9445 (diff) | |
download | fastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.zip fastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.tar.gz fastimage-49367fa3f24b5cec2e9bc3aadd6eda47d90f769a.tar.bz2 |
Added copyright notice
-rw-r--r-- | Fastimage.php | 13 |
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]; } |