WOOF_Image :: mt( Arguments $args = array() )


  • String The HTML for the MasterPress thumb. (requires JavaScript augmentation to work correctly).

An alias for the WOOF_Image::mp_thumb to create a thumbnail link to the fullsize image which is intended to be augmented with the JavaScript fancyzoom plugin bundled with MasterPress (mt abbreviates “MasterPress Thumbnail”). This method is mostly intended to be used in the column specification for an image field. It accepts the same arguments as WOOF_Image::resize.



  • Arguments $args = array()

    An arguments array or string supporting the following parameters:

    • fullsize => an arguments array / string for the fullsize resize params. If not specified, the unprocessed fullsize image will be used. default – not set
    • thumbsize => an arguments array / string for the thumbnail params.
    • full => a WOOF_Image object to use for the fullsize image (can only be used when passing an ARRAY version of the arguments in). default – not specified (which uses THIS image)

    The params accepted by either of the above can be as follows, OR you can provide these at the top level, which will cause the method to assume this applies to the thumbnail:

    • c => Whether the image should be cropped to fit the dimensions given (only applicable when BOTH dimensions are given). If you don’t crop, the image may contain whitespace to fill the shorter dimension – default 1 (true)
    • w => The width to resize to – default 0 (i.e. unspecified)
    • h => The height to resize to – default 0 (i.e. unspecified)
    • q => The image quality to use for JPEF images – default 85
    • ca => The location to crop from (crop anchor) when cropping is required – default 0 (unspecified), but can be
      • L = Left (Middle)
      • TL = Top-Left
      • BL = Bottom-Left
      • R = Right (Middle)
      • TR = Top-Right
      • BR = Bottom-Right
      • T = Top (Center)
      • B = Bottom (Center)
      • C = Center
    • iar => whether to ignore the aspect ratio and simply squash or stretch the image, without cropping or whitespace – default 0 (false)
    • up => whether to allow UPsizing of an image – default 1 (true)
    • co => An x,y offset to the crop anchor. default “0,0”

Latest From the Blog

MasterPress 1.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM