webp image type support.

This topic contains 8 replies, has 4 voices, and was last updated by  Kiran 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #491933

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    I would like to upload.webp to my listings but i get an error that the upload type ain’t allowed. I modified the general-functions.php file to add the webp nime type but it doesn’t work, below is the current code:

    return apply_filters( 'geodir_allowed_mime_types', array(
    			'Image'       => array( // Image formats.
    				'jpg'  => 'image/jpeg',
    				'jpe'  => 'image/jpeg',
    				'jpeg' => 'image/jpeg',
    				'gif'  => 'image/gif',
    				'png'  => 'image/png',
    				'bmp'  => 'image/bmp',
    				'ico'  => 'image/x-icon',
    				'webp'  => 'image/webp',
    			),
    #492062

    Paolo
    Site Admin
    Post count: 31206

    I modified the general-functions.php

    You should never modify files directly. You’ll lose changes after every update.

    I flagged your request for the developers who will give you a better solution.

    Thanks

    #492077

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Okay please, I will appreciate the developer’s response

    #492123

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    There seems to be an issue even when added correctly, i will dig into it tomorrow.

    Thanks,

    Stiofan

    #492140

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Okay please, let me know when you resolve it

    #492266

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Hello Stiofan O’Connor, did you manage to fix the issue?

    #492282

    Kiran
    Moderator
    Post count: 7069

    Hi Fulvio,

    We have added support for image/webp type images. It will be in next release.

    Patch available here: https://github.com/AyeCode/geodirectory/commit/fb65c7834ba46e4bb2fd6f982d7496ed8399849f

    Thanks,
    Kiran

    #492433

    Fulvio Di Stefano
    Lifetime Member
    Post count: 134

    Unfortunately, it doesn’t work still, even after applying the patch, the error occurs on the places custom post type. it cant allow the upload of webp image extension

    #492442

    Kiran
    Moderator
    Post count: 7069

    Please try after clearing your browser cache.

    Did you allowed .webp images from CPT Settings > Custom Fields > Images?

    If still not working then provide site link and admin credentials in a private reply.

    kiran

Viewing 9 posts - 1 through 9 (of 9 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket