• Resolved kzbrain

    (@kzbrain)


    WebP Create WebP version of image ERROR

    /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php

    Uncaught WebPConvert\Exceptions\InvalidInput\InvalidImageTypeException: Unsupported mime type: image/gif in /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php:41
    Stack trace: 0 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php(48): WebPConvert\Helpers\InputValidator::checkMimeType() 1 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Helpers/InputValidator.php(58): WebPConvert\Helpers\InputValidator::checkSource() 2 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php(114): WebPConvert\Helpers\InputValidator::checkSourceAndDestination() 3 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/Converters/AbstractConverter.php(210): WebPConvert\Convert\Converters\AbstractConverter->__construct() 4 [internal function]: WebPConvert\Convert\Converters\AbstractConverter::createInstance() 5 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/ConverterFactory.php(80): call_user_func() 6 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/rosell-dk/webp-convert/src/Convert/ConverterFactory.php(110): WebPConvert\Convert\ConverterFactory::makeConverterFromClassname() 7 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-utils.php(47): WebPConvert\Convert\ConverterFactory::makeConverter() 8 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert.php(50): WPO_WebP_Utils::perform_webp_conversion() 9 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert.php(25): WPO_WebP_Convert->check_converters_and_do_conversion() 10 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-utils.php(33): WPO_WebP_Convert->convert() 11 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-convert-image-task.php(33): WPO_WebP_Utils::do_webp_conversion() 12 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task.php(296): WPO_Webp_Convert_Image_Task->run() 13 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task-manager.php(53): Updraft_Task_1_2->attempt() 14 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task-manager.php(127): Updraft_Task_Manager_1_4->process_task() 15 /virtual/kzbrain/public_html/tsuruya-online.net/wp-content/plugins/wp-optimize/webp/class-wpo-webp-task-manager.php(64): Updraft_Task_Manager_1_4->process_queue() 16 /virtual/kzbrain/public_html/tsuruya-online.net/wp-includes/class-wp-hook.php(341): WPO_Webp_Task_Manager->webp_convert_compressed_images() 17 /virtual/kzbrain/public_html/tsuruya-online.net/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters() 18 /virtual/kzbrain/public_html/tsuruya-online.net/wp-includes/plugin.php(570): WP_Hook->do_action() 19 /virtual/kzbrain/public_html/tsuruya-online.net/wp-cron.php(191): do_action_ref_array() 20 {main}

    thrown

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for contacting us! Looking at the error it was trying to convert a gif to WebP which normally isn’t supported by our plugin. I’ve been running some tests with uploading gifs and I haven’t been able to trigger that error either through manual compression or using the automatic image compression feature. I also noted that the “Convert to WebP” option is not available when looking at the Media Library so it’s definitely odd that on your site it tried to convert the gif to WebP.

    Can you confirm the version of WP-Optimize that you’re using? Also were you manually compressing and converting the images or using the automatic compression feature?

    Thanks!

    Thread Starter kzbrain

    (@kzbrain)

    WP-Optimaize ver.4.5.0 I converted the files to WebP manually.

    The permissions for the Helpera folder are set to 747.

    Thread Starter kzbrain

    (@kzbrain)

    ADD

    WP-Optimize 4.5.0 – 環境: PHP 8.5.2, MySQL 10.6.24 – Linux

    Version 6.9.4

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks so much for the update. I’m glad you were able to convert them manually as conversion from Gif to WebP is definitely possible. I’ll check with our development team to see if this conversion is something we’re looking to add in a future release of WP-Optimize.

    Thread Starter kzbrain

    (@kzbrain)

    No, the problem has not been solved.

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Apologies I thought that when you mentioned you converted them to WebP manually you did that with an alternative method, sorry for the misunderstanding! When you tried to convert manually was this in the Media Library page of WordPress or in the Uncompressed Images section of WP-Optimize > Images?

    Thanks!

    Thread Starter kzbrain

    (@kzbrain)

    It’s under “Uncompressed Images” in “WP-Optimize” > “Images.”

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for the update! Would you be able to try uploading any other Gif image and try to compress it in the same way? I just want to see if the same error appears in the log; I don’t expect it to convert to WebP as this seems to be a limitation of the plugin currently which I will confirm with Development but I want to verify if you run into the same error.

    Thanks!

    Thread Starter kzbrain

    (@kzbrain)

    Thank you for your reply. The same error occurs with GIF images. Thank you for your assistance.

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks so much for the update. I spoke with Development and as I was thinking converting Gif images to WebP is currently unsupported by the plugin; however you shouldn’t be receiving those errors. Have you been using WP-Optimize for a while or is this a recent fresh installation?

    One thing Development recommended is to re-install the plugin to see if those errors go away. To make the setup process easier after re-installation I recommend exporting your current settings from WP-Optimize > Settings > Export/Import settings if you end up wiping the settings before deactivation / deletion / re-installation.

    Let me know how it goes!

    Thread Starter kzbrain

    (@kzbrain)


    I’ve been using WP-Optimize for some time now. I’ve tried resetting the settings, uninstalling, and then reinstalling it, but the same error persists. However, the error disappears if I disable the “Create WebP version of image” function. Is this normal behavior?

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Thanks for the update. It’s expected that the error would go away when disabling the Create WebP version of the image, however our plugin still shouldn’t be trying to convert Gif to WebP as it’s currently unsupported.

    Thanks for trying a full settings wipe and re-installation, I’ll check with Development to see what else we can try so that the error will go away.

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi, would it be possible to send me a link to the GIF files that you were having issues with and they were trying to convert to WebP? I want to see if I run into the same problem on my test sites.

    This is one of the ones I was testing with if you also can try it on your site to see if it tries to convert to WebP and throw the error: https://tenor.com/view/download-gif-22139872

    Thanks!

    Plugin Support jbgupdraft

    (@jbgupdraft)

    Hi,

    Just wanted to provide a quick update. I’ve managed to trigger this error consistently using the GIF file that I had previously been testing. I’ve reported my findings to development for further investigation.

Viewing 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.