---
title: "Discussion on \"How to Validate Rectangular Images in Django Using Python\" | Hashnode"
description: "Discussion on \"How to Validate Rectangular Images in Django Using Python\". When working with image uploads in a Django project, there may be situations where you need to enforce specific dimensions, such as ensuring the uploaded image is rectangular (not square). This can be particularly useful for profile headers, banners,..."
url: "https://hashnode.com/posts/how-to-validate-rectangular-images-in-django-using-python/67614ca96e2bb47c93c4121f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Validate Rectangular Images in Django Using Python](https://blog.vicentereyes.org/how-to-validate-rectangular-images-in-django-using-python?utm_source=hashnode&utm_medium=feed)

When working with image uploads in a Django project, there may be situations where you need to enforce specific dimensions, such as ensuring the uploaded image is rectangular (not square). This can be particularly useful for profile headers, banners,...

Dec 17, 2024 · 3 min read · blog.vicentereyes.org  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#image-processing](https://hashnode.com/tag/image-processing)
-   [#django](https://hashnode.com/tag/django)

## Written by

[Vicente Reyes](https://hashnode.com/@vgreyes)

@vgreyes · MNL

  
[View profile](https://hashnode.com/@vgreyes)

Web Developer | Technical Writer | OSS Contributor | Musician | Gamer

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
