Apptrian_Image_Optimizer - Version 1.1.0

Version Notes

+ Added support for jpegtran and set as default JPG optimization utility

Download this release

Release Info

Developer Apptrian
Extension Apptrian_Image_Optimizer
Version 1.1.0
Comparing to
See all releases


Code changes from version 1.0.1 to 1.1.0

app/code/community/Apptrian/ImageOptimizer/Helper/Utility.php CHANGED
@@ -81,6 +81,10 @@ class Apptrian_ImageOptimizer_Helper_Utility extends Mage_Core_Helper_Abstract {
81
82
$cmd = $this->getUtilPath() . DS . Mage::getConfig()->getNode('apptrian_imageoptimizer/utility/' . $type, 'default') . $this->getUtilExt() . ' ' . Mage::getConfig()->getNode('apptrian_imageoptimizer/utility/' . $type . '_options', 'default') . ' ' . $filePath;
83
84
return $cmd;
85
}
86
81
82
$cmd = $this->getUtilPath() . DS . Mage::getConfig()->getNode('apptrian_imageoptimizer/utility/' . $type, 'default') . $this->getUtilExt() . ' ' . Mage::getConfig()->getNode('apptrian_imageoptimizer/utility/' . $type . '_options', 'default') . ' ' . $filePath;
83
84
+ if (Mage::getConfig()->getNode('apptrian_imageoptimizer/utility/' . $type, 'default') == 'jpegtran') {
85
+ $cmd .= ' ' . $filePath;
86
+ }
87
+
88
return $cmd;
89
}
90
app/code/community/Apptrian/ImageOptimizer/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
<config>
12
<modules>
13
<Apptrian_ImageOptimizer>
14
- <version>1.0.1</version>
15
</Apptrian_ImageOptimizer>
16
</modules>
17
<global>
@@ -74,8 +74,8 @@
74
<path>lib/apptrian/imageoptimizer</path>
75
<gif>gifsicle</gif>
76
<gif_options>-b -O3</gif_options>
77
- <jpg>jpegoptim</jpg>
78
- <jpg_options>--strip-all</jpg_options>
79
<png>optipng</png>
80
<png_options>-o5</png_options>
81
</utility>
11
<config>
12
<modules>
13
<Apptrian_ImageOptimizer>
14
+ <version>1.1.0</version>
15
</Apptrian_ImageOptimizer>
16
</modules>
17
<global>
74
<path>lib/apptrian/imageoptimizer</path>
75
<gif>gifsicle</gif>
76
<gif_options>-b -O3</gif_options>
77
+ <jpg>jpegtran</jpg>
78
+ <jpg_options>-copy none -optimize -progressive -outfile</jpg_options>
79
<png>optipng</png>
80
<png_options>-o5</png_options>
81
</utility>
lib/apptrian/imageoptimizer/elf32/jpegtran ADDED
Binary file
lib/apptrian/imageoptimizer/elf64/jpegtran ADDED
Binary file
lib/apptrian/imageoptimizer/win32/jpegtran.exe ADDED
Binary file
lib/apptrian/imageoptimizer/win32/libjpeg-62.dll ADDED
Binary file
lib/apptrian/imageoptimizer/win64/jpegtran.exe ADDED
Binary file
lib/apptrian/imageoptimizer/win64/libjpeg-62.dll ADDED
Binary file
package.xml CHANGED
@@ -1,18 +1,18 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>Apptrian_Image_Optimizer</name>
4
- <version>1.0.1</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Optimize your images, reduce their file size without losing image quality and speed up your site.</summary>
10
<description>Apptrian Image Optimizer will optimize your images (GIF, JPG, PNG) reduce their file size without losing image quality and speed up your site. Extension is very easy to install and use. You can optimize images by clicking a button in Magento Admin or automatically by a configurable cron job. If you are an advanced user you will be pleased to know that extension is fully configurable. You can change optimization options even swap utilities used for optimization with the ones you like. (By default our extension is using optimization utilities recommended by Google.)</description>
11
- <notes>* Fixed small bug related to exec() function</notes>
12
<authors><author><name>Apptrian</name><user>apptrian</user><email>apptrian@yahoo.com</email></author></authors>
13
- <date>2015-04-16</date>
14
- <time>21:08:35</time>
15
- <contents><target name="magecommunity"><dir name="Apptrian"><dir name="ImageOptimizer"><dir name="Block"><file name="About.php" hash="834da469edf8670760c18af77f818964"/><dir name="Adminhtml"><dir name="Button"><file name="Optimize.php" hash="c23d84e058178b2dae14e7d0840d2ca8"/><file name="Scan.php" hash="15f74acc0e0ccd3af620ca50ca873dc6"/></dir><file name="Stats.php" hash="7eadf213828ddad56a97d16ac018f586"/></dir><file name="Info.php" hash="ce3f500107f0522d663e5e5ca9ab6ae8"/></dir><dir name="Helper"><file name="Data.php" hash="ee204272ca8ffa3520047bf4f2284ffd"/><file name="Utility.php" hash="8da906b04a33011753123591787d8f38"/></dir><dir name="Model"><dir name="Config"><file name="Batchsize.php" hash="20ad8a6109396ab46dd6869729461c82"/><file name="Cron.php" hash="287ca20c0c2858bb084c1027d9db7df9"/><file name="Options.php" hash="149fed0c7d4ff5e3f5450fb508e54665"/><file name="Path.php" hash="3551ddc448355408a31f364f1d7e9c72"/><file name="Paths.php" hash="106f13dd1ac686b2ff114f7dea305f60"/><file name="Utility.php" hash="ee8f797047402554d15a03d5dffc7d6e"/></dir><file name="Cron.php" hash="7d32b6cfed67c0bc620ee488c0edc6c6"/><file name="File.php" hash="c9dfb79b4a69bee1e58e7653b73df162"/><dir name="Resource"><dir name="File"><file name="Collection.php" hash="28d975785edc53cb54402770ab5259d1"/></dir><file name="File.php" hash="fe4c2607d55d8407b4e7b36c0f250af8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OptimizerController.php" hash="dfb1347ebc3c85ce5dda4a7e4782291b"/></dir></dir><dir name="etc"><file name="config.xml" hash="d1862168d6926bebe015f3d3d28ba4f1"/><file name="system.xml" hash="b197c5428f867227c18caa5a2535d3f3"/></dir><dir name="sql"><dir name="apptrian_imageoptimizer_setup"><file name="install-1.0.0.php" hash="d34e04d6467ec06481042445ccfea24b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="apptrian_imageoptimizer.xml" hash="257c63a9c81f7d901dbf7668c9d0387a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apptrian_ImageOptimizer.xml" hash="784bdacc19fadc96f17ae7e82c962b4b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Apptrian_ImageOptimizer.csv" hash="1cd68289ca79e9948ac2dea635e063a2"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="apptrian_imageoptimizer.css" hash="79907671228ae14227423cdfce413ecc"/></dir></dir></dir></dir></target><target name="magelib"><dir name="apptrian"><dir name="imageoptimizer"><dir name="elf32"><file name="gifsicle" hash="2583e5ceecf67a058fba2858986bb37f"/><file name="jpegoptim" hash="8a035613dd1a9467e5fe47c88a774104"/><file name="optipng" hash="fb1334c73c7a91858a1816b05bfa3133"/></dir><dir name="elf64"><file name="gifsicle" hash="13adc57a621501a27a19443cb587ab2b"/><file name="jpegoptim" hash="8a035613dd1a9467e5fe47c88a774104"/><file name="optipng" hash="8fbf61c7e24f90128bbc138ddb671201"/></dir><dir name="win32"><file name="gifsicle.exe" hash="574a9274bbd4aec6a905b64b7da79617"/><file name="jpegoptim.exe" hash="cb4fa736e8b60aebfebff583d0ea6f34"/><file name="optipng.exe" hash="e3d154829ea57a0bdd88b080f6851265"/></dir><dir name="win64"><file name="gifsicle.exe" hash="c7fe0fc6744a4e5303f8d924ee08a8d3"/><file name="jpegoptim.exe" hash="cb4fa736e8b60aebfebff583d0ea6f34"/><file name="optipng.exe" hash="e3d154829ea57a0bdd88b080f6851265"/></dir></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>Apptrian_Image_Optimizer</name>
4
+ <version>1.1.0</version>
5
<stability>stable</stability>
6
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
<channel>community</channel>
8
<extends/>
9
<summary>Optimize your images, reduce their file size without losing image quality and speed up your site.</summary>
10
<description>Apptrian Image Optimizer will optimize your images (GIF, JPG, PNG) reduce their file size without losing image quality and speed up your site. Extension is very easy to install and use. You can optimize images by clicking a button in Magento Admin or automatically by a configurable cron job. If you are an advanced user you will be pleased to know that extension is fully configurable. You can change optimization options even swap utilities used for optimization with the ones you like. (By default our extension is using optimization utilities recommended by Google.)</description>
11
+ <notes>+ Added support for jpegtran and set as default JPG optimization utility</notes>
12
<authors><author><name>Apptrian</name><user>apptrian</user><email>apptrian@yahoo.com</email></author></authors>
13
+ <date>2015-05-09</date>
14
+ <time>14:37:38</time>
15
+ <contents><target name="magecommunity"><dir name="Apptrian"><dir name="ImageOptimizer"><dir name="Block"><file name="About.php" hash="834da469edf8670760c18af77f818964"/><dir name="Adminhtml"><dir name="Button"><file name="Optimize.php" hash="c23d84e058178b2dae14e7d0840d2ca8"/><file name="Scan.php" hash="15f74acc0e0ccd3af620ca50ca873dc6"/></dir><file name="Stats.php" hash="7eadf213828ddad56a97d16ac018f586"/></dir><file name="Info.php" hash="ce3f500107f0522d663e5e5ca9ab6ae8"/></dir><dir name="Helper"><file name="Data.php" hash="ee204272ca8ffa3520047bf4f2284ffd"/><file name="Utility.php" hash="1a145b4ad5b3112624ac61fc4bcb24c0"/></dir><dir name="Model"><dir name="Config"><file name="Batchsize.php" hash="20ad8a6109396ab46dd6869729461c82"/><file name="Cron.php" hash="287ca20c0c2858bb084c1027d9db7df9"/><file name="Options.php" hash="149fed0c7d4ff5e3f5450fb508e54665"/><file name="Path.php" hash="3551ddc448355408a31f364f1d7e9c72"/><file name="Paths.php" hash="106f13dd1ac686b2ff114f7dea305f60"/><file name="Utility.php" hash="ee8f797047402554d15a03d5dffc7d6e"/></dir><file name="Cron.php" hash="7d32b6cfed67c0bc620ee488c0edc6c6"/><file name="File.php" hash="c9dfb79b4a69bee1e58e7653b73df162"/><dir name="Resource"><dir name="File"><file name="Collection.php" hash="28d975785edc53cb54402770ab5259d1"/></dir><file name="File.php" hash="fe4c2607d55d8407b4e7b36c0f250af8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="OptimizerController.php" hash="dfb1347ebc3c85ce5dda4a7e4782291b"/></dir></dir><dir name="etc"><file name="config.xml" hash="14c8b57fce4c740210c411a5945394c3"/><file name="system.xml" hash="b197c5428f867227c18caa5a2535d3f3"/></dir><dir name="sql"><dir name="apptrian_imageoptimizer_setup"><file name="install-1.0.0.php" hash="d34e04d6467ec06481042445ccfea24b"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="apptrian_imageoptimizer.xml" hash="257c63a9c81f7d901dbf7668c9d0387a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Apptrian_ImageOptimizer.xml" hash="784bdacc19fadc96f17ae7e82c962b4b"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Apptrian_ImageOptimizer.csv" hash="1cd68289ca79e9948ac2dea635e063a2"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="apptrian_imageoptimizer.css" hash="79907671228ae14227423cdfce413ecc"/></dir></dir></dir></dir></target><target name="magelib"><dir name="apptrian"><dir name="imageoptimizer"><dir name="elf32"><file name="gifsicle" hash="2583e5ceecf67a058fba2858986bb37f"/><file name="jpegoptim" hash="8a035613dd1a9467e5fe47c88a774104"/><file name="jpegtran" hash="fcef276e1f6b99d42d60abe373f37018"/><file name="optipng" hash="fb1334c73c7a91858a1816b05bfa3133"/></dir><dir name="elf64"><file name="gifsicle" hash="13adc57a621501a27a19443cb587ab2b"/><file name="jpegoptim" hash="8a035613dd1a9467e5fe47c88a774104"/><file name="jpegtran" hash="e6da2f02ac13237f7a8d91f0268ecf85"/><file name="optipng" hash="8fbf61c7e24f90128bbc138ddb671201"/></dir><dir name="win32"><file name="gifsicle.exe" hash="574a9274bbd4aec6a905b64b7da79617"/><file name="jpegoptim.exe" hash="cb4fa736e8b60aebfebff583d0ea6f34"/><file name="jpegtran.exe" hash="2ed29cb5dfb19ad21f3ba3d215f2453e"/><file name="libjpeg-62.dll" hash="48c64a6097bfbe8ca8eaa61ad7936aec"/><file name="optipng.exe" hash="e3d154829ea57a0bdd88b080f6851265"/></dir><dir name="win64"><file name="gifsicle.exe" hash="c7fe0fc6744a4e5303f8d924ee08a8d3"/><file name="jpegoptim.exe" hash="cb4fa736e8b60aebfebff583d0ea6f34"/><file name="jpegtran.exe" hash="dd709e653791c5a9ece818440f0ca089"/><file name="libjpeg-62.dll" hash="b4e05a1406a617e14b2ce7f6c28f382e"/><file name="optipng.exe" hash="e3d154829ea57a0bdd88b080f6851265"/></dir></dir></dir></target></contents>
16
<compatible/>
17
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
</package>