32 $this->
markTestSkipped(
"This test is only applicable when using ImageMagick thumbnailing" );
34 if ( !$wgUseImageResize ) {
35 $this->
markTestSkipped(
"This test is only applicable when using thumbnailing" );
39 $this->
setMwGlobals(
'wgJpegPixelFormat', $pixelFormat );
41 $file = $this->
dataFile( $sourceFile,
'image/jpeg' );
47 $this->
assertTrue( !$thumb->isError(),
"created JPEG thumbnail for pixel format $fmtStr" );
49 $path = $thumb->getLocalCopyPath();
52 $result = Shell::command(
'identify',
54 '%[jpeg:sampling-factor]',
58 $result->getExitCode(),
59 "ImageMagick's identify command should return success"
63 $actual =
trim( $result->getStdout() );
67 "IM identify expects JPEG chroma subsampling \"$expected\" for $fmtStr"
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgUseImageResize
Whether to enable server-side image thumbnailing.
$wgUseImageMagick
Resizing can be done using PHP's internal image libraries or using ImageMagick or another third-party...
const RENDER_NOW
Force rendering in the current process.
const RENDER_FORCE
Force rendering even if thumbnail already exist and using RENDER_NOW I.e.