Tiny_Compresss_Images - Version 2.0.1

Version Notes

==== 2.0.1 ====
Release notes:
- Support for servers with open basedir enabled.
- Better warnings.
- Linting & speed improvements for Travis CI.
- Added an space to an sentence for readability.
- Better handling of the Tinify\AccountException so the logs won't
be clutherd.
- Updated the Tinify PHP client.

==== 2.0.0 ====
The extension now recognises duplicate images in your Magento store. This will save even more bandwidth and reduces the number of compressions. The settings screen has been rewritten to show the latest compressions. And all compressed images are now stored separately so they don't get lost when you clear the cache. We are very happy with all these new improvements, hope you like them as much as we do!

Download this release

Release Info

Developer Tiny
Extension Tiny_Compresss_Images
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

LICENSE ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The MIT License
2
+
3
+ Copyright (c) 2013-2017 Voormedia
4
+ Copyright (c) 2017 Total Internet Group
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
app/code/community/Tiny/CompressImages/Block/Adminhtml/System/Config/Form/Field/LogFile.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- class Tiny_CompressImages_Block_Adminhtml_System_Config_Form_Field_LogFile extends Varien_Data_Form_Element_Abstract
 
 
3
  {
4
  /**
5
  * Template file used
@@ -8,6 +10,20 @@ class Tiny_CompressImages_Block_Adminhtml_System_Config_Form_Field_LogFile exten
8
  */
9
  protected $_template = 'Tiny/CompressImages/system/config/form/field/log_file.phtml';
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  /**
12
  * Get the URL where we can download the log file.
13
  *
1
  <?php
2
+ class Tiny_CompressImages_Block_Adminhtml_System_Config_Form_Field_LogFile
3
+ extends Mage_Adminhtml_Block_Abstract
4
+ implements Varien_Data_Form_Element_Renderer_Interface
5
  {
6
  /**
7
  * Template file used
10
  */
11
  protected $_template = 'Tiny/CompressImages/system/config/form/field/log_file.phtml';
12
 
13
+ /**
14
+ * Render template
15
+ *
16
+ * @param Varien_Data_Form_Element_Abstract $element
17
+ *
18
+ * @return string
19
+ */
20
+ public function render(Varien_Data_Form_Element_Abstract $element)
21
+ {
22
+ $this->setElement($element);
23
+
24
+ return $this->toHtml();
25
+ }
26
+
27
  /**
28
  * Get the URL where we can download the log file.
29
  *
app/code/community/Tiny/CompressImages/Block/Adminhtml/System/Config/Form/Field/Status.php CHANGED
@@ -40,18 +40,17 @@ class Tiny_CompressImages_Block_Adminhtml_System_Config_Form_Field_Status extend
40
  }
41
  }
42
 
43
- // TODO: Find a method to determine whether to use our or Tinify's compression count
44
  $compressionCount = Mage::helper('tiny_compressimages/tinify')->compressionCount();
45
 
46
  if ($configHelper->getApiKey() == '') {
47
  return $this->_helper->__('Add your TinyPNG API key to check the status');
48
  }
49
 
50
- if ($compressionCount == 0 || $compressionCount == 500) {
51
  $button = '<a href="https://tinypng.com/developers/subscription" target="_blank" id="tinypng_check_status" class="tiny-compressimages-button-orange scalable">';
52
  $button .= '<span><span><span>Upgrade</span></span></span></a>';
53
 
54
- $onhold = $this->_helper->__('Compression on hold. 500 free images compressed this month.');
55
  $upgrade = $this->_helper->__('Upgrade your account to compress more images');
56
 
57
  return '<span class="compressimages-api-deactivated">' . $onhold . '</span>' . $upgrade . '<br>' . $button;
40
  }
41
  }
42
 
 
43
  $compressionCount = Mage::helper('tiny_compressimages/tinify')->compressionCount();
44
 
45
  if ($configHelper->getApiKey() == '') {
46
  return $this->_helper->__('Add your TinyPNG API key to check the status');
47
  }
48
 
49
+ if ($compressionCount == 500) {
50
  $button = '<a href="https://tinypng.com/developers/subscription" target="_blank" id="tinypng_check_status" class="tiny-compressimages-button-orange scalable">';
51
  $button .= '<span><span><span>Upgrade</span></span></span></a>';
52
 
53
+ $onhold = $this->_helper->__('Compression on hold. 500 free images compressed this month.') . ' ';
54
  $upgrade = $this->_helper->__('Upgrade your account to compress more images');
55
 
56
  return '<span class="compressimages-api-deactivated">' . $onhold . '</span>' . $upgrade . '<br>' . $button;
app/code/community/Tiny/CompressImages/Helper/Tinify.php CHANGED
@@ -286,6 +286,8 @@ class Tiny_CompressImages_Helper_Tinify extends Mage_Core_Helper_Abstract
286
  'Path: ' . $compressionFile;
287
 
288
  $this->helper->log($message, 'info', $this->storeId);
 
 
289
  } catch (\Tinify\Exception $e) {
290
  $this->helper->log($e, null, $this->storeId);
291
  return false;
@@ -326,7 +328,7 @@ class Tiny_CompressImages_Helper_Tinify extends Mage_Core_Helper_Abstract
326
  protected function _isInOptimizedMediaDirectory()
327
  {
328
  $path = $this->_model->getPathOptimized();
329
- $file = new SplFileInfo($path);
330
 
331
  if ($file->isFile()) {
332
  $this->isCompressedBefore = true;
286
  'Path: ' . $compressionFile;
287
 
288
  $this->helper->log($message, 'info', $this->storeId);
289
+ } catch (\Tinify\AccountException $e) {
290
+ $this->helper->log($e->getMessage(), 'error', $this->storeId);
291
  } catch (\Tinify\Exception $e) {
292
  $this->helper->log($e, null, $this->storeId);
293
  return false;
328
  protected function _isInOptimizedMediaDirectory()
329
  {
330
  $path = $this->_model->getPathOptimized();
331
+ $file = new SplFileInfo(Mage::getBaseDir() . $path);
332
 
333
  if ($file->isFile()) {
334
  $this->isCompressedBefore = true;
app/code/community/Tiny/CompressImages/Model/Observer.php CHANGED
@@ -6,12 +6,18 @@ class Tiny_CompressImages_Model_Observer
6
  */
7
  protected $_tinifyHelper = null;
8
 
 
 
 
 
 
9
  /**
10
  * Compress product images
11
  *
12
  * @param $observer
13
  *
14
  * @return $this
 
15
  */
16
  public function catalogProductImageSaveAfter($observer)
17
  {
@@ -19,8 +25,18 @@ class Tiny_CompressImages_Model_Observer
19
  $this->_tinifyHelper = Mage::helper('tiny_compressimages/tinify');
20
  }
21
 
22
- $storeId = Mage::app()->getStore()->getStoreId();
23
- $this->_tinifyHelper->setProductImage($observer->getObject(), $storeId)->compress();
 
 
 
 
 
 
 
 
 
 
24
 
25
  return $this;
26
  }
