function ImageStylesHTTPHeadersTestCase::_imagestyleUpscale

Adding upscale effect to imagestyle.

4 calls to ImageStylesHTTPHeadersTestCase::_imagestyleUpscale()
ImageStylesHTTPHeadersTestCase::testImageStyleUrlAndPathPrivateAndDownscale in modules/image/image.test
Test image_style_url() with a file with private scheme and downscaling.
ImageStylesHTTPHeadersTestCase::testImageStyleUrlAndPathPrivateAndUpscale in modules/image/image.test
Test image_style_url() with a file with private scheme and upscaling.
ImageStylesHTTPHeadersTestCase::testImageStyleUrlAndPathPublicAndDownscale in modules/image/image.test
Test image_style_url() with a file with public scheme and downscaling.
ImageStylesHTTPHeadersTestCase::testImageStyleUrlAndPathPublicAndUpscale in modules/image/image.test
Test image_style_url() with a file with public scheme and upscaling.

File

modules/image/image.test, line 2200

Class

ImageStylesHTTPHeadersTestCase
Tests for correct file size, dimensions and HTTP headers after scaling.

Code

private function _imagestyleUpscale($width, $height) {
  // Scale an image that is wider than it is high.
  $effect = array(
    'name' => 'image_scale',
    'data' => array(
      'width' => $width,
      'height' => $height,
      'upscale' => TRUE,
    ),
    'isid' => $this->styleId,
  );
  image_effect_save($effect);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.