Skip to content

Commit 9933b58

Browse files
author
Frank Evers
committed
Textual changes.
1 parent de84bf1 commit 9933b58

7 files changed

Lines changed: 48 additions & 48 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Compress JPEG & PNG images for WordPress
44

5-
Make your website faster by compressing your JPEG and PNG images.
5+
Make your website faster by optimizing your JPEG and PNG images.
66

77
This plugin automatically optimizes your images by integrating with the
88
popular image compression services TinyJPG and TinyPNG. You can download the

readme.txt

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
=== Compress JPEG & PNG images ===
22
Contributors: TinyPNG
33
Donate link: https://tinypng.com/
4-
Tags: compress, optimize, shrink, resize, fit, scale, improve, images, tinypng, tinyjpg, jpeg, jpg, png, lossy, jpegmini, crunch, minify, smush, save, bandwidth, website, speed, faster, performance, panda, wordpress app
4+
Tags: optimize, compress, shrink, resize, faster, fit, scale, improve, images, tinypng, tinyjpg, jpeg, jpg, png, lossy, jpegmini, crunch, minify, smush, save, bandwidth, website, speed, performance, panda, wordpress app
55
Requires at least: 3.0.6
66
Tested up to: 4.4
77
Stable tag: 1.7.0
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

11-
Speed up your website. Optimize your JPEG and PNG images automatically with TinyPNG.
11+
Speed up your website. Optimize your JPEG and PNG images automatically with TinyPNG.
1212

1313
== Description ==
1414

15-
Make your website faster by compressing your JPEG and PNG images. This plugin automatically optimizes your images by integrating with the popular image compression services TinyJPG and TinyPNG.
15+
Make your website faster by optimizing your JPEG and PNG images. This plugin automatically optimizes all your images by integrating with the popular image compression services TinyJPG and TinyPNG.
1616

1717
= Features =
1818

19-
* Automatically compress new images on upload.
20-
* Compress individual images already in your media library.
21-
* Easy bulk compression of your existing media library.
19+
* Automatically optimize new images on upload.
20+
* Optimize individual images already in your media library.
21+
* Easy bulk optimization of your existing media library.
2222
* Resize large original images by setting a maximum width and/or height.
23-
* Select which thumbnail sizes of an image may be compressed.
23+
* Select which thumbnail sizes of an image may be optimized.
2424
* Multisite support with a single API key.
25-
* Color profiles are translated to the standard RGB color space.
26-
* See your usage directly from the media settings and during bulk compression.
25+
* See your usage from the media settings and during bulk optimization.
26+
* Color profiles are automatically translated to the standard RGB color space.
2727
* Convert CMYK to RGB to save more space and maximize compatibility.
28-
* Compress and resize uploads with the WordPress mobile app.
28+
* Optimize and resize uploads with the WordPress mobile app.
2929
* No file size limits.
3030

3131
= How does it work? =
3232

33-
After you upload an image to your WordPress site, each resized image is uploaded to the TinyJPG or TinyPNG service. Your image is analyzed to apply the best possible compression. Based on the content of your image an optimal strategy is chosen. The result is sent back to your WordPress site and will replace the original image with one smaller in size. On average JPEG images are compressed by 40-60% and PNG images by 50-80% without visible loss in quality. Your website will load faster for your visitors, and you’ll save storage space and bandwidth!
33+
After you upload an image to your WordPress site, each resized image is uploaded to the TinyJPG or TinyPNG service. Your image is analyzed to apply the best possible optimization. Based on the content of your image an optimal strategy is chosen. The result is sent back to your WordPress site and will replace the original image with one smaller in size. On average JPEG images are compressed by 40-60% and PNG images by 50-80% without visible loss in quality. Your website will load faster for your visitors, and you’ll save storage space and bandwidth!
3434

3535
= Getting started =
3636

37-
Install this plugin and obtain your free API key from https://tinypng.com/developers. With a free account you can compress **roughly 100 images each month** (based on a regular WordPress installation). The exact number depends on the number of thumbnail sizes you use. You can change which of the generated thumbnail sizes should be compressed, because each one of them counts as a compression. And if you’re a heavy user, you can compress more images for a small additional fee per image.
37+
Install this plugin and obtain your free API key from https://tinypng.com/developers. With a free account you can optimize **roughly 100 images each month** (based on a regular WordPress installation). The exact number depends on the amount of thumbnails you use. You can change which of the generated thumbnail sizes should be optimized in the *Settings > Media* page. If you’re a heavy user you can optimize more images for a small additional fee per image.
3838

3939
= Multisite support =
4040

@@ -46,59 +46,59 @@ Got questions or feedback? Let us know! Contact us at support@tinypng.com or fin
4646

4747
= Contributors =
4848

49-
Want to contribute? Checkout our [GitHub page](https://github.com/tinify/wordpress-plugin).
49+
Want to contribute? Check out the [Tinify Wordpress plugin on GitHub](https://github.com/tinify/wordpress-plugin).
5050

5151
== Installation ==
5252

5353
= From your WordPress dashboard =
5454

55-
1. Visit 'Plugins > Add New'.
56-
2. Search for 'tinypng' and press the Install Now button for the plugin named 'Compress JPEG & PNG images' by 'TinyPNG'.
57-
3. Activate the plugin from your Plugins page.
55+
1. Visit *Plugins > Add New*.
56+
2. Search for 'tinypng' and press the 'Install Now' button for the plugin named 'Compress JPEG & PNG images' by 'TinyPNG'.
57+
3. Activate the plugin from your *Plugins* page.
5858
4. Register for an API key on https://tinypng.com/developers.
59-
5. Configure the API key in the Settings -> Media page.
60-
6. Upload an image and see it be compressed!
59+
5. Configure the API key in the *Settings > Media* page.
60+
6. Upload an image and see the optimization in action!
6161

6262
= From WordPress.org =
6363

64-
1. Download the plugin name 'Compress JPEG & PNG images' by 'TinyPNG'.
65-
2. Upload the 'tiny-compress-images' directory to your '/wp-content/plugins/' directory, using your favorite method (ftp, sftp, scp, etc...)
64+
1. Download the plugin named 'Compress JPEG & PNG images' by 'TinyPNG'.
65+
2. Upload the `tiny-compress-images` directory to your `/wp-content/plugins/` directory, using your favorite method (ftp, sftp, scp, etc...)
6666
3. Activate the plugin from your Plugins page.
6767
4. Register for an API key on https://tinypng.com/developers.
68-
5. Configure the API key in the Settings -> Media page.
69-
6. Upload an image and see it be compressed!
68+
5. Configure the API key in the *Settings > Media* page.
69+
6. Upload an image and see the optimization in action!
7070

7171
= Optional configuration =
7272

73-
The API key can also be configured in wp-config.php. You can add a TINY_API_KEY constant with your API key. Once set up you will see a message on the media settings page. This will work for normal and multisite WordPress installations.
73+
The API key can also be configured in wp-config.php. You can add a `TINY_API_KEY` constant with your API key. Once set up you will see a message on the media settings page. This will work for normal and multisite WordPress installations.
7474

7575
== Screenshots ==
7676

77-
1. Enter your TinyPNG or TinyJPG API key and configure the image sizes you would like to have compressed.
78-
2. See how much space TinyPNG has saved you from the media browser and compress additional sizes per image.
79-
3. Bulk compress existing images after installing the plugin or when additional sizes have to be compressed.
80-
4. Show progress while bulk compressing (selection from) media library.
81-
5. Bulk compress complete media library.
77+
1. Enter your TinyPNG or TinyJPG API key and configure the image sizes you want to optimize.
78+
2. In the Media Library you can see how much bytes TinyPNG has saved you. You can also compress additional sizes per image.
79+
3. Optimize all images in bulk after installing the plugin or when additional sizes have to be optimized.
80+
4. Showing progress during bulk optimization from media library.
81+
5. Bulk optimization of all images through the Media > Optimize Images page.
8282

8383
== Frequently Asked Questions ==
8484

85-
= Q: How many images can I compress for free? =
86-
A: In a default Wordpress installation you can compress around 100 images for free each month. WordPress creates different thumbnails of your images which all have to be compressed. Some plugins even add more sizes, so take a look at the Settings > Media page before you start compressing.
85+
= Q: How many images can I optimize for free? =
86+
A: In a default Wordpress installation you can optimize around 100 images for free each month. WordPress creates different thumbnails of your images which all have to be compressed. Some plugins even add more sizes, so take a look at the *Settings > Media* page before you start optimization.
8787

88-
= Q: What happens to the compressed images when I uninstall the plugin? =
89-
A: When you remove the TinyPNG plugin all your compressed images will remain compressed.
88+
= Q: What happens to the optimized images when I uninstall the plugin? =
89+
A: When you remove the TinyPNG plugin all your optimized images will remain optimized.
9090

9191
= Q: I don't recall uploading 500 photos this month but my limit is already reached. How is this number calculated? =
92-
A: When you upload an image to your website, WordPress will create different sized versions of it (see Settings > Media). The plugin will compress each of these sizes, so when you have 100 images and 5 different sizes you will do 500 compressions.
92+
A: When you upload an image to your website, WordPress will create different sized versions of it (see *Settings > Media*). The plugin will compress each of these sizes, so when you have 100 images and 5 different sizes you will do 500 compressions.
9393

9494
= Q: Is there a file size limit? =
9595
A: No. There are no limitations on the size of the images you want to compress.
9696

97-
= Q: What happens when I reach my monthly compression limit? =
98-
A: Everything will keep on working, but newly uploaded images will not be compressed. Of course we encourage everyone to sign up for a full subscription.
97+
= Q: What happens when I reach my monthly limit? =
98+
A: Everything will keep on working, but newly uploaded images will not be optimized. Of course we encourage everyone to sign up for a full subscription.
9999

100-
= Q: Can I compress all existing images in my media library? =
101-
A: Yes! After installing the plugin, go to Media > Compress All Images, and click on the button to compress all uncompressed images in your media library.
100+
= Q: Can I optimize all existing images in my media library? =
101+
A: Yes! After installing the plugin, go to *Media > Optimize Images*, and click on the button to optimize all unoptimized images in your media library.
102102

103103
== Changelog ==
104104

src/class-tiny-plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function admin_init() {
6262

6363
public function admin_menu() {
6464
add_media_page(
65-
__('Compress JPEG & PNG Images', 'tiny-compress-images'), __('Compress All Images', 'tiny-compress-images'),
65+
__('Compress JPEG & PNG Images', 'tiny-compress-images'), __('Optimize Images', 'tiny-compress-images'),
6666
'upload_files', 'tiny-bulk-compress', $this->get_method('bulk_compress_page')
6767
);
6868
}
@@ -87,7 +87,7 @@ public function enqueue_scripts($hook) {
8787
'wpVersion' => self::wp_version(),
8888
'pluginVersion' => self::plugin_version(),
8989
'L10nAllDone' => __('All images are processed', 'tiny-compress-images'),
90-
'L10nBulkAction' => __('Compress Images', 'tiny-compress-images'),
90+
'L10nBulkAction' => __('Optimize Images', 'tiny-compress-images'),
9191
'L10nCompressing' => __('Compressing', 'tiny-compress-images'),
9292
'L10nCompressions' => __('compressions', 'tiny-compress-images'),
9393
'L10nError' => __('Error', 'tiny-compress-images'),
@@ -251,7 +251,7 @@ public function bulk_compress_page() {
251251
echo '<input type="hidden" name="tiny-bulk-compress" value="1">';
252252
echo '<p>';
253253
echo '<button class="button button-primary button-large" type="submit">';
254-
esc_html_e('Compress All Images', 'tiny-compress-images');
254+
esc_html_e('Optimize Images', 'tiny-compress-images');
255255
echo '</button>';
256256
echo '</p>';
257257
echo '</form>';
@@ -269,7 +269,7 @@ public function bulk_compress_page() {
269269
$items = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'image/%' $cond ORDER BY ID DESC", ARRAY_A);
270270

271271
echo '<p>';
272-
esc_html_e('Please be patient while the images are being compressed, it can take a while if you have many images. Do not navigate away from this page because it will stop the process.', 'tiny-compress-images');
272+
esc_html_e('Please be patient while the images are being optimized, it can take a while if you have many images. Do not navigate away from this page because it will stop the process.', 'tiny-compress-images');
273273
echo '</p><p>';
274274
esc_html_e('You will be notified via this page when the processing is done.', 'tiny-compress-images');
275275
echo "</p>";

src/class-tiny-settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function admin_init() {
5555
}
5656

5757
$section = self::get_prefixed_name('settings');
58-
add_settings_section($section, __('PNG and JPEG compression', 'tiny-compress-images'), $this->get_method('render_section'), 'media');
58+
add_settings_section($section, __('PNG and JPEG optimization', 'tiny-compress-images'), $this->get_method('render_section'), 'media');
5959

6060
$field = self::get_prefixed_name('api_key');
6161
register_setting('media', $field);
@@ -309,7 +309,7 @@ public function render_total_savings() {
309309
if ($total_savings > 0) {
310310
printf(esc_html__('You have saved a total of %s on images!', 'tiny-compress-images'), '<strong>' . size_format($total_savings) . '</strong>' );
311311
} else {
312-
$link = '<a href="upload.php?page=tiny-bulk-compress">' . esc_html__('Compress All Images', 'tiny-compress-images') . '</a>';
312+
$link = '<a href="upload.php?page=tiny-bulk-compress">' . esc_html__('Optimize Images', 'tiny-compress-images') . '</a>';
313313
printf(esc_html__('No images compressed yet. Use %s to compress existing images.', 'tiny-compress-images'), $link);
314314
}
315315
echo '</p>';

test/integration/BulkCompressIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function tearDown() {
1919

2020
public function testBulkCompressActionShouldBePresentInMedia() {
2121
$this->upload_image(dirname(__FILE__) . '/../fixtures/input-example.png');
22-
$this->assertEquals('Compress Images', self::$driver->findElement(
22+
$this->assertEquals('Optimize Images', self::$driver->findElement(
2323
WebDriverBy::cssSelector('select[name="action"] option[value="tiny_bulk_compress"]')
2424
)->getText());
2525
}

test/integration/SettingsIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function testTitlePresence()
2020
{
2121
$headings = self::$driver->findElements(WebDriverBy::cssSelector('h1, h2, h3, h4'));
2222
$texts = array_map('innerText', $headings);
23-
$this->assertContains('PNG and JPEG compression', $texts);
23+
$this->assertContains('PNG and JPEG optimization', $texts);
2424
}
2525

2626
public function testApiKeyInputPresence() {
@@ -174,7 +174,7 @@ public function testShouldShowBulkCompressionLink() {
174174
self::$driver->wait(2)->until(WebDriverExpectedCondition::presenceOfElementLocated(WebDriverBy::cssSelector('#tiny-compress-savings p')));
175175
$elements = self::$driver->findElement(WebDriverBy::id('tiny-compress-savings'))->findElements(WebDriverBy::tagName('p'));
176176
$statuses = array_map('innerText', $elements);
177-
$this->assertContains('No images compressed yet. Use Compress All Images to compress existing images.', $statuses);
177+
$this->assertContains('No images compressed yet. Use Optimize Images to compress existing images.', $statuses);
178178
}
179179

180180
public function testShouldShowSavings() {

test/unit/TinySettingsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function testAdminInitShouldRegisterKeys() {
2323

2424
public function testAdminInitShouldAddSettingsSection() {
2525
$this->assertEquals(array(
26-
array('tinypng_settings', 'PNG and JPEG compression', array($this->subject, 'render_section'), 'media'),
26+
array('tinypng_settings', 'PNG and JPEG optimization', array($this->subject, 'render_section'), 'media'),
2727
), $this->wp->getCalls('add_settings_section'));
2828
}
2929

0 commit comments

Comments
 (0)