# Custom Modules for Images

**URL:** <https://community.hubspot.com/t/custom-modules-for-images/53864>\
**Category:** CMS Development\
**Created:** [March 25, 2022, 6:05pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864 "2022-03-25T18:05:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JWise2](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JWise2](https://community.hubspot.com/u/JWise2)\
**Post date:** [March 25, 2022, 6:05pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/1 "2022-03-25T18:05:03Z")

</div>

We have a custom module to showcase our Partner Logos that was built to keep our images at a set size. At present, it defaults to 125x125 icon. Based off what you see in the code, how do we get it to stop defaulting. We have made the adjustments on the side in the Content Options, but we are still limited on the size of the images.

 ![Screen Shot 2022-03-25 at 2.00.40 PM.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/8/8888949f2973ece8cd984266eb47ae7820d9a82a.jpeg)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [March 28, 2022, 2:13pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/2 "2022-03-28T14:13:14Z")

</div>

@JWise2 ,

It is most likely in a css file. Do you have a link to a page with the partner logos?

[@A\_Wessolly](https://community.hubspot.com/t5/user/viewprofilepage/user-id/328782) can most likely help if you have a bit more info 👊

---

<div class="post-metadata">

**Author:** ![JWise2](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JWise2](https://community.hubspot.com/u/JWise2)\
**Post date:** [March 29, 2022, 8:49pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/3 "2022-03-29T20:49:01Z")

</div>

We haven’t deployed the page yet, but we were using a custom module that was supposed to be for featuring partner logos. We just can’t get it to allow us to change the image sizes. Here’s a larger screenshot of the custom module items. None of the display conditions on the right actually work when editing the module on a page.

 ![image.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/c/cb2e1861138ccb07ffe3bb9b7704414a5f94718f.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [March 28, 2022, 2:45pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/4 "2022-03-28T14:45:42Z")

</div>

Hi @JWise2 ,

its probably the case that it is set up in the CSS part of that module. Probably all images of the class **“hs-partner-item”** are limited to a maximum size of 125px. You can change this number in the CSS.

**However, I would also advise to implement the function “image\_resize\_url”.**

This will crop the image to the maximum size and thus optimize the loading speed.

Reason: If you would load an image with 1200px width, it would only be displayed with 128px, but it would be downloaded in full resolution, which takes unnecessary loading time.

However, if you use the function, the image will be recalculated by HubSpot and is then also only 128px in size, although the original image was 1200px in size.

Hope this helps.

Andreas

---

<div class="post-metadata">

**Author:** ![JWise2](https://avatars.discourse-cdn.com/v4/letter/j/3bc359/32.png) [@JWise2](https://community.hubspot.com/u/JWise2)\
**Post date:** [March 29, 2022, 8:56pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/5 "2022-03-29T20:56:30Z")

</div>

Andreas,

Thank you for the response. We attempted to look into your solution but have run into a roadblock. Would the page be controlling the module? We weren’t able to find the CSS you were referencing. Here’s a more expanded image of the module settings. Even with the Display Conditions available in the module, we still aren’t able to change the image sizes and keep them defined.

Thanks,

Jason

 ![image.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/c/cb2e1861138ccb07ffe3bb9b7704414a5f94718f.jpeg)

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [April 1, 2022, 8:22pm UTC](https://community.hubspot.com/t/custom-modules-for-images/53864/6 "2022-04-01T20:22:08Z")

</div>

@JWise2

Can you post a link to the page?

If not there, it is in another css file 🙂
