Page 1 of 1

A newbie question

Posted: 2017-08-08T19:47:07-07:00
by michaln9817
Hi there!

A friend told me about ImageMagick but i'm not 100% sure it would solve my problem..

I'll be happy to get your input.

My joomla based site has around 6 giga of images I would like to optimize
1 - Will ImageMagick work with so many images?
2 - Assuming the answer is YES - How do I do it?
3 - Every time the process is interrupted for some reason and I start again - Does it optimize just what is left, or everything from the beginning?
3 - Assuming I managed to optimize everything, What's happening from now on? If I upload 20 new images per day, Does it optimize it automatically or do I have to do something manually?

Thanks in advance..

Re: A newbie question

Posted: 2017-08-08T20:13:57-07:00
by fmw42
Can you explain exactly what you do to optimize your images now? Also what is your OS/Platform?

Imagemagick can process all images in a folder and put them in another folder via the mogrify command. You can also write a script loop (depending upon your OS) that would loop over all images in a directory or list of files and optimize them using the convert command and write them to a new directory and delete the old one if desired. If you have to restart, then you could them just process the script again for all images left in the input directory. Depending upon your OS, you can call a timing script that checks some directory for new images and processes all those files to put them somewhere else and delete the originals. Again the is a scripting issue. IM mainly does the processing and not the bookkeeping, except for mogrify, which process a whole folder of images in one command.

For novices, see

viewtopic.php?f=1&t=9620http://http://w ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/

Also see http://www.imagemagick.org/Usage/basics/#mogrify