Using jpegoptim for optimize, speed up servers

Discussion in 'Site & Server Administration' started by Mesut SEZER, Oct 10, 2013.

  1. #1
    Using jpegoptim for speed up servers while optimizing pictures.
    For example for a adsense publisher, you might have noticed Red flag for image optimization problem. I see for the sites I manage is the image optimization problem. Fortunately, Google is not just showing you the problem , here is the best i recommend (because of i did it), which worked well. All of the commands are in SSH interface .

    you have to install libjpeg first. It’s a library that’s being used by the tool to optimize the file.

    yum -y install libjpeg
    Code (markup):
    Once done, we can go ahead witht he installation of jpegoptim by downloading, compiling and installing the tool.

    cd /tmp
    mkdir jpegoptim
    cd jpegoptim
    wget http://www.kokkonen.net/tjko/src/jpegoptim-1.3.0.tar.gz
    zcat jpegoptim-1.3.0.tar.gz | tar xf -
    cd jpegoptim-1.3.0
    ./configure
    make
    make strip
    make install
    Code (markup):
    And now, start the optimization. Here’s the command to find all the jpeg files on your server.

    find / -iregex '.*\.\(jpg\|JPG\|jpeg\|JPG\)' -type f -exec /usr/local/bin/jpegoptim --strip-all {} ';'
    Code (markup):
    And you’re done.

    Best wishes ,

    Mesut

    References:
    Google Adsense
     
    Mesut SEZER, Oct 10, 2013 IP
  2. bitronictech

    bitronictech Active Member

    Messages:
    74
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #2
    You don't think that Deflate or Gzip compression at the web server level is sufficient?
     
    bitronictech, Oct 16, 2013 IP
  3. Mesut SEZER

    Mesut SEZER Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Maybe. it's all about google dev recommendations and solution know-how.
     
    Mesut SEZER, Oct 17, 2013 IP
  4. bitronictech

    bitronictech Active Member

    Messages:
    74
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Have you considered using YSlow Smush.It? If you use wordpress I think there is a plugin that will automatically compress all of your images. If not it's easy enough to do manually.

    I think that load time is a big factor, but with fast connections of today image size is always the only issue.
     
    bitronictech, Oct 17, 2013 IP