Hello, please kindly is following linux command safe to execute on server? (aim is to optimise losslessly all jpg, gif, png images recursivelly) find /home -type f -name "*.jpg" -o -name "*.png" -exec trimage -f {} \; Code (markup): (http://trimage.org/) the /home is around 30Gb big with a websites, can You suggest on how to test it, and execute safelly without images loss, breaking? PS: i also found: find . -type f -name "*.jpg" -exec jpegoptim {} \; Code (markup): (but works only for jpg, i would like jpg, png and gif) Thank you
The command is safe to execute on server and it will optimize your all images, but for a safer side take a full back-up before executing this command. Also, look at http://www.imagemagick.org/.
i tried to install trimage on my CentOS 6.5 x64, but it dont run saying "No module named PyQt4.QtCore". I can do "yum install PyQt4", but it want to: "Install 31 Package(s) Total download size: 40 M Installed size: 133 M" Here is list of dependencies: http://pastebin.com/EkKnSCyW Thats alot of data and im unsure if its safe to do it and if it wont need more and more dependencies after, please any idea how to install Trimage dependencies cleanly?
Trimage or Imagemagick; these are large and complicated beast and they require many files for configuration and too much modules (dll’s) that only loads as needed for handling different file formats. So you need install all the requirements. Check the following two URLs; you will find some handful information. Hopefully helpful!!!
thx, at the end i ended up using jpegoptim for jpg and optipng for pngs, here is tutorial on that. As you say i think trimage is too heavy and while there are other simple tools already in repos.. no need to bother with trimage etc on server probably