Last modified: 2012-11-25 00:14:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44342, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42342 - Some Thumbnails are not created
Some Thumbnails are not created
Status: RESOLVED DUPLICATE of bug 32387
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 41371
  Show dependency treegraph
 
Reported: 2012-11-22 00:38 UTC by PlusPedia
Modified: 2012-11-25 00:14 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description PlusPedia 2012-11-22 00:38:45 UTC
For this Image
http://de.pluspedia.org/wiki/Datei:Steintest.jpg

the thumbnail is not created. Media-Wiki tells the thumbnail parameters are invalid.

The error also occurs on 1.19.2 and 1.20.

Thumbnails are created in general but a few of them are not.
Comment 1 Andre Klapper 2012-11-24 21:25:27 UTC
The pixel size of the file is 3.264 × 4.928.
Does the same problem happen for files with a similar (or even larger) size?
Comment 2 Nemo 2012-11-24 21:27:58 UTC

*** This bug has been marked as a duplicate of bug 32387 ***
Comment 3 PlusPedia 2012-11-25 00:14:10 UTC
@Andre - Thank you for your answer. It's the right Question :-)

Meanwhile I found the solution.

$wgMaxImageArea = 1.25e7; is too small.

My first Solution:
LocalSettings.php:
 $wgMaxImageArea = $wgMaxImageArea * 100 


Background File: Bitmap.php:

Til 18.4 (incl.):

		if ( $mimeType !== 'image/jpeg' &&
			$srcWidth * $srcHeight > $wgMaxImageArea )
		{
			return false;
		} 


Since 19.0:

			if ( $srcWidth * $srcHeight > $wgMaxImageArea &&
					!( $image->getMimeType() == 'image/jpeg' &&
						self::getScalerType( false, false ) == 'im' ) ) {
				# Only ImageMagick can efficiently downsize jpg images without loading
				# the entire file in memory
				return false;
                  }

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links