RSS/Atom feed Twitter
Site is read-only, email is disabled

"smart" cropping?

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

"smart" cropping? DJ 05 Jun 23:39
  "smart" cropping? Victor Domingos 06 Jun 00:08
   "smart" cropping? DJ 06 Jun 06:49
    "smart" cropping? Victor Domingos 06 Jun 15:03
     "smart" cropping? Sven Neumann 06 Jun 22:42
DJ
2007-06-05 23:39:26 UTC (over 17 years ago)

"smart" cropping?

Hi Gimp-user,

This is sort of a hypothetical question... are there any Linux tools, Gimp or additional, that can do "smart" cropping?

I'm writing a script that will change the height and width and maintain aspect ratio for NTSC TV (based on info I read at scantips.com and other, plus personal testing). I change the width to 576, and if the height is then greater than 480, I make it 480. I'm using Bash and ImageMagick. When I do a ImageMagick "identify -verbose" there is tons of info he knows, including border info. Now I don't know what this all means and have to do some reading, but that got me thinking :-) that perhaps tools can make certain assumptions about light and dark. All the pictures have white borders. Even if 80% are successful, it would be something. I started using ImageMagick directly when I needed to batch convert xcf to jpgs so it is something I know something about and can easily put into a Bash script, and it comes up a lot while googling.

Thank you.

Victor Domingos
2007-06-06 00:08:05 UTC (over 17 years ago)

"smart" cropping?

Em 2007/06/05, às 22:39, DJ escreveu:

This is sort of a hypothetical question... are there any Linux tools, Gimp or additional, that can do "smart" cropping?

If you mean cropping an image by cutting off the white borders, just try this in GIMP: Image > Autocrop Image.

Victor Domingos http://lojamac.com/blog

DJ
2007-06-06 06:49:53 UTC (over 17 years ago)

"smart" cropping?

Hi,

This is sort of a hypothetical question... are there any Linux tools, Gimp or additional, that can do "smart" cropping?

VD> If you mean cropping an image by cutting off the white borders, just VD> try this in GIMP: Image > Autocrop Image.

D'oh! Did I miss that one.

I just tried it on one of the photos and it doesn't do anything. The image is the same, there is no message in the status bar, and nothing in the undo. HHHhhhhm... I went to the online manual, 9.18, and it seems pretty straight forward. Is there some trick or gotcha about it?

Thank you.

Victor Domingos
2007-06-06 15:03:32 UTC (over 17 years ago)

"smart" cropping?

Em 2007/06/06, às 05:49, DJ escreveu:

This is sort of a hypothetical question... are there any Linux tools, Gimp or additional, that can do "smart" cropping?

VD> If you mean cropping an image by cutting off the white borders, just
VD> try this in GIMP: Image > Autocrop Image.

D'oh! Did I miss that one.

I just tried it on one of the photos and it doesn't do anything. The image is the same, there is no message in the status bar, and nothing
in the undo. HHHhhhhm... I went to the online manual, 9.18, and it seems pretty straight forward. Is there some trick or gotcha about it?

Thank you.

It should work without any tricks, unless the image borders that you want to crop are not pure white. If the borders are not white, they won't be cropped.

Victor Domingos http://lojamac.com/blog

Sven Neumann
2007-06-06 22:42:14 UTC (over 17 years ago)

"smart" cropping?

Hi,

On Wed, 2007-06-06 at 14:03 +0100, Victor Domingos wrote:

It should work without any tricks, unless the image borders that you want to crop are not pure white. If the borders are not white, they won't be cropped.

They don't need to be white, just of a uniform color.

Sven