# Badger2040 image size always full width (using convert.py)

**URL:** <https://forums.pimoroni.com/t/badger2040-image-size-always-full-width-using-convert-py/19177>\
**Category:** Support\
**Created:** [March 26, 2022, 5:42am UTC](https://forums.pimoroni.com/t/badger2040-image-size-always-full-width-using-convert-py/19177 "2022-03-26T05:42:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtcircus](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@jtcircus](https://forums.pimoroni.com/u/jtcircus)\
**Post date:** [March 26, 2022, 5:42am UTC](https://forums.pimoroni.com/t/badger2040-image-size-always-full-width-using-convert-py/19177/1 "2022-03-26T05:42:43Z")

</div>

I’m using Thonny with convert.py to prep my images.  
I seem to always get a full width badger image (296 x 128 pixels)

With this line in the shell: , I get a full width badger image, even though my source image is 128 x 128 px  
%Run convert.py --resize --binary JTheadshot128x128BW\_2.png

When I remove the --resize, I’m still getting a full width badger image (same source image 128x128 px), AND the upper few rows (upper third) of the image is scrambled  
%Run convert.py --binary JTheadshot128x128BW\_2.png

Any tips? I’m new to this and I thought I was following the intro blog carefully.  
Thank you

---

<div class="post-metadata">

**Author:** ![hel](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/hel/32/6075_2.png) [@hel](https://forums.pimoroni.com/u/hel)\
**Post date:** [March 28, 2022, 9:20am UTC](https://forums.pimoroni.com/t/badger2040-image-size-always-full-width-using-convert-py/19177/2 "2022-03-28T09:20:36Z")

</div>

That’s weird - can you send a screenshot/photo of the output you get from Thonny when you run `convert.py`?

Are you trying to prep an image to use with the badge example? If so you’ll want your image to be 104 in width and 128 in height.
