# Image aspect ratio lost when creating new listing category

**URL:** <https://community.hivepress.io/t/image-aspect-ratio-lost-when-creating-new-listing-category/15651>\
**Category:** HivePress\
**Created:** [April 21, 2025, 7:46pm UTC](https://community.hivepress.io/t/image-aspect-ratio-lost-when-creating-new-listing-category/15651 "2025-04-21T19:46:04Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [April 29, 2025, 7:58pm UTC](https://community.hivepress.io/t/image-aspect-ratio-lost-when-creating-new-listing-category/15651/18 "2025-04-29T19:58:24Z")

</div>

Sorry for the confusion, I figured that you describe the small-height category images as an issue, but if you want them to appear this way, then a code snippet is needed. Preserving the aspect ratio is not the expected behaviour because the portrait image size is set to 400x533px, with cropping. Please use this code snippet to adjust these settings [Change size of images in the listing category - #2 by aqmiami7](https://community.hivepress.io/t/change-size-of-images-in-the-listing-category/7548/2) For example, if you set 400px width and 9999px height, and re-upload the image (changes are applied on re-uploading), WordPress will leave the image height “as is” without cropping it to 533px like it does currently.

---

_[View the full topic](https://community.hivepress.io/t/image-aspect-ratio-lost-when-creating-new-listing-category/15651)._
