Speed up your WordPress website. Optimize your JPEG and PNG images automatically with TinyPNG.
PHP JavaScript CSS Shell Other
Permalink
Failed to load latest commit information.
bin Use docker 1.13. Jan 19, 2017
config
src
test Fix setup logic. Jan 19, 2017
tmp Added original as size option and allow no sizes set Mar 13, 2015
.gitignore
.travis.yml Use docker 1.13. Jan 19, 2017
LICENSE
README.md
RELEASE Add version as constant to avoid loading issues. Jul 18, 2016
composer.json
composer.lock Updated Tinify client. Aug 10, 2016
composer.phar
docker-compose.yml Rewrite some integration tests. Jun 27, 2016
phpcs.xml
readme.txt
tiny-compress-images.php

README.md

Build Status

Compress JPEG & PNG images for WordPress

Make your website faster by optimizing your JPEG and PNG images.

This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG. You can download the plugin from https://wordpress.org/plugins/tiny-compress-images/.

Learn more about TinyJPG and TinyPNG at https://tinypng.com/.

Contact us

Got questions or feedback? Let us know! Contact us at support@tinypng.com.

Information for plugin contributors

Prerequisites

Running the plugin in WordPress

  1. Run bin/run-wordpress <version>. E.g. bin/run-wordpress 45.
  2. Connect to Wordpress on port 80<version> (e.g. port 8045).

Running the unit tests

  1. Run bin/unit-tests <optional path to file>.

Running the integration tests

  1. Install Docker 1.12 and docker-compose.
  2. Run bin/integration-tests <version>. E.g. bin/integration-tests 45.

Translating the plugin

Language packs will be generated for the plugin once translations for a language are 100% filled in and approved.

See https://translate.wordpress.org/projects/wp-plugins/tiny-compress-images.

For development you may create .po and .mo files for a each language. The .mo files can be created with gettext. Install gettext and generate the .mo language file do the following:

  1. Install gettext for example run brew install gettext.
  2. Add a link msgfmt ln -s /usr/local/Cellar/gettext/0.19.7/bin/msgfmt ~/.bin.
  3. Generate the .mo files bin/format-language-files.

License

Copyright (C) 2015-2016 Voormedia B.V.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

View the complete license.