-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Splitter::coalesceToResources this function copy a frame to the base frame, but not the base frame variable not be used.
$resources[$key] = $resource;I fix this:
$coalescedResource = self::cloneResource($base, $baseWidth, $baseHeight);
$resources[$key] = $coalescedResource;
private static function cloneResource($resource, $width, $height)
{
$clonedResource = imagecreate($width, $height);
imagecopy(
$clonedResource,
$resource,
0,
0,
0,
0,
$width,
$height
);
return $clonedResource;
}Reactions are currently unavailable