Changeset 3401132
- Timestamp:
- 11/23/2025 04:23:12 AM (4 months ago)
- Location:
- avif-local-support
- Files:
-
- 6 edited
- 1 copied
-
tags/0.2.9 (copied) (copied from avif-local-support/trunk)
-
tags/0.2.9/avif-local-support.php (modified) (2 diffs)
-
tags/0.2.9/includes/class-converter.php (modified) (2 diffs)
-
tags/0.2.9/readme.txt (modified) (3 diffs)
-
trunk/avif-local-support.php (modified) (2 diffs)
-
trunk/includes/class-converter.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
avif-local-support/tags/0.2.9/avif-local-support.php
r3401130 r3401132 7 7 * Plugin URI: https://github.com/ddegner/avif-local-support 8 8 * Description: Unified AVIF support and conversion. Local-first processing with a strong focus on image quality when converting JPEGs. 9 * Version: 0.2. 89 * Version: 0.2.9 10 10 * Author: David Degner 11 11 * Author URI: https://www.DavidDegner.com … … 22 22 23 23 // Define constants 24 \define('AVIFLOSU_VERSION', '0.2. 8');24 \define('AVIFLOSU_VERSION', '0.2.9'); 25 25 \define('AVIFLOSU_PLUGIN_FILE', __FILE__); 26 26 \define('AVIFLOSU_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
avif-local-support/tags/0.2.9/includes/class-converter.php
r3401130 r3401132 214 214 $snippet = $this->lastCliOutput !== '' ? substr($this->lastCliOutput, 0, 800) : ''; 215 215 $err = 'CLI conversion failed' 216 . ' (exit ' . $this->lastCliExitCode . ')' 217 . ($this->lastCliCommand !== '' ? ' cmd: ' . $this->lastCliCommand : '') 218 . ($snippet !== '' ? ' output: ' . $snippet : ''); 216 . ' (exit ' . $this->lastCliExitCode . ')'; 217 218 if ($this->lastCliCommand !== '') { 219 $err .= ' cmd: ' . $this->lastCliCommand; 220 } 221 if ($snippet !== '') { 222 $err .= ' output: ' . $snippet; 223 } 219 224 220 225 // If no specific error message but failed, add a generic one to ensure log visibility … … 234 239 } 235 240 $actualSettings['error_suggestion'] = $suggestion; 241 242 // Explicitly add CLI debug info to settings so it appears in details list 243 $actualSettings['cli_exit_code'] = $this->lastCliExitCode; 244 // Sanitize output to avoid JSON/rendering issues 245 $actualSettings['cli_output'] = mb_convert_encoding($snippet, 'UTF-8', 'UTF-8'); 236 246 237 247 $this->log_conversion('error', $sourcePath, $avifPath, $engine_used, $start_time, $err, $actualSettings); -
avif-local-support/tags/0.2.9/readme.txt
r3401130 r3401132 5 5 Requires at least: 6.5 6 6 Tested up to: 6.8 7 Stable tag: 0.2. 87 Stable tag: 0.2.9 8 8 Requires PHP: 8.0 9 9 License: GPL v2 or later … … 97 97 98 98 == Changelog == 99 = 0.2.9 = 100 - Fix: Capture and display detailed CLI output and exit codes in logs when a CLI conversion fails silently. 101 - Fix: Ensure error messages are correctly populated in the log details even when empty. 102 99 103 = 0.2.8 = 100 104 - Change: Downgrade memory limit exhaustion error to a warning and continue conversion attempt. … … 192 196 193 197 == Upgrade Notice == 198 = 0.2.9 = 199 Fixes silent CLI failure logging by capturing detailed output and exit codes. Recommended update for troubleshooting. 200 194 201 = 0.2.8 = 195 202 Downgrades strict memory checks to warnings, allowing conversion to proceed on systems with complex memory limit reporting. Recommended update. -
avif-local-support/trunk/avif-local-support.php
r3401130 r3401132 7 7 * Plugin URI: https://github.com/ddegner/avif-local-support 8 8 * Description: Unified AVIF support and conversion. Local-first processing with a strong focus on image quality when converting JPEGs. 9 * Version: 0.2. 89 * Version: 0.2.9 10 10 * Author: David Degner 11 11 * Author URI: https://www.DavidDegner.com … … 22 22 23 23 // Define constants 24 \define('AVIFLOSU_VERSION', '0.2. 8');24 \define('AVIFLOSU_VERSION', '0.2.9'); 25 25 \define('AVIFLOSU_PLUGIN_FILE', __FILE__); 26 26 \define('AVIFLOSU_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
avif-local-support/trunk/includes/class-converter.php
r3401130 r3401132 214 214 $snippet = $this->lastCliOutput !== '' ? substr($this->lastCliOutput, 0, 800) : ''; 215 215 $err = 'CLI conversion failed' 216 . ' (exit ' . $this->lastCliExitCode . ')' 217 . ($this->lastCliCommand !== '' ? ' cmd: ' . $this->lastCliCommand : '') 218 . ($snippet !== '' ? ' output: ' . $snippet : ''); 216 . ' (exit ' . $this->lastCliExitCode . ')'; 217 218 if ($this->lastCliCommand !== '') { 219 $err .= ' cmd: ' . $this->lastCliCommand; 220 } 221 if ($snippet !== '') { 222 $err .= ' output: ' . $snippet; 223 } 219 224 220 225 // If no specific error message but failed, add a generic one to ensure log visibility … … 234 239 } 235 240 $actualSettings['error_suggestion'] = $suggestion; 241 242 // Explicitly add CLI debug info to settings so it appears in details list 243 $actualSettings['cli_exit_code'] = $this->lastCliExitCode; 244 // Sanitize output to avoid JSON/rendering issues 245 $actualSettings['cli_output'] = mb_convert_encoding($snippet, 'UTF-8', 'UTF-8'); 236 246 237 247 $this->log_conversion('error', $sourcePath, $avifPath, $engine_used, $start_time, $err, $actualSettings); -
avif-local-support/trunk/readme.txt
r3401130 r3401132 5 5 Requires at least: 6.5 6 6 Tested up to: 6.8 7 Stable tag: 0.2. 87 Stable tag: 0.2.9 8 8 Requires PHP: 8.0 9 9 License: GPL v2 or later … … 97 97 98 98 == Changelog == 99 = 0.2.9 = 100 - Fix: Capture and display detailed CLI output and exit codes in logs when a CLI conversion fails silently. 101 - Fix: Ensure error messages are correctly populated in the log details even when empty. 102 99 103 = 0.2.8 = 100 104 - Change: Downgrade memory limit exhaustion error to a warning and continue conversion attempt. … … 192 196 193 197 == Upgrade Notice == 198 = 0.2.9 = 199 Fixes silent CLI failure logging by capturing detailed output and exit codes. Recommended update for troubleshooting. 200 194 201 = 0.2.8 = 195 202 Downgrades strict memory checks to warnings, allowing conversion to proceed on systems with complex memory limit reporting. Recommended update.
Note: See TracChangeset
for help on using the changeset viewer.