- changed status to resolved
gdImageCreateFromWebpCtx is broken
Issue #75
resolved
Trying to understand why PHP use gdImageCreateFromWebpPtr.. I try this one.
Loop to detect size never end.
do {
n = gdGetBuf(dummy, 1024, infile);
size += n;
printf("size=%d\n", size);
} while (n != EOF);
gdGetBuf never return EOF, but 0.
But after this, need to rewind the file, which requires a seek on the context which is not desirable.
Need another implementation (single read with buf realloc ?).
Comments (2)
-
reporter -
reporter Please review this very late change before final...
- Log in to comment
gdImageCreateFromWebpCtx new implementation proposal, fix issue
#75→ <<cset a08a17ddafd0>>