File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Image metadata library (PHP 5.5+)
5
5
> adds the following changes:
6
6
>
7
7
> * added ` Xmp::getImageRegions() ` ,
8
+ > * fixed WebP header generation,
8
9
> * unit tests made runnable on PHP8 and newer PHPUnit,
9
10
> * added linter to validate code against any version of PHP >= 5.5 .
10
11
>
Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ private function getFile($chunks)
274
274
$ data .= $ chunk ->getChunk ();
275
275
}
276
276
277
- $ header = 'RIFF ' . pack ('V ' , strlen ($ chunks ) + 4 ) . 'WEBP ' ;
277
+ $ header = 'RIFF ' . pack ('V ' , strlen ($ data ) + 4 ) . 'WEBP ' ;
278
278
return $ header . $ data ;
279
279
}
280
280
Original file line number Diff line number Diff line change @@ -94,6 +94,6 @@ public function testConvertsFromSimpleFormat()
94
94
$ webp = WebP::fromFile (__DIR__ . '/../Fixtures/simple.webp ' );
95
95
$ webp ->setXmp ($ xmp );
96
96
97
- var_dump ($ webp ->getBytes ());
97
+ // var_dump($webp->getBytes());
98
98
}
99
99
}
You can’t perform that action at this time.
0 commit comments