• Resolved Brian Brown, Ph.D.

    (@brianbrown)


    Hi again, Alex!
    I see that you changed class-magic-post-thumbnail-generation.php to add webp support (since version 4.03), but you forgot to add it to the dropdown in class-magic-post-thumbnail-generation.php, so add:
    esc_html__( 'webp', 'mpt' ) => 'webp'
    at line 198 (trailing comma not needed).
    Just trying to be helpful.
    Cheers!
    -Brian

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandre Gaboriau

    (@mcurly)

    Hi Brian !
    I don’t see which part of the code because l 198 refers to the function MPT_create_thumb() for me.
    Which dropdown do you mean?

    Thread Starter Brian Brown, Ph.D.

    (@brianbrown)

    Oops. My bad. Wrong file. It should be: google_image.php
    Starting at line 192:

    $filetype = array(
    				esc_html__( '-- Default --', 'mpt' ) => '',
    				esc_html__( 'jpg', 'mpt' )           => 'jpg',
    				esc_html__( 'png', 'mpt' )           => 'png',
    				esc_html__( 'gif', 'mpt' )           => 'gif',
    				esc_html__( 'bmp', 'mpt' )           => 'bmp',
    				esc_html__( 'webp', 'mpt' )          => 'webp'
    			);
    Plugin Author Alexandre Gaboriau

    (@mcurly)

    Ah yes, you are right!
    The change is done, I’ll push it wit the next update.
    Thanks Brian.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘webp’ is closed to new replies.