• bnfw

    (@voltronik)


    Hi,
    Great plugin! For some reason though, i’m having a problem where retina generated images using your plugin aren’t respecting their set crop locations.

    I have this in my theme which should provide a pretty decent crop across all team photos:
    add_image_size( 'team-thumb', 158, 158, array( center, center ) );

    This works perfectly for 1x images that have been uploaded.
    I’m also using My Eyes Are Up Here to specify new crop locations of images where needed.

    For some reason, all 2x images are generated as if set to bottom center instead of center center or the new crop location set in My Eyes Are Up Here.

    Here’s an example:
    Uploaded 1x image using code in functions.php
    WP Retina 2x generated @2x image, not centered

    I’ve tried using Regenerate Thumbnails and then bulk processing the 2x images in the Media > Retina screen but it doesn’t seem to change anything.

    Do you know why this might be happening?

    Thanks for any help in advance,
    Jack

    https://www.ads-software.com/plugins/wp-retina-2x/

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

    (@tigroumeow)

    Hello Voltronik,

    Just to make sure, if you don’t use My Eyes Are Up Here, is it working fine? Manual cropping requires extra work on my end actually (or on the end of that cropping plugin), it doesn’t work naturally and automatically. I actually added support for another plugin: https://www.ads-software.com/plugins/manual-image-crop/. It works well with it. The author of My Eyes Are Up Here can add support for Retina very easily, in one line or two. If you contact him and ask him if he is willing to collaborate, we can talk about it on this support thread and I will tell him exactly how we can do it. Or I can do it on my end too. Let’s do it.

    Thread Starter bnfw

    (@voltronik)

    Hi Jordy,
    Thanks for your reply.

    I’ve just disabled the My Eyes Are Up Here plugin, regenerated the thumbnails, the Bulk Processed the images in the Media > Retina screen and it’s still the same.

    It does seem that WP Retina 2x isn’t respecting the settings in add_image_size for some reason.

    Can you confirm?

    Thanks,
    Jack

    Thread Starter bnfw

    (@voltronik)

    Hi Jordy,

    Just wondered if you had an update on this?
    Have now been able to confirm this on 2 separate sites.

    Thanks,
    Jack

    Plugin Author Jordy Meow

    (@tigroumeow)

    Hello,

    Sorry, I don’t confirm yet, actually on another thread we are testing the plugin with Manual Image Crop because it used to work and we discover that that plugin has an issue. When using the GENERATE button of WP Retina 2x it works. I am not sure what happens with My Eyes Are Up Here but it actually “should not” work because I never tried it and never implemented support for it. I would need to implement support.

    However, if you set up a standard crop for your image then it should follow it. So basically if I install a normal version of WP, drop add_image_size( ‘team-thumb’, 158, 158, array( center, center ) ); in my functions.php and upload a few images, the Retina files will look different from the normal files?

    Thread Starter bnfw

    (@voltronik)

    Yes, that’s correct.
    That’s what I’m seeing – WP Retina 2x isn’t respecting the crop locations (center, center) of the custom image sizes.

    Plugin Author Jordy Meow

    (@tigroumeow)

    Sorry for the delay, it’s flagged on my side, I am working on it with a bunch of other stuff ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘2x generated images not respecting set crop location’ is closed to new replies.