Support » Plugin: Imsanity » Help with cropping files

  • Resolved dnikola



    could you please tell me is it possible to crop images with bulk tool.

    I created and uploaded with batch proces a lot of post’s with featured image size of
    1058px x 2280px

    I would like to resize them to 1058px x 1511px crop center center

    i tried with code

    add_filter( 'imsanity_crop_image', 'imsanity_crop_position_custom' );
    function imsanity_crop_position_custom( $crop ) {
        return array( 'center', 'center' );

    and in here is example of settings in plugins page


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


    Your function only needs to return true, it doesn’t need to touch the alignment, since “center, center” is the default.
    With that in place, it should be cropping, what are you seeing it do?

    Thread Starter dnikola



    thanks for your replay!

    I tried also tried to use this in my functions file

    add_filter( 'imsanity_crop_image', '__return_true' );

    it just resize picture to larger size 🙂

    for example now is
    1058 x 2280
    it should crop it to
    1058 x 1511

    but it resize it to
    701 x 1511

    setting in plugins are like this one

    Once again thanks!

    Plugin Author nosilver4u


    Hmm, that’s what I get too. I’ll have to investigate further.

    Bug report at

    • This reply was modified 2 years, 7 months ago by nosilver4u.
    Thread Starter dnikola


    hmm 🙂

    ok Thanks i will wait for your replay! 🙂

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with cropping files’ is closed to new replies.