Mobile app version of vmapp.org
Login or Join
Correia994

: I have a lot of images for my website. However, they all need to be cropped. Is there a way using graphics magick? I have about 4000 images that need to be cropped. The task is rather simple

@Correia994

Posted in: #Graphics #Images

I have about 4000 images that need to be cropped. The task is rather simple really. They all have a white border that varies but is always between say 20 and 50 pixels. I want to use graphics magick to remove that white border from all the images. How?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Correia994

3 Comments

Sorted by latest first Latest Oldest Best

 

@Correia994

The GraphicsMagick -trim operator here. Does what I need. Thanks for the other suggestions.

10% popularity Vote Up Vote Down


 

@Odierno851

You could write a php script that crops all of the images.
php.net/manual/en/function.imagecopyresampled.php

10% popularity Vote Up Vote Down


 

@Miguel251

You can batch crop & resize images with the free IrfanView tool

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme