Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.