6
  */
7
  protected $_tinifyHelper = null;
8
 
9
+ /**
10
+ * @var null|Tiny_CompressImages_Helper_Data
11
+ */
12
+ protected $_dataHelper = null;
13
+
14
  /**
15
  * Compress product images
16
  *
17
  * @param $observer
18
  *
19
  * @return $this
20
+ * @throws Exception
21
  */
22
  public function catalogProductImageSaveAfter($observer)
23
  {
25
  $this->_tinifyHelper = Mage::helper('tiny_compressimages/tinify');
26
  }
27
 
28
+ if ($this->_dataHelper === null) {
29
+ $this->_dataHelper = Mage::helper('tiny_compressimages');
30
+ }
31
+
32
+ try {
33
+ $storeId = Mage::app()->getStore()->getStoreId();
34
+ $this->_tinifyHelper->setProductImage($observer->getObject(), $storeId)->compress();
35
+ } catch (Exception $e) {
36
+ $this->_dataHelper->log($e);
37
+
38
+ throw $e;
39
+ }
40
 
41
  return $this;
42
  }
app/code/community/Tiny/CompressImages/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Tiny_CompressImages>
5
- <version>2.0.0</version>
6
  <stability>stable</stability>
7
  </Tiny_CompressImages>
8
  </modules>
2
  <config>
3
  <modules>
4
  <Tiny_CompressImages>
5
+ <version>2.0.1</version>
6
  <stability>stable</stability>
7
  </Tiny_CompressImages>
8
  </modules>
app/code/community/Tiny/CompressImages/etc/system.xml CHANGED
@@ -180,7 +180,7 @@
180
  <log_file translate="label comment">
181
  <label>Download the logfile</label>
182
  <sort_order>30</sort_order>
183
- <frontend_type>compressimages_log_button</frontend_type>
184
  <show_in_default>1</show_in_default>
185
  <show_in_website>1</show_in_website>
186
  <show_in_store>1</show_in_store>
180
  <log_file translate="label comment">
181
  <label>Download the logfile</label>
182
  <sort_order>30</sort_order>
183
+ <frontend_model>tiny_compressimages/adminhtml_system_config_form_field_logFile</frontend_model>
184
  <show_in_default>1</show_in_default>
185
  <show_in_website>1</show_in_website>
186
  <show_in_store>1</show_in_store>
lib/TinyCompress/.DS_Store ADDED
Binary file
lib/TinyCompress/.gitignore DELETED
@@ -1 +0,0 @@
1
- vendor
 
