-
AuthorPosts
-
February 25, 2015 at 2:55 am #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.
February 26, 2015 at 4:44 am #402438Hi stevewooldridge!
Could you provide us with a link to the site in question so that we can take a closer look please?
Regards,
RikardFebruary 26, 2015 at 6:50 am #402471This reply has been marked as private.February 26, 2015 at 6:45 pm #402899Hi!
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,
AndyFebruary 26, 2015 at 10:51 pm #403044I 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?
February 27, 2015 at 7:19 pm #403609Hi!
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,
ElliottFebruary 28, 2015 at 3:40 am #403790Hi Elliott,
I placed the code as suggested. The image is now cropping from the bottom. Weird. Any thoughts?
Thanks,
SteveMarch 2, 2015 at 5:24 am #404276Hey Steve!
Could you try and see if it works reversing it?
array( 'center', 'bottom' ) );
Cheers!
RikardMarch 2, 2015 at 11:41 pm #404851Hi Rikard,
Reversing code to bottom still did not work. Cropping from the bottom still. Frustrating.
Steve
March 3, 2015 at 8:27 pm #405376Hey!
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,
ElliottMarch 3, 2015 at 10:48 pm #405465I 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,
SteveMarch 4, 2015 at 7:19 pm #405990Hi!
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!
ElliottMarch 4, 2015 at 8:24 pm #406023This reply has been marked as private.March 5, 2015 at 7:06 pm #406605Hey!
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!
ElliottMarch 5, 2015 at 11:25 pm #406748I figured out what I was doing wrong. Under Settings > Media I had to set the image height to 0.
Thanks for the help.
Steve -
AuthorPosts
- The topic ‘Image Cropping’ is closed to new replies.