Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #401832

    Hello. How do I position the cropped image to the upper left? I don’t want my portfolio images cropped in the center. Thanks.

    #402438

    Hi stevewooldridge!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #402471
    This reply has been marked as private.
    #402899

    Hi!

    try to use a plugin like this: https://wordpress.org/plugins/simple-image-sizes/ to have more control over your images.

    Hope that helps.

    Regards,
    Andy

    #403044

    I have been using that plugin but the portfolio preview image still gets cropped from the center. Is there something in the function.php that I can edit to position the image from the x y coordinates?

    #403609

    Hi!

    Try opening up /enfold/framework/php/function-set-avia-backend.php and change line 477 from this.

    $avia_config['imgSize'][$sizeName]['crop']);
    

    To this.

    array( 'center', 'top' ) );
    

    And then upload a new image to see if it crops from the top.

    Regards,
    Elliott

    #403790

    Hi Elliott,

    I placed the code as suggested. The image is now cropping from the bottom. Weird. Any thoughts?

    Thanks,
    Steve

    #404276

    Hey Steve!

    Could you try and see if it works reversing it?

    array( 'center', 'bottom' ) );
    

    Cheers!
    Rikard

    #404851

    Hi Rikard,

    Reversing code to bottom still did not work. Cropping from the bottom still. Frustrating.

    Steve

    #405376

    Hey!

    Are you sure you uploaded a new image to check it? It’s not going to change your existing images but you can regenerate them with this plugin, https://wordpress.org/plugins/regenerate-thumbnails/.

    Regards,
    Elliott

    #405465

    I uploaded a new image, regenerated thumbnails and it is still cropping from the center with this code: array(‘center’,’top’) );

    Enfold crops from the bottom with: array(‘center’,’bottom’) );

    The regenerate thumbnails plugin that you suggested does not work with latest WordPress install so I used simple image sizes.

    I hope that we can find a solution. Most of my projects are website designs. Cropping from the center cuts off the top navigation and hero image which looks unprofessional.
    Regards,
    Steve

    #405990

    Hi!

    Hmm, it’s cropping from the top on my XAMPP setup so I’m not sure what else to tell you here. Send us a WordPress and FTP login and we’ll take a look.

    Cheers!
    Elliott

    #406023
    This reply has been marked as private.
    #406605

    Hey!

    I’m not sure. I tried logging in to your server via FTP but I keep getting this.

    Error:	Connection timed out after 20 seconds of inactivity
    Error:	Failed to retrieve directory listing
    

    Try deactivating all of your plugins and then upload another image to see what happens.

    Cheers!
    Elliott

    #406748

    I figured out what I was doing wrong. Under Settings > Media I had to set the image height to 0.

    Thanks for the help.
    Steve

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘Image Cropping’ is closed to new replies.