# Function like "crop to content" from GIMP

**URL:** <https://forum.opencv.org/t/function-like-crop-to-content-from-gimp/11803>\
**Category:** Uncategorized\
**Created:** [January 29, 2023, 7:09pm UTC](https://forum.opencv.org/t/function-like-crop-to-content-from-gimp/11803 "2023-01-29T19:09:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andife](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@andife](https://forum.opencv.org/u/andife)\
**Post date:** [January 29, 2023, 7:09pm UTC](https://forum.opencv.org/t/function-like-crop-to-content-from-gimp/11803/1 "2023-01-29T19:09:28Z")

</div>

Hi,  
I wonder if somehow has implemented a function like the “crop to content” which is available at gimp?

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [January 29, 2023, 10:53pm UTC](https://forum.opencv.org/t/function-like-crop-to-content-from-gimp/11803/2 "2023-01-29T22:53:56Z")

</div>

please link to examples/specification of this thing in GIMP, and source code if possible.

please provide an example situation (code, data) on which you need this function performed, and how the result in GIMP looks like.
