Plugin Directory

Changeset 3401132


Ignore:
Timestamp:
11/23/2025 04:23:12 AM (4 months ago)
Author:
ddegner
Message:

Update to version 0.2.9 from GitHub

Location:
avif-local-support
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • avif-local-support/tags/0.2.9/avif-local-support.php

    r3401130 r3401132  
    77 * Plugin URI: https://github.com/ddegner/avif-local-support
    88 * Description: Unified AVIF support and conversion. Local-first processing with a strong focus on image quality when converting JPEGs.
    9  * Version: 0.2.8
     9 * Version: 0.2.9
    1010 * Author: David Degner
    1111 * Author URI: https://www.DavidDegner.com
     
    2222
    2323// Define constants
    24 \define('AVIFLOSU_VERSION', '0.2.8');
     24\define('AVIFLOSU_VERSION', '0.2.9');
    2525\define('AVIFLOSU_PLUGIN_FILE', __FILE__);
    2626\define('AVIFLOSU_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • avif-local-support/tags/0.2.9/includes/class-converter.php

    r3401130 r3401132  
    214214            $snippet = $this->lastCliOutput !== '' ? substr($this->lastCliOutput, 0, 800) : '';
    215215            $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            }
    219224           
    220225            // If no specific error message but failed, add a generic one to ensure log visibility
     
    234239            }
    235240            $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');
    236246
    237247            $this->log_conversion('error', $sourcePath, $avifPath, $engine_used, $start_time, $err, $actualSettings);
  • avif-local-support/tags/0.2.9/readme.txt

    r3401130 r3401132  
    55Requires at least: 6.5
    66Tested up to: 6.8
    7 Stable tag: 0.2.8
     7Stable tag: 0.2.9
    88Requires PHP: 8.0
    99License: GPL v2 or later
     
    9797
    9898== 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
    99103= 0.2.8 =
    100104- Change: Downgrade memory limit exhaustion error to a warning and continue conversion attempt.
     
    192196
    193197== Upgrade Notice ==
     198= 0.2.9 =
     199Fixes silent CLI failure logging by capturing detailed output and exit codes. Recommended update for troubleshooting.
     200
    194201= 0.2.8 =
    195202Downgrades 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  
    77 * Plugin URI: https://github.com/ddegner/avif-local-support
    88 * Description: Unified AVIF support and conversion. Local-first processing with a strong focus on image quality when converting JPEGs.
    9  * Version: 0.2.8
     9 * Version: 0.2.9
    1010 * Author: David Degner
    1111 * Author URI: https://www.DavidDegner.com
     
    2222
    2323// Define constants
    24 \define('AVIFLOSU_VERSION', '0.2.8');
     24\define('AVIFLOSU_VERSION', '0.2.9');
    2525\define('AVIFLOSU_PLUGIN_FILE', __FILE__);
    2626\define('AVIFLOSU_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • avif-local-support/trunk/includes/class-converter.php

    r3401130 r3401132  
    214214            $snippet = $this->lastCliOutput !== '' ? substr($this->lastCliOutput, 0, 800) : '';
    215215            $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            }
    219224           
    220225            // If no specific error message but failed, add a generic one to ensure log visibility
     
    234239            }
    235240            $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');
    236246
    237247            $this->log_conversion('error', $sourcePath, $avifPath, $engine_used, $start_time, $err, $actualSettings);
  • avif-local-support/trunk/readme.txt

    r3401130 r3401132  
    55Requires at least: 6.5
    66Tested up to: 6.8
    7 Stable tag: 0.2.8
     7Stable tag: 0.2.9
    88Requires PHP: 8.0
    99License: GPL v2 or later
     
    9797
    9898== 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
    99103= 0.2.8 =
    100104- Change: Downgrade memory limit exhaustion error to a warning and continue conversion attempt.
     
    192196
    193197== Upgrade Notice ==
     198= 0.2.9 =
     199Fixes silent CLI failure logging by capturing detailed output and exit codes. Recommended update for troubleshooting.
     200
    194201= 0.2.8 =
    195202Downgrades 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.