Plugin Directory

Changeset 826421

Timestamp:
12/21/2013 04:07:53 AM (11 years ago)
Author:
mbijon
Message:

Plugin updated to 2.1.0:

  • Add handling of the 'wp_editor_set_quality' filter that was added in WP 3.5 for ImageMagick API
  • Update styles to use colors from WP3.8 admin themes
  • Docs & screenshot reflect new placement of slider on the Settings > Media admin page
Location:
wp-resized-image-quality/trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • wp-resized-image-quality/trunk/readme.txt

    r736889 r826421  
    22Contributors: mbijon
    33Tags: image, thumbnail, compression, quality, YSlow, PageSpeed, bandwidth, jpeg, jpg, size, file, storage, uploader, uploaded, imagemagick, gd library
    4 Requires at least: 2.7
    5 Tested up to: 3.6-beta4
    6 Stable tag: 2.0
     4Requires at least:
     5Tested up to: 3.
     6Stable tag: 2.
    77
    88Get better uploaded quality or save bandwidth: Change the JPEG compression-level of uploaded images and thumbnails.
     9
    910
    1011== Description ==
     
    1213Get better uploaded quality or save bandwidth: Change the JPEG compression-level of uploaded images and thumbnails.
    1314
    14 The WP Resized Image Quality plugin lets you change the compression-level of uploaded JPEG images and thumbnails. Set it for maximum quality when you want images to look their best, or take advantage of lower quality settings to save bandwidth.
     15 change the compression-level of uploaded JPEG images and thumbnails. Set it for maximum quality when you want images to look their best, or take advantage of lower quality settings to save bandwidth.
    1516
    16 The admin page uses an easy slider to set the compression level, making this easier to use than other compression plugins or functions.php settings.
     17The only interface is a slider aqdded to the Settings > Media admin page, making this easier to use than other compression plugins or functions.php settings.
     18
    1719
    1820== Installation ==
    1921
    20 1. Install 'WP Resized Image Quality' through the WordPress.org plugin directory, or by uploading the files to your server
    21 2. After activating the Plugin, change your image quality settings on the Settings page in WP-Admin: Settings > Image Quality
     221. Install 'WP Resized Image Quality' through the WordPress.org plugin directory,
     232. After activating the Plugin, change your image quality settings on the Settings page in WP-Admin: Settings >
    22243. That's it.  You're ready to go!
     25
    2326
    2427= Requirements =
     
    2629* PHP 5.2 or above
    2730* WordPress 3.1 or above
     31
     32
    2833
    2934== Frequently Asked Questions ==
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
    3045
    3146= How can I update JPEGs uploaded before installing this plugin at a different setting? =
     
    3348First, install this plugin and choose your new compression level. Then install the Regenerate Thumbnails plugin, http://wordpress.org/plugins/regenerate-thumbnails/, and run it. All the regenerated thumbnails will be compressed at the compression % from this plugin.
    3449
    35 = What was the default image quality in WordPress? =
    36 
    37 The default image compression setting for JPEGs is 90%.
    3850
    3951= What happens to uploaded images if I turn the plugin off? =
    4052
    41 After you deactivate the custom compression setting will be removed and all new images will use WP's default 90% compression setting. Images uploaded while the plugin was active will stay at their old compression level.
     53Images uploaded while the plugin was active will stay at their original/old compression level (to recompress them, I recommend the Regenerate Thumbnails plugin). After you deactivate the custom compression setting will be removed and all new images will use WP's default 90% compression setting.
     54
    4255
    4356= Does this plugin compress PNG files? =
    4457
    45 Unfortunately, it doesn't. All the PNG compression tools I've found aren't standard on most servers. You would need root access and a more-complicated plugin to get PNG compression working.
     58No, it doesn't. All the PNG compression tools I've found aren't standard on most servers. You would need root access and a more-complicated plugin to get PNG compression working.
     59
     60
    4661
    4762== Screenshots ==
    4863
    49641. No complicated media/compression interface. Just one slider added to the Settings > Admin page
    50 2. Admin page with one setting, simple enough
     65
    5166
    5267== Changelog ==
     68
     69
     70
     71
     72
    5373
    5474= 2.0 =
  • wp-resized-image-quality/trunk/templates/riq-admin-page-template.php

    r736889 r826421  
    2020                <tr>
    2121                    <td colspan="2">
    22                         <?php $sm_url = admin_url( 'options-media.php' ); ?>
    23                         <h3>Plugin Version 2.0, Update Note:</h3>
    24                         <p>The slider below was added to the <a href="<?php echo $sm_url; ?>">Settings &gt; Media page</a> in version 2.0.
    25                         <br />
    26                         In version 3.0 this screen will be removed and the slider will only be on the <a href="<?php echo $sm_url; ?>">Settings &gt; Media page</a>.</p>
     22                        <div class="widgets-holder-wrap" style="padding: 0 10px 10px;">
     23                            <?php $sm_url = admin_url( 'options-media.php' ); ?>
     24                            <h3>Plugin, Future Update Note:</h3>
     25                            <p>The slider below has been added to the <a href="<?php echo $sm_url; ?>">Settings &gt; Media page</a>
     26                            <br /><br />
     27                            In version 3.0 this screen will be removed and the slider will <strong>*only*</strong> be on the <a href="<?php echo $sm_url; ?>">Settings &gt; Media page</a></p>
     28                        </div>
    2729                    </td>
    2830                </tr>
    2931                <tr>
    3032                    <th>
    31                         <strong><?php _e( 'JPEG Quality %', 'wp-resized-image-quality' ); ?></strong>
     33                        <strong><?php _e( 'JPEG Quality', 'wp-resized-image-quality' ); ?></strong>
    3234                    </th>
    3335                    <td>
    3436                        <div>
    35                             <input type="text" class="riq-amount" id="riq-amount" style="border: 0; font-weight: bold;" />
    36                             <br />
    37                             <?php _e( 'The default compression setting in WordPress is 90%', 'wp-resized-image-quality' ); ?>
     37                            Compression %: <input type="text" class="riq-amount" id="riq-amount" style="font-weight: bold; background-color: transparent; border: none; box-shadow: none;" />
    3838                        </div>
    3939                    </td>
     
    4343                        <div class="riq-slider" id="riq-slider" style="width:400px;"></div>
    4444                        <input type="hidden" name="riq-integer" id="riq-integer" value="<?php echo $this->jpeg_quality; ?>" />
     45
     46
     47
    4548                    </td>
    4649                </tr>
  • wp-resized-image-quality/trunk/templates/riq-media-option-template.php

    r736889 r826421  
    55
    66    <div>
    7         Current Compression %: <input type="text" class="riq-amount" id="riq-amount" style="border: 0; font-weight: bold;" />
     7        C;" />
    88        <br />
    99       
  • wp-resized-image-quality/trunk/wp-resized-image-quality.php

    r736889 r826421  
    22/************************************************************************
    33Plugin Name: WP Resized Image Quality
    4 Plugin URI: http://www.geekcoded.com/plugin/wp-resized-image-quality/
     4Plugin URI: http://www.
    55Description: Change the compression-level of uploaded images and thumbnails. Get better image quality or save bandwidth.
    6 Version: 2.0
    7 Author: Mike Bijon, GeekCoded
    8 Author URI: http://www.mbijon.com/about-mike-bijon/
     6Version: 2.
     7Author: Mike Bijon,
     8Author URI: http://www.mbijon.com/about
    99License: GPLv2
    1010
     
    2929************************************************************************/
    3030
    31 if ( ! class_exists('WP_Resized_Image_Quality') ) :
     31if ( ! class_exists() ) :
    3232
    3333class WP_Resized_Image_Quality {
     
    5151     */
    5252    const RIQ_PLUGIN_VERSION = '2.0';
     53
     54
     55
     56
     57
    5358   
    5459   
     
    7883        // The whole reason we're here
    7984        add_filter( 'jpeg_quality', array( $this, 'get_jpeg_quality_setting' ) );
     85
    8086       
    8187        load_plugin_textdomain( 'wp-resized-image-quality', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
     
    162168                $jpeg_quality = (int)90;
    163169           
    164             set_transient( 'riq_jpeg_quality', $jpeg_quality, 60 * 60 * 24 );
     170            set_transient( 'riq_jpeg_quality', $jpeg_quality, );
    165171           
    166172        }
     
    195201                $jpeg_quality = (int)90;
    196202           
    197             set_transient( 'riq_jpeg_quality', $jpeg_quality, 60 * 60 * 24 );
     203            set_transient( 'riq_jpeg_quality', $jpeg_quality, );
    198204           
    199205        }
     
    247253                $jpeg_quality = (int)90;
    248254           
    249             set_transient( 'riq_jpeg_quality', $jpeg_quality, 60 * 60 * 24 );
     255            set_transient( 'riq_jpeg_quality', $jpeg_quality, );
    250256        }
    251257       
     
    261267       
    262268        $this->jpeg_quality = intval( $jpeg_quality );
    263         set_transient( 'riq_jpeg_quality', intval( $jpeg_quality ), 60 * 60 * 24 );
     269        set_transient( 'riq_jpeg_quality', intval( $jpeg_quality ), );
    264270       
    265271        return true;
Note: See TracChangeset for help on using the changeset viewer.