• Resolved dnikola

    (@dnikola)


    Hello

    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
    https://prntscr.com/mmwh08

    Thanks

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

    (@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

    (@dnikola)

    Hi,

    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
    https://prnt.sc/mmwh08

    Once again thanks!

    Plugin Author nosilver4u

    (@nosilver4u)

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

    Bug report at https://github.com/nosilver4u/imsanity/issues/9

    • This reply was modified 5 years, 9 months ago by nosilver4u.
    Thread Starter dnikola

    (@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.