BuddyDev

Search

[Resolved] MediaPress upload and image optimization with Robin Image Optimizer Plugin

  • Participant
    Level: Initiated
    Posts: 2
    Marcel Jäger on #30478

    Hi,

    i’m using Robin Image Optimizer Plugin but unfortunately the images I upload with Mediapress doesn’t get auto optimized on upload. I already read your blog post(https://buddydev.com/resizing-optimizing-photos-uploaded-by-mediapress/ ) but I don’t get it work with this plugin.

    Could you help me get it work?

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #30501

    Hi,
    Thank you for the question.

    You may add following to your bp-custom.php

    
    
    add_filter( 'mpp_generate_metadata', 'WRIO_Media_Library::optimize_after_upload', 10, 2 );
    
    

    That should make it work with the above plugin.

    Regards
    Brajesh

  • Participant
    Level: Initiated
    Posts: 2
    Marcel Jäger on #30516

    Hi Brajesh,

    Thank you for your quick response. It works fine!

    Regards
    Marcel

  • Keymaster
    (BuddyDev Team)
    Posts: 24706
    Brajesh Singh on #30529

    You are welcome. I am glad it worked.

    Regards
    Brajesh

The topic ‘ [Resolved] MediaPress upload and image optimization with Robin Image Optimizer Plugin’ is closed to new replies.

This topic is: resolved