Preserve Aspect Ratio of Featured Image on Athemes Posts Carousel

Hi all,
I’lm at a loss how to preserve the original aspect ratio of a post’s featured image when it is displayed on the carousel of “aThemes: Posts”. They show as an arbitrary crop, and I have no idea where the aspect ratio is being determined at.
With .owl-carousel .owl-item img I can freely manipulate width and height of these thumbnails, but the underlying image always remains cropped.
Thanks for any advice on how to crack this!

Hello there,

Try 128:85 aspect ratio as on this image we’re using on our demo.

Regards,
Kharis

Hi Kharis,

Thanks, but I’m afraid I don’t quite follow? I know of no direct way to manipulate the aspect ratio.

The reason that I can’t seem to change it via the template’s CSS is that it draws on a src that is already cropped, as below:

</div>
<div class="blog-post col-md-12">
  <div class="entry-thumb">
    <a href="https://xyz.com/2019/09/09/motion-picture/" title="Motion Picture">
      <img width="550" height="400" src="https://xyz.com/wp-content/uploads/2019/09/lawrence-70mm-178**-550x400.jpg**" class="attachment-medium-thumb size-medium-thumb wp-post-image" alt="" />
    </a>
  </div>	

Is there a way I can pre-empt this?
Thanks,
Max

Hello there,

The final size of image on that section is configured in theme’s functions. All larger size will down sized to 500x400 px width hard crop applied. To change it, use Simple Image Sizes plugin.

Once enabled, go to Settings > Media; and find the “medium-thumb size” row. Enter 99999 for maximum height. Save. You might need to regenerate thumbnails to apply new size on uploaded images. To do so, you can use this plugin:

Regards,
Kharis

Hi Kharis,

Great, that did it.

(There’s also option to deactivate cropping in media settings now.)

Thanks, and keep up the good work,
Max

You’re welcome Max!

Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

Regards,
Kharis