Page 1 of 1

Need to Resize Thousands of Images on Apache Server

Posted: 2016-09-07T09:34:56-07:00
by horizon70s
Greetings,

We have a directory, on our apache server, that has thousands of images that are around 2500x1500 pixels in Width. We're in need to have these resized to a max of 2000 pixels, either width or height, and have them maintain the same name/location structure.

I'm just a bit nervous about making a mistake, as these are our images used to sell on Amazon so it's important.

I appreciate your time looking. We're a small E-commerce company based in Bismarck, North Dakota (usa).

Thanks

Chris
701-866-1909

Re: Need to Resize Thousands of Images on Apache Server

Posted: 2016-09-08T11:46:32-07:00
by dlemstra
The keyword here is making a backup before you start your resize action. The following should do the trick:

Code: Select all

mogrify -resize 2000x2000\> *
p.s. Why was this message posted in the consulting part?

Re: Need to Resize Thousands of Images on Apache Server

Posted: 2016-09-08T14:53:25-07:00
by fmw42
If they are not all in the same directory level (not subdirectories that have to be traversed), then the mogrify solution will work. Otherwise, you need to write a unix shell script to loop over your directory tree for each folder that has those images and then run mogrify on each folder.

Please always provide your IM version and platform (in this case Linux I presume!

I have moved this to the Users forum, since you do not mention PAID consulting.