Skip to content
This repository was archived by the owner on Jul 25, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ProcessImageMinimize.module
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ProcessImageMinimize extends WireData implements Module, ConfigurableModul
'title' => 'ProcessImageMinimize / minimize.pw',
'author' => 'Conclurer GbR',
'summary' => 'Uses minimize.pw to compress your images on the fly, increasing your site load performance.',
'version' => 102,
'version' => 103,
'href' => 'https://minimize.pw',
'autoload' => true
);
Expand All @@ -20,7 +20,7 @@ class ProcessImageMinimize extends WireData implements Module, ConfigurableModul
private $log;
private static $instance = null;

const mz_version = '1.0.2';
const mz_version = '1.0.3';
const base_url = 'https://minimize.pw/';

const service_url = 'https://minimize.pw/';
Expand Down Expand Up @@ -793,7 +793,7 @@ ON " . self::table_name . " (state) USING BTREE");

protected function minimizePageimage($img)
{
if (get_class($img) != 'Pageimage') return;
if (get_class($img) != 'Pageimage' && get_class($img) != 'ProcessWire\Pageimage') return;

$image_id = $this->getImageIdByPageimage($img);

Expand Down Expand Up @@ -964,4 +964,4 @@ ON " . self::table_name . " (state) USING BTREE");
{
self::$instance->minimizeImageByPath($path);
}
}
}