lib/TinyCompress/.travis.yml DELETED
@@ -1,25 +0,0 @@
1
- language: php
2
- php:
3
- - 5.3
4
- - 5.4
5
- - 5.5
6
- - 5.6
7
- - 7.0
8
- - hhvm
9
- - nightly
10
- env:
11
- global:
12
- secure: BFdcLqU/07l3/NGaSZA5+VSB5FSVSwTL9wAyrJSD1N7jN2HzFTE4xxxmcVrAqq6t+jhZqajXcSf8/DTUKyLcmWXGw3JkseHx3ofHw5p2E4Mp+dUvNMh+3KgAABCPm5zEBUgnhNGwFqL+WA/cgXIJY1/sv87u/mg63ojvf3orKJ3KMxFFsVbGo553XYVsiSUXfzvV3foqPdcV9D0SZ0v7IiLcsuwtDRtfJ/udgSZ2C2LFiOek1dLwbjM3inMBPkfLcpuvC2l8Z1CyW5ptxYRrHHJqCMbdRmmwGH04hxRju54EJKX5PGTyDhfG9Kyiu8/hQCtDL4jNQlVNAKbvHrRTnLogoMKhHMRaAIDMNI+lcQB9OHHuureYAqL7gJvRmE2sfN/OAbzizYJ2z+yXvjaKJsd2htrHff8hgvl0M3guhP+mA5C9ubibzGiCD66kdeqS5tJi3EH7wk9GO75lFm3tlZEWZ4FJCwgyFQRZGMGSRJC5cWvW4QlGLHeVnWwnf9CM9/B2oD21LraccgCZhpIbib5/XJ2vTQO0V2ke3kXT1D9E3P8E2eClxnge1aShUSy+d5kMTNeLxkfalgGEviWqA236XLzS8+MjWzNWy3+roBb63Vh0OPp4GyTO810U16Y5lwCMegVrxusnz9bCo1HbK1w2k8D7Ueb/O7LEFYaZSD4=
13
- matrix:
14
- allow_failures:
15
- - php: nightly
16
- include:
17
- - php: 5.6
18
- env: INTEGRATION_TESTS=true
19
- script: "if [ \"$TRAVIS_PULL_REQUEST\" == \"false\" ]; then vendor/bin/phpunit --no-configuration test/integration.php; fi"
20
- before_script: composer install
21
- script: vendor/bin/phpunit
22
- notifications:
23
- email: false
24
- slack:
25
- secure: W1cEp+ctAD+in3hA/gansbUYrFZsR3EMd7s/XiK2mfAxRRXPCPgCvv0PWpYelJ5F2AnHXkmBP3USKFDhKN+JLmOOxrZpjzh4ve9QSNs4IPgcrU4meQYSgJ3uovS7h4fqAmqhQKL+FpAnrXAmXWGXVPCPtneySsMTyU6kNdmVfulxXRMJ+kLHtFQlT+U7cPYG0f8FkKR2u5CbRsdjUvoZHwbK7jmWpUcCi2O0A1vvMMEMEOG+iuayWW/RbfSfKIgM/SZG0pGYpoAB7I8XfYns7IyLhkJAw18jIWnowF4DuBusNRdr3zIfwC7bSlLKMFYJYpEsiLFCaeGZgp1NbYJ77DvqpwNp9xmoPz9rFGNe7Re+i13pjNWhEnwc5N3St7x8DYNhUC3L0upQ2FWZSomMM7ghlc6GIVtlXYrRJ5AnxIjSWyLRcTRU5Pf/PPRckOTiuLnVgUZNMVIlAHlRV7c/pUVDjbPvjcOajdXnpcd3+5cuKyzCYpXugIfJ9Hzsozq0yCHDKjo8ssAU+5H3mEfB7M25Rtd2awObb3zqOyUPm+J3M/dzql95cF+zj2SWQsBF/ViwkHo+9SoAr/FYqCZveiS0w9vzoKzbGXVDYCfFD+GlEMJ2b8zw4d2sqmIbw24jGq1ZPgczrpD5fcbI2TaheKBkgWvsBJFFO5KbGWqzHIM=
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/TinyCompress/LICENSE CHANGED
@@ -1,6 +1,7 @@
1
  The MIT License
2
 
3
- Copyright (c) 2013-2016 Voormedia
 
4
 
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +19,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
1
  The MIT License
2
 
3
+ Copyright (c) 2013-2017 Voormedia
4
+ Copyright (c) 2017 Total Internet Group
5
 
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
  of this software and associated documentation files (the "Software"), to deal
19
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
lib/TinyCompress/lib/Tinify/Client.php CHANGED
@@ -43,9 +43,12 @@ class Client {
43
 
44
  $url = strtolower(substr($url, 0, 6)) == "https:" ? $url : Client::API_ENDPOINT . $url;
45
  curl_setopt($request, CURLOPT_URL, $url);
46
- curl_setopt($request, CURLOPT_HTTPHEADER, $header);
47
  curl_setopt($request, CURLOPT_CUSTOMREQUEST, strtoupper($method));
48
 
 
 
 
 
49
  if ($body) {
50
  curl_setopt($request, CURLOPT_POSTFIELDS, $body);
51
  }
43
 
44
  $url = strtolower(substr($url, 0, 6)) == "https:" ? $url : Client::API_ENDPOINT . $url;
45
  curl_setopt($request, CURLOPT_URL, $url);
 
46
  curl_setopt($request, CURLOPT_CUSTOMREQUEST, strtoupper($method));
47
 
48
+ if (count($header) > 0) {
49
+ curl_setopt($request, CURLOPT_HTTPHEADER, $header);
50
+ }
51
+
52
  if ($body) {
53
  curl_setopt($request, CURLOPT_POSTFIELDS, $body);
54
  }
lib/TinyCompress/test/TinifyClientTest.php CHANGED
@@ -25,7 +25,7 @@ class TinifyClientTest extends TestCase {
25
  $client = new Tinify\Client("key");
26
  $client->request("get", "/", array());
27
 
28
- $this->assertSame(array(), CurlMock::last(CURLOPT_HTTPHEADER));
29
  }
30
 
31
  public function testRequestWhenValidShouldIssueRequestWithJSONBody() {
25
  $client = new Tinify\Client("key");
26
  $client->request("get", "/", array());
27
 
28
+ $this->assertFalse(CurlMock::last_has(CURLOPT_HTTPHEADER));
29
  }
30
 
31
  public function testRequestWhenValidShouldIssueRequestWithJSONBody() {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tiny_Compresss_Images</name>
4
- <version>2.0.0</version>
5
  <stability>stable</stability>
6
  <license>MIT License</license>
7
  <channel>community</channel>
@@ -19,7 +19,7 @@ Learn more about TinyJPG and TinyPNG at https://tinypng.com/.&#xD;
19
  Do you use Magento 2? Install our Magento 2 plugin instead:&#xD;
20
  https://packagist.org/packages/tinify/magento2&#xD;
21
  &#xD;
22
- ## How doest it work?&#xD;
23
  &#xD;
24
  When you view a product in your webshop, Magento creates different image sizes&#xD;
25
  in its cache folders. This extension will compress these images for you&#xD;
@@ -53,7 +53,7 @@ Copy the extension key from Magento Connect. Login on your webshop backend&#xD;
53
  and open *System -&gt; Magento Connect -&gt; Magento Connect Manager*.&#xD;
54
  Paste the extension key to install the extension.&#xD;
55
  &#xD;
56
- After installation, go to *System -&gt; Configuration -&gt; Image Optimization*, and &#xD;
57
  enter your TinyPNG API Key. Flush the images cache to start compressing.&#xD;
58
  &#xD;
59
  ## Contact us&#xD;
@@ -72,12 +72,22 @@ Got questions or feedback? Let us know! Contact us at support@tinypng.com.&#xD;
72
  From the .modman/Tiny_CompressImages directory:&#xD;
73
  &#xD;
74
  phpunit</description>
75
- <notes>==== 2.0.0 ====&#xD;
76
- Public release - Completely Rebuild code</notes>
 
 
 
 
 
 
 
 
 
 
77
  <authors><author><name>Tiny</name><user>TinyPNG</user><email>support@tinypng.com</email></author></authors>
78
- <date>2016-07-20</date>
79
- <time>11:02:06</time>
80
- <contents><target name="magecommunity"><dir name="Tiny"><dir name="CompressImages"><dir name="Block"><dir name="Adminhtml"><file name="ApiNotification.php" hash="6426312d49088e23b6ee1f627929adbb"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AccountType.php" hash="380f33d6963230c46fab8e57866dc1f8"/><file name="Api.php" hash="8ceb591180cf579793f05924a043dc9c"/><file name="LogFile.php" hash="4e25c761671651b6553d562d3741dcd1"/><file name="LogStatus.php" hash="8146245e4a4a31d9e2286c933026cca4"/><file name="Radios.php" hash="4c7ece1b54c42297f6045b045fcb84e0"/><file name="Saved.php" hash="f0542c956a2a8679e1391c24dc3485ab"/><file name="Status.php" hash="3a6e9353a54936a98d7fbc63fc0ef3ed"/><file name="SupportTab.php" hash="d507bd32b83a8b14aaf52461d9b63f66"/></dir></dir><file name="Form.php" hash="6dcad3be2f0234a6afdb5a74fb4fe5fe"/></dir></dir></dir></dir><file name="Exception.php" hash="232327ae8c91c77b8ce4f2ea7e945b5d"/><dir name="Helper"><file name="Config.php" hash="b4f5af580d639c4c97eaa3dfb77a5f32"/><file name="Data.php" hash="c13a81a9520be131e7536a30541d0762"/><file name="Tinify.php" hash="1e7ff414f2624343728c6d970673cff7"/></dir><dir name="Model"><file name="Image.php" hash="0cb0d880bf82fa05777bd3742332726f"/><file name="Observer.php" hash="c8a474b20d0430cfd63d4feee5534261"/><dir name="Product"><file name="Image.php" hash="a2e4186d060aa9069fade4d4ebcc518e"/></dir><dir name="Resource"><dir name="Image"><file name="Collection.php" hash="d9d16df3b1b6440e3076251aa81f8780"/></dir><file name="Image.php" hash="2eb4265ecbf7458f804c62b61e80e734"/><file name="Setup.php" hash="e283458ac9c153678a3a6c719cdbfb91"/><dir name="Totals"><file name="Collection.php" hash="fdcdc1ca85ac337fab31252864eb941d"/></dir><file name="Totals.php" hash="70e729f767002c31faae7ded152eb911"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="ApiKey.php" hash="22499692a62df9ee8860e2df09e4bbd2"/><dir name="Comment"><file name="LoggingMode.php" hash="8d62d2a43629522bdd6acceb54016d74"/></dir></dir><dir name="Source"><dir name="Cms"><file name="ImageTypes.php" hash="f4ff83b2a25d152df5e425815a1b9ac7"/></dir><file name="Log.php" hash="fdfad3559c14ebab9f5990f489a78ce8"/><file name="OnOff.php" hash="460040d33b3a2522532b60673f749e57"/><dir name="Product"><file name="ImageTypes.php" hash="841b9ccd4f6bbe449074cfd5aadb0d70"/></dir><file name="Testlive.php" hash="d1cb53fdb8278202c04351c6e525aad3"/></dir></dir></dir><file name="Totals.php" hash="eee19b6e18ea8fa326ccd5957443281a"/></dir><dir name="Test"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="LogStatusTest.php" hash="4c89257172518a55e930d7f2f0683ae8"/></dir></dir></dir></dir></dir></dir><dir name="Framework"><dir name="Tiny"><dir name="Test"><file name="Config.php" hash="9220264aabacd8ca1f63b62a7527cad6"/><dir name="Http"><file name="Response.php" hash="a7c31bcd031b8ae7e895b1a48602fc62"/></dir><file name="TestCase.php" hash="32556035e6eb7d9d9a13187a3f33f911"/></dir></dir></dir><dir name="Helper"><file name="ConfigTest.php" hash="c361ed44073e7f03bbdf285a929e175c"/></dir><dir name="Model"><file name="ImageTest.php" hash="5567d1208225d1aa98814ce26c4a3c66"/><dir name="Product"><file name="ImageTest.php" hash="4552bc02eb244fd04f02b06f56e5474a"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Comment"><file name="LoggingModeTest.php" hash="99c46dc66ba10db9a5cf2ab1aa88904f"/></dir></dir></dir></dir></dir><file name="bootstrap.php" hash="29ef0d78bdb07399a148609f70ebe6de"/></dir><dir name="controllers"><dir name="CompressImagesAdminhtml"><file name="ConfigController.php" hash="4ded82dc68dae8e14eeaa60d66698c3d"/><file name="StatusController.php" hash="7e9eb303e31a28b75a6bf0af940b9866"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="61c1da0f235d4fb616fd0e2e5a6a78a7"/><file name="config.xml" hash="eecdde03b3be7c4ede1dfb12c1b125f4"/><file name="system.xml" hash="a34f6d2381366f5001a03a314e157c3c"/></dir><dir name="sql"><dir name="tiny_compressimages_setup"><file name="install-1.0.0.php" hash="333d08c5949c91ac6ae098e15c64054d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tiny_CompressImages.xml" hash="598a989aeda17423c8b9f9ab11c341bb"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="Tiny"><file name="CompressImages.xml" hash="63d02f84f40722cd69ddaa234900e811"/></dir></dir><dir name="template"><dir name="Tiny"><dir name="CompressImages"><dir name="Api"><file name="keyNotification.phtml" hash="f202d40d56e5657493de5edb67906504"/></dir><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="log_file.phtml" hash="f6ad229ffe35bc1cdbc3a2ee58e05b88"/><file name="log_status.phtml" hash="c3539e506c59059b3ea9137585c78dd0"/><file name="support_tab.phtml" hash="82d7ee5b4a782dc9dcfabb0fa5b843ae"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="Tiny"><dir name="CompressImages"><file name="config.css" hash="61b1a856e391d6a3fffbd1703f11509e"/></dir></dir></dir><dir name="images"><dir name="Tiny"><dir name="CompressImages"><file name="george-magento@2x_opt.png" hash="13554407009301f1f62b212d67f5ae5e"/><file name="george-menu-icon@2x.png" hash="b1417eacc5320ad2741b8fd76ee60d56"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Tiny_CompressImages.csv" hash="a734673d17763c1334561e7e43d5f65f"/></dir></target><target name="magelib"><dir name="TinyCompress"><file name="LICENSE" hash="83cea2ac6da126d2dc6bcb26e740bac4"/><file name="README.md" hash="bd0c9f693fb84769a64c0b8721ecb394"/><file name="composer.json" hash="24129bff61e8cfa8b2a82efee5c7069a"/><file name="composer.lock" hash="faf46a8bba90ecc3a886f94f3cf922f4"/><dir name="lib"><dir name="Tinify"><file name="Client.php" hash="2c6d298a95c17762bf4e18a4b6343faa"/><file name="Exception.php" hash="ef195fc4ac81e45a7a52053d094da53f"/><file name="Result.php" hash="d6e0474e180cb17d0dc383ab974c0062"/><file name="ResultMeta.php" hash="4ec72ae5736f7fc91d7cb2b4bb55d3b9"/><file name="Source.php" hash="4c105bacaef6d6e69aa85da603c0378e"/></dir><file name="Tinify.php" hash="c3938730013e0a8237c3232b3ff8dc80"/><dir name="data"><file name="cacert.pem" hash="380df856e8f789c1af97d0da9a243769"/></dir></dir><file name="phpunit.xml" hash="73458f69fc3467a5d6ed3b1e5cd160cf"/><dir name="test"><file name="TinifyClientTest.php" hash="65160c2eed8aff5da38a0690575bfdfd"/><file name="TinifyResultMetaTest.php" hash="6c7e18d7ad946c7ac61a638cc92df8df"/><file name="TinifyResultTest.php" hash="0b574d4fd3b16d2cf7afb09a9f3e6e3a"/><file name="TinifySourceTest.php" hash="0db178b560fb4e59ec8ea31541ca3a98"/><file name="TinifyTest.php" hash="c018f154445101ec12fc0a5d493de09d"/><file name="curl_mock.php" hash="6b28a44ab36b3b53fcccbbad060fae05"/><dir name="examples"><file name="dummy.png" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="voormedia.png" hash="2824dd3c804309be2d275dbc2f16c788"/></dir><file name="helper.php" hash="7a7d4ddf6f771260cc74c8e18145a1bd"/><file name="integration.php" hash="43dbc9d7dc2f6b9be72c6a0d5036e9ce"/></dir><file name=".gitignore" hash="e8a346051f935e6cb104e1dc40998a91"/><file name=".travis.yml" hash="dbe91093178a614d31b4ac430659b81a"/></dir></target></contents>
81
  <compatible/>
82
  <dependencies><required><php><min>5.4.0</min><max>7.0.0</max></php></required></dependencies>
83
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Tiny_Compresss_Images</name>
4
+ <version>2.0.1</version>
5
  <stability>stable</stability>
6
  <license>MIT License</license>
7
  <channel>community</channel>
19
  Do you use Magento 2? Install our Magento 2 plugin instead:&#xD;
20
  https://packagist.org/packages/tinify/magento2&#xD;
21
  &#xD;
22
+ ## How does it work?&#xD;
23
  &#xD;
24
  When you view a product in your webshop, Magento creates different image sizes&#xD;
25
  in its cache folders. This extension will compress these images for you&#xD;
53
  and open *System -&gt; Magento Connect -&gt; Magento Connect Manager*.&#xD;
54
  Paste the extension key to install the extension.&#xD;
55
  &#xD;
56
+ After installation, go to *System -&gt; Configuration -&gt; Image Optimization*, and&#xD;
57
  enter your TinyPNG API Key. Flush the images cache to start compressing.&#xD;
58
  &#xD;
59
  ## Contact us&#xD;
72
  From the .modman/Tiny_CompressImages directory:&#xD;
73
  &#xD;
74
  phpunit</description>
75
+ <notes>==== 2.0.1 ====&#xD;
76
+ Release notes:&#xD;
77
+ - Support for servers with open basedir enabled.&#xD;
78
+ - Better warnings.&#xD;
79
+ - Linting &amp; speed improvements for Travis CI.&#xD;
80
+ - Added an space to an sentence for readability.&#xD;
81
+ - Better handling of the Tinify\AccountException so the logs won't&#xD;
82
+ be clutherd.&#xD;
83
+ - Updated the Tinify PHP client.&#xD;
84
+ &#xD;
85
+ ==== 2.0.0 ====&#xD;
86
+ The extension now recognises duplicate images in your Magento store. This will save even more bandwidth and reduces the number of compressions. The settings screen has been rewritten to show the latest compressions. And all compressed images are now stored separately so they don't get lost when you clear the cache. We are very happy with all these new improvements, hope you like them as much as we do!</notes>
87
  <authors><author><name>Tiny</name><user>TinyPNG</user><email>support@tinypng.com</email></author></authors>
88
+ <date>2017-01-10</date>
89
+ <time>10:49:15</time>
90
+ <contents><target name="magecommunity"><dir name="Tiny"><dir name="CompressImages"><dir name="Block"><dir name="Adminhtml"><file name="ApiNotification.php" hash="6426312d49088e23b6ee1f627929adbb"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AccountType.php" hash="380f33d6963230c46fab8e57866dc1f8"/><file name="Api.php" hash="8ceb591180cf579793f05924a043dc9c"/><file name="LogFile.php" hash="e699e21644476195261f5394dc79b172"/><file name="LogStatus.php" hash="8146245e4a4a31d9e2286c933026cca4"/><file name="Radios.php" hash="4c7ece1b54c42297f6045b045fcb84e0"/><file name="Saved.php" hash="f0542c956a2a8679e1391c24dc3485ab"/><file name="Status.php" hash="24b101b998635a20d3d24943b2872f2c"/><file name="SupportTab.php" hash="d507bd32b83a8b14aaf52461d9b63f66"/></dir></dir><file name="Form.php" hash="6dcad3be2f0234a6afdb5a74fb4fe5fe"/></dir></dir></dir></dir><file name="Exception.php" hash="232327ae8c91c77b8ce4f2ea7e945b5d"/><dir name="Helper"><file name="Config.php" hash="b4f5af580d639c4c97eaa3dfb77a5f32"/><file name="Data.php" hash="c13a81a9520be131e7536a30541d0762"/><file name="Tinify.php" hash="be6312f3bb0c07b31a024e0749edf932"/></dir><dir name="Model"><file name="Image.php" hash="0cb0d880bf82fa05777bd3742332726f"/><file name="Observer.php" hash="f55c9988d52f1bd179fad9cbe38b09ef"/><dir name="Product"><file name="Image.php" hash="a2e4186d060aa9069fade4d4ebcc518e"/></dir><dir name="Resource"><dir name="Image"><file name="Collection.php" hash="d9d16df3b1b6440e3076251aa81f8780"/></dir><file name="Image.php" hash="2eb4265ecbf7458f804c62b61e80e734"/><file name="Setup.php" hash="e283458ac9c153678a3a6c719cdbfb91"/><dir name="Totals"><file name="Collection.php" hash="fdcdc1ca85ac337fab31252864eb941d"/></dir><file name="Totals.php" hash="70e729f767002c31faae7ded152eb911"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><file name="ApiKey.php" hash="22499692a62df9ee8860e2df09e4bbd2"/><dir name="Comment"><file name="LoggingMode.php" hash="8d62d2a43629522bdd6acceb54016d74"/></dir></dir><dir name="Source"><dir name="Cms"><file name="ImageTypes.php" hash="f4ff83b2a25d152df5e425815a1b9ac7"/></dir><file name="Log.php" hash="fdfad3559c14ebab9f5990f489a78ce8"/><file name="OnOff.php" hash="460040d33b3a2522532b60673f749e57"/><dir name="Product"><file name="ImageTypes.php" hash="841b9ccd4f6bbe449074cfd5aadb0d70"/></dir><file name="Testlive.php" hash="d1cb53fdb8278202c04351c6e525aad3"/></dir></dir></dir><file name="Totals.php" hash="eee19b6e18ea8fa326ccd5957443281a"/></dir><dir name="Test"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="LogStatusTest.php" hash="4c89257172518a55e930d7f2f0683ae8"/></dir></dir></dir></dir></dir></dir><dir name="Framework"><dir name="Tiny"><dir name="Test"><file name="Config.php" hash="9220264aabacd8ca1f63b62a7527cad6"/><dir name="Http"><file name="Response.php" hash="a7c31bcd031b8ae7e895b1a48602fc62"/></dir><file name="TestCase.php" hash="32556035e6eb7d9d9a13187a3f33f911"/></dir></dir></dir><dir name="Helper"><file name="ConfigTest.php" hash="c361ed44073e7f03bbdf285a929e175c"/></dir><dir name="Model"><file name="ImageTest.php" hash="5567d1208225d1aa98814ce26c4a3c66"/><dir name="Product"><file name="ImageTest.php" hash="4552bc02eb244fd04f02b06f56e5474a"/></dir><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Comment"><file name="LoggingModeTest.php" hash="99c46dc66ba10db9a5cf2ab1aa88904f"/></dir></dir></dir></dir></dir><file name="bootstrap.php" hash="29ef0d78bdb07399a148609f70ebe6de"/></dir><dir name="controllers"><dir name="CompressImagesAdminhtml"><file name="ConfigController.php" hash="4ded82dc68dae8e14eeaa60d66698c3d"/><file name="StatusController.php" hash="7e9eb303e31a28b75a6bf0af940b9866"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="61c1da0f235d4fb616fd0e2e5a6a78a7"/><file name="config.xml" hash="5f84cec6ea34b5be04fa6f845bb52edf"/><file name="system.xml" hash="90dd26ce8cea9f1a87052ee0b82f8cc6"/></dir><dir name="sql"><dir name="tiny_compressimages_setup"><file name="install-1.0.0.php" hash="333d08c5949c91ac6ae098e15c64054d"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Tiny_CompressImages.xml" hash="598a989aeda17423c8b9f9ab11c341bb"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="Tiny"><file name="CompressImages.xml" hash="63d02f84f40722cd69ddaa234900e811"/></dir></dir><dir name="template"><dir name="Tiny"><dir name="CompressImages"><dir name="Api"><file name="keyNotification.phtml" hash="f202d40d56e5657493de5edb67906504"/></dir><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="log_file.phtml" hash="f6ad229ffe35bc1cdbc3a2ee58e05b88"/><file name="log_status.phtml" hash="c3539e506c59059b3ea9137585c78dd0"/><file name="support_tab.phtml" hash="82d7ee5b4a782dc9dcfabb0fa5b843ae"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="Tiny"><dir name="CompressImages"><file name="config.css" hash="718b865da9aa84e0012087e6b28bdea8"/></dir></dir></dir><dir name="images"><dir name="Tiny"><dir name="CompressImages"><file name="george-magento@2x_opt.png" hash="13554407009301f1f62b212d67f5ae5e"/><file name="george-menu-icon@2x.png" hash="b1417eacc5320ad2741b8fd76ee60d56"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Tiny_CompressImages.csv" hash="a734673d17763c1334561e7e43d5f65f"/></dir></target><target name="magelib"><dir name="TinyCompress"><file name="LICENSE" hash="8a23c22ab3366d2081166db49a704a5a"/><file name="README.md" hash="bd0c9f693fb84769a64c0b8721ecb394"/><file name="composer.json" hash="24129bff61e8cfa8b2a82efee5c7069a"/><file name="composer.lock" hash="faf46a8bba90ecc3a886f94f3cf922f4"/><dir name="lib"><dir name="Tinify"><file name="Client.php" hash="90b9e064022d4ad52c3e54dff3457432"/><file name="Exception.php" hash="ef195fc4ac81e45a7a52053d094da53f"/><file name="Result.php" hash="d6e0474e180cb17d0dc383ab974c0062"/><file name="ResultMeta.php" hash="4ec72ae5736f7fc91d7cb2b4bb55d3b9"/><file name="Source.php" hash="4c105bacaef6d6e69aa85da603c0378e"/></dir><file name="Tinify.php" hash="c3938730013e0a8237c3232b3ff8dc80"/><dir name="data"><file name="cacert.pem" hash="380df856e8f789c1af97d0da9a243769"/></dir></dir><file name="phpunit.xml" hash="73458f69fc3467a5d6ed3b1e5cd160cf"/><dir name="test"><file name="TinifyClientTest.php" hash="71a31a20e940f4b5a06cd24debe0d140"/><file name="TinifyResultMetaTest.php" hash="6c7e18d7ad946c7ac61a638cc92df8df"/><file name="TinifyResultTest.php" hash="0b574d4fd3b16d2cf7afb09a9f3e6e3a"/><file name="TinifySourceTest.php" hash="0db178b560fb4e59ec8ea31541ca3a98"/><file name="TinifyTest.php" hash="c018f154445101ec12fc0a5d493de09d"/><file name="curl_mock.php" hash="6b28a44ab36b3b53fcccbbad060fae05"/><dir name="examples"><file name="dummy.png" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="voormedia.png" hash="2824dd3c804309be2d275dbc2f16c788"/></dir><file name="helper.php" hash="7a7d4ddf6f771260cc74c8e18145a1bd"/><file name="integration.php" hash="43dbc9d7dc2f6b9be72c6a0d5036e9ce"/></dir><file name=".DS_Store" hash="1f14b8e5d4ef517cd3236642604885b0"/></dir></target><target name="mage"><dir name="lib"><dir name="TinyCompress"><file name="LICENSE" hash="8a23c22ab3366d2081166db49a704a5a"/></dir></dir><dir name="."><file name="LICENSE" hash="111d79462a65ebf06a91ec4e8eb00258"/></dir></target></contents>
91
  <compatible/>
92
  <dependencies><required><php><min>5.4.0</min><max>7.0.0</max></php></required></dependencies>
93
  </package>
skin/adminhtml/default/default/css/Tiny/CompressImages/config.css CHANGED
@@ -44,7 +44,7 @@
44
  #tiny_compressimages_support ol { list-style: decimal inside; }
45
  #tiny_compressimages_support ol ol { list-style: lower-alpha inside; padding: 0 0 10px 12px; }
46
  #tiny_compressimages_support ul ul { list-style:none; padding: 0 0 10px 12px; }
47
- #tiny_compressimages_support h2.content-heading { border-bottom: 4px solid #dfdfdf; }
48
  #tiny_compressimages_support h2.content-heading .content-heading-logo { height: 24px; }
49
 
50
  #tiny_compressimages_support h4,
@@ -54,13 +54,15 @@
54
 
55
  .tiny-logo-bear {
56
  position: absolute;
57
- bottom: 0px;
58
  right: 0;
59
  width: auto;
60
  max-width: 20%;
61
  height: auto;
62
  max-height: 180px; }
63
 
 
 
64
  #tiny_compressimages_support a:hover { text-decoration:none; }
65
  #tiny_compressimages_support img { max-width: 100%; }
66
 
44
  #tiny_compressimages_support ol { list-style: decimal inside; }
45
  #tiny_compressimages_support ol ol { list-style: lower-alpha inside; padding: 0 0 10px 12px; }
46
  #tiny_compressimages_support ul ul { list-style:none; padding: 0 0 10px 12px; }
47
+ #tiny_compressimages_support h2.content-heading { margin-right: 190px; border-bottom: 4px solid #dfdfdf; }
48
  #tiny_compressimages_support h2.content-heading .content-heading-logo { height: 24px; }
49
 
50
  #tiny_compressimages_support h4,
54
 
55
  .tiny-logo-bear {
56
  position: absolute;
57
+ bottom: 0;
58
  right: 0;
59
  width: auto;
60
  max-width: 20%;
61
  height: auto;
62
  max-height: 180px; }
63
 
64
+ fieldset#tiny_compressimages_support { padding-bottom: 0; }
65
+
66
  #tiny_compressimages_support a:hover { text-decoration:none; }
67
  #tiny_compressimages_support img { max-width: 100%; }
68