ImageSizerEngine class

Located in file /wire/core/ImageSizerEngine.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the ImageSizerEngine class also inherits all the methods and properties of: WireData and Wire.

Show class?             Show args?        


ImageSizerEngine::autoRotation bool 
boolConvert image to greyscale 
boolConvert image to sepia 
ImageSizerEngine::cropping array string bool 
string bool arrayGiven an unknown cropping value, return the validated internal representation of it 
stringGiven an unknown cropping value, return the string representation of it 
ImageSizerEngine::defaultGamma float 
ImageSizerEngine::enginePriority int Priority for use among other ImageSizerEngine modules (0=disabled, 1=first, 2=second, 3=and so on) 
ImageSizerEngine::flip string 
boolFlip both vertically and horizontally 
boolFlip horizontally 
boolFlip vertically 
ImageSizerEngine::get(string $key)
mixed nullGet a property 
arrayGet module config data 
arrayGet array of information about this engine 
stringReturn the file extension 
stringReturn the filename 
intReturn the image height 
stringReturn the image type constant 
stringGet library version string 
boolGet whether the image was modified 
ImageSizerEngine::getModuleConfigInputfields(InputfieldWrapper $inputfields)
(nothing)Module configuration 
arrayReturn an array of the current options 
arrayGet an array of image file formats this ImageSizerModule can use as source or target 
intReturn the image width 
ImageSizerEngine::interlace bool 
boolModule info: not-autoload 
boolWas the image modified? 
boolModule info: not singular 
ImageSizerEngine::prepare(string $filename)
(nothing)Prepare the ImageSizer (this should be the first method you call) 
ImageSizerEngine::quality int 
ImageSizerEngine::resize(int $finalWidth, int $finalHeight)
boolResize the image 
ImageSizerEngine::rotate(int $degrees)
boolJust rotate image by number of degrees
Can also be used as property: ImageSizerEngine::rotate
ImageSizerEngine::scale float 
selfTurn on/off auto rotation 
ImageSizerEngine::setConfigData(array $data)
(nothing)Set module config data for ConfigurableModule interface 
ImageSizerEngine::setCropExtra(array $value)
selfSet values for cropExtra rectangle, which enables cropping before resizing 
selfTurn on/off cropping and/or set cropping direction 
selfSet default gamma value: 0.5 - 4.0 | -1 
selfSet flip 
selfEnable hidpi mode? 
selfTurn on/off interlace 
ImageSizerEngine::setModified(bool $modified)
selfSet whether the image was modified 
ImageSizerEngine::setOptions(array $options)
selfAlternative to the above set* functions where you specify all in an array 
ImageSizerEngine::setQuality(int $n)
selfSet the image quality 1-100, where 100 is highest quality 
selfSet rotation degrees 
ImageSizerEngine::setScale(float $scale)
selfSet scale for hidpi (2.0=hidpi, 1.0=normal, or other value if preferred) 
ImageSizerEngine::setSharpening(mixed $value)
selfSet sharpening value: blank (for none), soft, medium, or strong 
selfSet a time limit for manipulating one image (default is 30) 
selfTurn on/off upscaling 
selfToggle on/off the usage of USM algorithm for sharpening 
ImageSizerEngine::setWebpAdd(bool $webpAdd)
selfSet flag to also create a webp file or not 
selfSet flag to only create a webp file 
ImageSizerEngine::setWebpQuality(int $n)
selfSet the image quality 1-100 for WebP output, where 100 is highest quality 
ImageSizerEngine::sharpening string 
stringGiven an unknown sharpening value, return the string representation of it 
boolIs this ImageSizer class ready only means: does the server / system provide all Requirements! 
ImageSizerEngine::upscaling bool 
ImageSizerEngine::useUSM bool 
ImageSizerEngine::webpAdd bool 
ImageSizerEngine::webpOnly bool null 
ImageSizerEngine::webpQuality int 
ImageSizerEngine::webpResult bool null 
ImageSizerEngine::writeBackIPTC(string $filename)
bool nullDefault IPTC Handling 

Additional methods and properties

In addition to the methods and properties above, ImageSizerEngine also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.155

Twitter updates

  • This post covers a few of the bigger updates in ProcessWire 3.0.154+3.0.155. This includes new live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our input->urlSegment() method! More
    24 April 2020
  • A brief look at what's new in ProcessWire 3.0.154 in this forum post: More
    17 April 2020
  • This week we’ve got a few new and interesting core updates in progress, though none quite ready to release just yet. So rather than releasing version 3.0.154 today, I thought we'd instead take a brief look at what’s coming over the next few weeks… More
    3 April 2020

Latest news

  • ProcessWire Weekly #311
    In the 311th issue of ProcessWire Weekly we're going to talk a bit about the latest dev versions of ProcessWire, introduce a couple of new third party modules, and more. Read on! / 25 April 2020
  • ProcessWire 3.0.154 and 3.0.155 core updates
    This post covers a few of the bigger updates in ProcessWire 3.0.154 and 3.0.155 on the dev branch. This includes a new function for live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our $input->urlSegment() method that I think you’ll like!
    Blog / 24 April 2020
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer