HomePhabricator

SocialProfile: support GD for image uploads, too, instead of requiring…

Description

SocialProfile: support GD for image uploads, too, instead of requiring ImageMagick. Code by Phil Nelson (see http://web.archive.org/web/20090629011952/http://philnelson.name/2009/01/06/using-mediawikis-socialprofile-extension-without-exec-support-in-php/ and http://web.archive.org/web/20090614215532/http://philnelson.name/wpfiles/wp-content/uploads/2009/01/socialprofile-gd.txt), some coding style and code fixes by me. The original code called imagejpeg() unconditionally, even for gif and png images, which caused that the medium-large, medium and small images weren't generated properly. I also adapted the code for SystemGiftManagerLogo and GiftManagerLogo special pages.

Details

Committed
ashleyJul 25 2011, 5:06 PM
Parents
rSVN93066: Stylize Extension
Branches
Unknown
Tags
Unknown
ChangeId
None