Recent

Original_Toolsclass

Original_Tools

Executes verified PNG encoders with a bounded runtime.

Namespace: WebberZone\Image_Optimizer
Since: 1.2.0
Source: includes/class-original-tools.php line 19

Methods

find() static

Locate a known PNG tool.

Line: 33

static public function find(  ): array;

Returns: array — string, path: string} Tool or empty values.

blocked_by_open_basedir() static

Whether the last lookup found no tool and skipped paths outside open_basedir.

Line: 87

static public function blocked_by_open_basedir(  ): bool;

Returns: bool — Restricted by open_basedir.

compress() static

Compress a temporary PNG in place, never the served original.

Line: 122

static public function compress( string $path, bool $strip ): bool;
Type Name Description
string $path Temporary PNG.
bool $strip Strip ancillary metadata.

Returns: bool — Successful encode.