Professional Documents
Culture Documents
Jpeg
Jpeg
You can increase the value of $wgMaxImageArea or switch to using ImageMagick which
evades this restriction (set $wgUseImageMagick and $wgImageMagickConvertCommand).
Large images can take significant processing time. It may be good policy to cap the
size of images.
make clean
./configure --with-various-switches --with-jpeg-dir --with-gd --with-more-switches
make
make test
#switch to root
make install
Afterwards, restart the webserver (for Apache on Red Hat: service apache stop then
service apache start ). To test, simply view the File:... page again (no need to
upload again). For more information see the comments on PHP: imagecreatefromjpeg
(function synopsis)
images/f/f8/Foo.png
should have its thumbnails at:
images/thumb/f/f8/Foo.png/100px-Foo.png
images/thumb/f/f8/Foo.png/600px-Foo.png
The pixel size is the horizontal dimension. An example Bash script for creating
thumbnails is available at Phabricator:P7049.
Sorry! We could not process your edit due to a loss of session data. Please try
again. If it still doesn't work, try logging out and logging back in.
See Manual:How to debug/Login problems.
Content Limits
If your Apache server has the Hardened PHP patch, you may need to edit several
variables in your /etc/php.ini file if you wish to have wiki pages with large
amounts of content. In particular, consider the settings for
varfilter.max_value_length, hphp.post.max_value_length, and
hphp.request.max_value_length. The default settings may limit your pages to less
than 10k or 64k in size.