Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish an example #5

Open
wants to merge 122 commits into
base: master
Choose a base branch
from
Open

Publish an example #5

wants to merge 122 commits into from

Conversation

dani-elo
Copy link

Could you guys publish an example. I cannot make it work . I get stuck at ..and "send it directly to the browser:" and only get strange code (I guess it is the binary)

xparq added 30 commits April 24, 2014 12:18
+ Made $this->version a define (VERSION).
+ Made $this->errors really static (self::$errors).
+ Moved encodeAsciiToChar() out from the class to the namespace root as a general utility fn.
+ Moved getGif to the "public" section (and removed the Getter/Setter section).
+ Moved reset() closer up to the ctor.
+ Changed comments here & there.
+ Changed the error messages slightly (those might get removed anyway, though).
+ Whitespaces: fixed some tab/space mismatch etc.
+ Left the namespace as "GifCreator" (intentionally).
+ Renamed method getGif() to get().
+ Changed {$i} indexes to [$i] in gifBlockCompare().
(Ehh... How can I do commit --amend here?)
+ small formatting craps
! Haven't (and probably won't ever!) test the current version at all!
? Move to PSR-4 anyway? (We depend on PHP 5.3+ already.)
"Fatal error: Namespace declaration statement has to be the very first statement in the script"
Parse error: syntax error, unexpected T_PUBLIC in P:\JOB+CONTRACT_\Bulesz\WeatherCert\sys\common\animgif.php on line 352
+ Separate ERR00 from $durations not being an array.
+ Support uniform timing without an array.
+ $duration now has a meaningful default in create().
+ $frames was incorrectly made an optional arg. of create().
+ create() should iterate $frames with foreach() not for assuming direct
  indexes from 0 to < count. 
  (The array keys can be anything, and should not affect the results.)
+ Removed unused $mode from reporting ERR02.
xparq and others added 30 commits May 17, 2014 19:13
(Actually, reset() was public already; made the internals protected, in fact.)
Also: improved comments and error messages.
(I didn't want to force this, but to keep GIT shut up over the empty test dir, I have a .KEEP file there, so...)
Now allows for a GIF which does not loop to be created.
Fixed/updated/added some random comments.
Changed spacing of + added comment to the no-loop contribution (thanks @lucanos!). 
(Also changed the old octals there to hex for consistency.)
...with Peter Sellers, Ringo Star, John Cleese, Graham Chapman and others (like Richard Attenborough and Roman polanski): The Magic Christian. Do check it out, it's amazingly embarrassing and delightful ad the same time! :)
Also corrected is the loop value which should be zero based.
Corrected typo in GIF header generation, fixes #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants