Jump to content

Crop not important part of an image


nachitox

Recommended Posts

I'll explain with an example:

I have this image: http://www.fitnessvital.com/images/galeria/caballo-pastando-0.jpg

I create a thumbnail of it: http://www.fitnessvital.com/images/galeria/thumbs/caballo-pastando-0.jpg

 

You can see that it's a big image where the important thing is the horse. The grass is not important.

So, the best thing to do it's to crop the extra grass and resizing the rest.

 

So the question is:

There's a way of recognizing the objects of an image and crop the rest ? Or identify the non important of an imagen and cropt it ? (the same rewrited)

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/251253-crop-not-important-part-of-an-image/
Share on other sites

This will always be best done manually. Although there are some very complex image programs out there that may be able to do this, I don't believe is a free or usage effective script out there for this.

 

I have seen ways of detecting the most used colors and if is an outer color can crop that, but a computer does not know which part of the image is the most important to you. While I see it may be possible using outlining of objects and group then as the alltogether center image, then use that as a base for center, this is well beyond simple programming.

 

Here are some useful imagemagic scripts you may find useful though.

http://www.fmwconcepts.com/imagemagick/innercrop/index.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.