Thread:Project:Support desk/1.24 mediawiki, can't display 24bit .png file./reply (5)

Dear Ciencia AI Poder, This happens for some images such as screenshots images which are caught thru keyboard (shift+PrtScn) and saved as 24 bit .png or .jpg file by mspaint tool. But if these screenshots images were same as 16 bit .png, they can be displayed in mediawiki. Some images like the windows 7 system original images(.jpg) also can't display in mediawiki(no size limit issue in mediawiki, hava changed size limit). But if I edit the windows 7 system original images thru mspaint tools and save the edited image as .jpg file, these edited images(.jpg) file can be displayed in mediawiki.

Due to some restriction to upload attachment by private network, I am trying to attach it in the website. Attached debug trace of a failure displayed 24 bit .png image below: Debug data: •	o 	Start request GET /mediawiki/index.php?title=Special:Upload HTTP HEADERS: CONTENT-LENGTH: ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:ListFiles ACCEPT-LANGUAGE: zh-CN USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8) ACCEPT-ENCODING: gzip, deflate HOST: 109.123.121.197 DNT: 1 CONNECTION: Keep-Alive COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 	[caches] LocalisationCache: using store LCStoreDB 	Fully initialised 	User: cache miss for user 1 	Connected to database 0 at 109.123.121.197 	User: loading options for user 1 from database. 	User: logged in from session 	User: loading options for user 1 from override cache. 	Connected to database 0 at 109.123.121.197 	MessageCache::load: Loading en... got from global cache 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 	Parser: using preprocessor: Preprocessor_DOM 	Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct 	User::getBlockedStatus: checking... 	UploadBase::createFromRequest: class name: UploadFromFile 	User::matchEditToken: broken session data 	ContextSource::getContext (UploadForm): called and $context is null. Using RequestContext::getMain for sanity 	Start request POST /mediawiki/index.php?title=Special:Upload HTTP HEADERS: CONTENT-LENGTH: 841266 ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:Upload ACCEPT-LANGUAGE: zh-CN USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8) CONTENT-TYPE: multipart/form-data; boundary=---7df24a38303da ACCEPT-ENCODING: gzip, deflate HOST: 109.123.121.197 DNT: 1 CONNECTION: Keep-Alive CACHE-CONTROL: no-cache COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 	[caches] LocalisationCache: using store LCStoreDB 	Fully initialised 	User: cache miss for user 1 	Connected to database 0 at 109.123.121.197 	User: loading options for user 1 from database. 	User: logged in from session 	User: loading options for user 1 from override cache. 	Connected to database 0 at 109.123.121.197 	MessageCache::load: Loading en... got from global cache 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 	Parser: using preprocessor: Preprocessor_DOM 	Unstubbing $wgLang on call of $wgLang::_unstub from ParserOptions::__construct 	User::getBlockedStatus: checking... 	UploadBase::createFromRequest: class name: UploadFromFile 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 	MimeMagic::__construct: loading mime types from /home/html/mediawiki/includes/mime.types 	MimeMagic::__construct: loading mime info from /home/html/mediawiki/includes/mime.info 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 	MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 	UploadBase::detectScript: checking for embedded scripts and HTML stuff 	UploadBase::detectScript: no scripts found 	ZipDirectoryReader: Fatal error: zip file lacks EOCDR signature. It probably isn't a zip file. 	UploadBase::detectVirus: virus scanner disabled 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 	MimeMagic::improveTypeFromExtension: improved mime type for .png: image/png 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 	UploadBase::verifyFile: all clear; passing. 	FSFile::getProps: Getting file info for /tmp/phpR1PA3N 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 	MimeMagic::improveTypeFromExtension: improved mime type for .: image/png 	FSFile::getProps: /tmp/phpR1PA3N loaded, 840202 bytes, image/png. 	UploadStash::stashFile stashing file at '/tmp/phpR1PA3N' 	MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead. 	MimeMagic::doGuessMimeType: analyzing head and tail of /tmp/phpR1PA3N for magic numbers. 	MimeMagic::doGuessMimeType: getimagesize detected /tmp/phpR1PA3N as image/png 	MimeMagic::guessMimeType: guessed mime type of /tmp/phpR1PA3N: image/png 	UploadStash::stashFile key for '/tmp/phpR1PA3N': 137e7y2qynig.an59iq.1.png 	UploadStash::stashFile inserting mwrepo://local/temp/e/e7/20150604100251!phpR1PA3N.png under 137e7y2qynig.an59iq.1.png 	DatabaseBase::query: Writes done: INSERT INTO `uploadstash` (us_id,us_user,us_key,us_orig_path,us_path,us_props,us_size,us_sha1,us_mime,us_media_type,us_image_width,us_image_height,us_image_bits,us_source_type,us_timestamp,us_status) VALUES (NULL,'X') 	ContextSource::getContext (UploadForm): called and $context is null. Using RequestContext::getMain for sanity 	MimeMagic::guessMimeType: WARNING: use of the $ext parameter is deprecated. Use improveTypeFromExtension($mime, $ext) instead. 	MimeMagic::doGuessMimeType: analyzing head and tail of /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png for magic numbers. 	MimeMagic::doGuessMimeType: getimagesize detected /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png as image/png 	MimeMagic::guessMimeType: guessed mime type of /home/html/mediawiki/images/temp/e/e7/20150604100251!phpR1PA3N.png: image/png 	UploadStashFile::getThumbUrl getting for 120px-137e7y2qynig.an59iq.1.png 	File::transform: Doing stat for mwstore://local-backend/local-temp/e/e7/120px-137e7y2qynig.an59iq.1.png 	FileBackendStore::getFileStat: File mwstore://local-backend/local-temp/e/e7/120px-137e7y2qynig.an59iq.1.png does not exist. 	UploadStashFile::getThumbUrl getting for 120px-137e7y2qynig.an59iq.1.png 	TransformationalImageHandler::doTransform: creating 120x49 thumbnail at /tmp/transform_76d5ee8845af-1.png using scaler client 	LoadBalancer::getConnection: using server 109.123.121.197 for group logpager Debug data: •	o 	Start request GET /mediawiki/index.php?title=File:H.png HTTP HEADERS: CONTENT-LENGTH: ACCEPT: image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* REFERER: http://109.123.121.197/mediawiki/index.php?title=Special:Upload ACCEPT-LANGUAGE: zh-CN USER-AGENT: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC LM 8) DNT: 1 ACCEPT-ENCODING: gzip, deflate HOST: 109.123.121.197 COOKIE: wikiUserName=Lihuachen; block-2=1; wikiEditor-0-booklet-characters-page=greek; wikiEditor-0-booklet-help-page=file; wikiUserID=1; wiki_session=957c74d0ecbb8653c936646ea47644e0 CONNECTION: Keep-Alive CACHE-CONTROL: no-cache 	[caches] main: EmptyBagOStuff, message: SqlBagOStuff, parser: SqlBagOStuff 	[caches] LocalisationCache: using store LCStoreDB 	Fully initialised 	Connected to database 0 at 109.123.121.197 	Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload} 	[ContentHandler] Created handler for wikitext: WikitextContentHandler 	User: cache miss for user 1 	User: loading options for user 1 from database. 	User: logged in from session 	User: loading options for user 1 from override cache. 	Unstubbing $wgLang on call of $wgLang::getCode from MessageCache::getMessageFromFallbackChain 	Connected to database 0 at 109.123.121.197 	MessageCache::load: Loading en... got from global cache 	Unstubbing $wgParser on call of $wgParser::firstCallInit from MessageCache::getParser 	Parser: using preprocessor: Preprocessor_DOM 	MimeMagic::__construct: loading mime types from /home/html/mediawiki/includes/mime.types 	MimeMagic::__construct: loading mime info from /home/html/mediawiki/includes/mime.info 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 	FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png does not exist. 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_c331396ed9aa-1.png using scaler client 	TransformationalImageHandler::doTransform: returning unscaled image 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_918325b1ad7d-1.png using scaler client 	TransformationalImageHandler::doTransform: returning unscaled image 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/946px-H.png 	TransformationalImageHandler::doTransform: creating 946x390 thumbnail at /tmp/transform_1fe29a942391-1.png using scaler client 	TransformationalImageHandler::doTransform: returning unscaled image 	Article::view using parser cache: yes 	Parser cache options found. 	ParserOutput cache found. 	Article::view: showing parser cache contents 	File::transform: Doing stat for mwstore://local-backend/local-thumb/a/a2/H.png/120px-H.png 	FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/a/a2/H.png/120px-H.png does not exist. 	TransformationalImageHandler::doTransform: creating 120x49 thumbnail at /tmp/transform_3635f248e964-1.png using scaler client 	User::getBlockedStatus: checking... 	Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload} 	Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload} 	Title::getRestrictionTypes: applicable restrictions to are {edit,move,upload}