<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Batch_jpeg_Image_Optimization</id>
		<title>Batch jpeg Image Optimization - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Batch_jpeg_Image_Optimization"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;action=history"/>
		<updated>2026-06-04T12:29:10Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=574&amp;oldid=prev</id>
		<title>Brian at 14:52, 14 March 2014</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=574&amp;oldid=prev"/>
				<updated>2014-03-14T14:52:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:52, 14 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here are our results - http://www.webpagetest.org/result/140311_HN_10Z0/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here are our results - http://www.webpagetest.org/result/140311_HN_10Z0/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Centos]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:530:newid:574 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=530&amp;oldid=prev</id>
		<title>Brian: /* Optimize a Single Image */</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=530&amp;oldid=prev"/>
				<updated>2014-03-11T20:18:42Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Optimize a Single Image&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 20:18, 11 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sample output&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Sample output&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; image.jpg 710x275 24bit &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;P &lt;/del&gt;JFIF&amp;#160; [OK] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;136256 &lt;/del&gt;--&amp;gt; 136256 bytes (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;0&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;00&lt;/del&gt;%), optimized.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; image.jpg 710x275 24bit &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;N &lt;/ins&gt;JFIF&amp;#160; [OK] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;143161 &lt;/ins&gt;--&amp;gt; 136256 bytes (&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;4&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;82&lt;/ins&gt;%), optimized.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Optimize all JPEG images===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Optimize all JPEG images===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:529:newid:530 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=529&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==How to compress a jpg image on Centos==  The other day I was running a webpagetest on a clients site and the results were telling me to Compress Images  Now there was close ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Batch_jpeg_Image_Optimization&amp;diff=529&amp;oldid=prev"/>
				<updated>2014-03-11T20:17:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==How to compress a jpg image on Centos==  The other day I was running a webpagetest on a clients site and the results were telling me to Compress Images  Now there was close ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==How to compress a jpg image on Centos==&lt;br /&gt;
&lt;br /&gt;
The other day I was running a webpagetest on a clients site and the results were telling me to Compress Images&lt;br /&gt;
&lt;br /&gt;
Now there was close to 200 images that needed to be compressed and optimized. That is when I found jpegoptim&lt;br /&gt;
&lt;br /&gt;
You can learn more about jpegoptim, by reading the man page.&lt;br /&gt;
&lt;br /&gt;
===Optimize a Single Image===&lt;br /&gt;
&lt;br /&gt;
If you are looking to optimize a single image, you would just type&lt;br /&gt;
&lt;br /&gt;
 jpegoptim image.jpg&lt;br /&gt;
&lt;br /&gt;
Sample output&lt;br /&gt;
&lt;br /&gt;
 image.jpg 710x275 24bit P JFIF  [OK] 136256 --&amp;gt; 136256 bytes (0.00%), optimized.&lt;br /&gt;
&lt;br /&gt;
===Optimize all JPEG images===&lt;br /&gt;
&lt;br /&gt;
You can use the find command to locate all *.jpg images under your current directory by using the following&lt;br /&gt;
&lt;br /&gt;
 for x in $(find $PWD -iname &amp;quot;*.jpg&amp;quot;); do jpegoptim $x; done&lt;br /&gt;
&lt;br /&gt;
By default it will optimize all images in their current locations.&lt;br /&gt;
&lt;br /&gt;
===Optimize all JPEG images and convert to Progressive===&lt;br /&gt;
&lt;br /&gt;
You will also get a boost in load speeds by converting all images to use progressive, meaning that the entire images does not need to load before going to next request.&lt;br /&gt;
&lt;br /&gt;
  for x in $(find $PWD -iname &amp;quot;*.jpg&amp;quot;); do jpegoptim --all-progressive $x; done&lt;br /&gt;
&lt;br /&gt;
Now rerun your webpagetest and see the differences &lt;br /&gt;
&lt;br /&gt;
Here are our results - http://www.webpagetest.org/result/140311_HN_10Z0/&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>