• Resolved MrMyles

    (@mrmyles)


    Is there a way to adjust the image cropping of vehicles?
    The system seems to be cropping the small images on the right/left and this cuts off sections of the vehicle.

Viewing 1 replies (of 1 total)
  • Plugin Author autolistings

    (@autolistings)

    Hi,

    Auto Listings has two image sizes: ‘al-lge’ and ‘al-sml’. I guess that you need to override these image sizes. Please try this code.

    
    add_action( 'init', 'your_prefix_add_new_image_sizes', 20 );
    
    /**
     * Plugin image sizes.
     */
    function your_prefix_add_new_image_sizes() {
    	add_image_size( 'al-lge', 'your_new_size', 'your_new_size', array( 'center', 'center' ) ); // main.
    	add_image_size( 'al-sml', 'your_new_size', 'your_new_size', array( 'center', 'center' ) ); // thumb.
    }
    
    • This reply was modified 3 years, 10 months ago by autolistings.
Viewing 1 replies (of 1 total)
  • The topic ‘Awkward Image Cropping’ is closed to new replies.