public function load($bin) { $bytes = unpack('H*', $bin); // Unpack as hex $bytes = $bytes[1]; return new GifByteStream($bytes); }