# Image Resizing Preprocessing method

**URL:** <https://discuss.roboflow.com/t/image-resizing-preprocessing-method/5095>\
**Category:** 🤝  Community Help\
**Created:** [April 3, 2024, 7:57am UTC](https://discuss.roboflow.com/t/image-resizing-preprocessing-method/5095 "2024-04-03T07:57:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haoyi\_gan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/haoyi_gan/32/4163_2.png) [@haoyi\_gan](https://discuss.roboflow.com/u/haoyi_gan)\
**Post date:** [April 3, 2024, 7:57am UTC](https://discuss.roboflow.com/t/image-resizing-preprocessing-method/5095/1 "2024-04-03T07:57:24Z")

</div>

Hi, I am a student, doing a CNN project on my own to classify images and i am trying to resize the images. I have 2 classes, Animals and No Animals. I annotated the animals class using an object detection dataset in roboflow, and added a preprocessing technique to resize the images to 640x640. However, i would also like to do this for my No Animal image, and i cant upload them to roboflow as i am using a free account.  
May I ask how does roboflow resize the image for the preprocessing method? I tried a few different resizing techniques in python using cv2 and pillow but the structural similarity of the image resized by roboflow is different from the image that i used cv2 and pillow to resize.

I would greatly appreciate any help for this. thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [April 24, 2024, 7:57am UTC](https://discuss.roboflow.com/t/image-resizing-preprocessing-method/5095/2 "2024-04-24T07:57:25Z")

</div>

Closed on April 24, 2024, 7:57am UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
