Support » Plugin: Perfect Images (Retina, Thumbnails, Replace, CDN) » Filter for custom crop data

  • Resolved Markus Weigelt


    We need support for the Crop-Thumbnails Plugin.

    Please provide a filter with to resize with custom crop data.

    In this filter we need the attachment id and informations what you need to crop images.

    For Manual Image Crop Plugin there exists an implementation in core.php we want to hook into that point.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jordy Meow



    Sorry for the late reply.

    Manual Image Crop doesn’t seem to work anymore so maybe I should just remove this support. I could add this:

    $customCrop = apply_filters( 'wr2x_custom_crop', null );

    Would this be fine for you? It will be used by the crop function of the wp_get_image_editor but I guess you already know that 🙂

    If that’s fine with you, I can push this right away.

    Thread Starter Markus Weigelt



    no problem.

    In my case i need more parameters

    // $name = size
    // $id = attachment id
    $customCrop = apply_filters( ‘wr2x_custom_crop’, null, $id, $name);

    Thx for efforts that will be fine for me and for others.

    Plugin Author Jordy Meow


    It’s totally fine, of course. I added that filter in the plugin and released a new version (5.5.4). Please update and you can try implementing it.

    Thread Starter Markus Weigelt


    Thank you.

    Works for me. 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filter for custom crop data’ is closed to new replies.