GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tinify/wordpress-plugin: Speed up your WordPress website. Optimize your JPEG and PNG images automatically with TinyPNG.

BranchesTags
Open more actions menu

Latest commit

 

History

1,090 Commits
1,090 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
.wordpress-org
.wordpress-org
 
 
bin
bin
 
 
config
config
 
 
docs
docs
 
 
src
src
 
 
test
test
 
 
tmp
tmp
 
 
.distignore
.distignore
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASE
RELEASE
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
phpcs.xml
phpcs.xml
 
 
phpunit.xml
phpunit.xml
 
 
playwright.config.ts
playwright.config.ts
 
 
readme.txt
readme.txt
 
 
tiny-compress-images.php
tiny-compress-images.php
 
 

Repository files navigation

TinyPNG - JPEG, PNG, WebP, AVIF & JPEG XL image compression for WordPress

Integration Tests Check and Test

Make your website faster by optimizing your JPEG, PNG, WebP, AVIF and JPEG XL 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 [email protected].

Information for plugin contributors

Prerequisites

  • A working Docker 1.12+ and Docker Compose installation (https://docs.docker.com/installation/).
  • Composer (https://getcomposer.org/download/).
  • Node LTS

Running the plugin in WordPress

  1. Run bin/run-wordpress <wordpress version> <php version>. E.g. bin/run-wordpress 60 73.
  2. Connect to Wordpress on port 80<wordpress version> (e.g. port 8060).

Running the unit tests

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

Running the integration tests

  1. Start the environment: bin/run-wordpress [WORDPRESS_VERSION] [PHP_VERSION]
  2. Start mocks bin/run-mocks
  3. Install npm dependencies: npm install.
  4. Run WORDPRESS_PORT-80[WORDPRESS_VERSION] npm run test:playwright.

To stop:

  1. Stop mocks bin/stop-mocks
  2. Stop WordPress bin/stop-wordpress [WORDPRESS_VERSION] [PHP_VERSION]

Check if the code follows WordPress standard

  1. Run bin/check-style to make sure there are no errors.

Test XML-RPC code

WordPress can either be used via the web interface or through the official WordPress apps for mobile devices. WordPress uses XML-RPC internally to communicate between the app and the WordPress admin. Make sure therefore that when developing functionality that is linked to functionality available in the mobile app that it also works over XML-RPC.

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.

When finished modifying, you can upload the changes to the SVN trunk. Within roughly 15 minutes WordPress will be updated and allow to add missing translations before publishing the new plugin release.

License

Copyright (C) 2015-2023 Tinify 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.

About

Speed up your WordPress website. Optimize your JPEG and PNG images automatically with TinyPNG.

tinify.com

Topics

apiavifbulkcompressionconversionimagesjpgoptimizationpluginpngtinifytinyjpgtinypngwebpwordpress

Resources

Readme
GPL-2.0 license
Activity
Custom properties

Stars

100 stars

Watchers

9 watching

Forks

40 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.