How do I get an avatar? [SPLIT]

Locked
User avatar
Malificus
Dr. Malpractice
Joined: Sat Aug 03, 2002 2:55 pm
Location: St. Paul, Minnesota
Contact:
Org Profile

Post by Malificus » Sat Jan 15, 2005 12:21 pm

Janzki wrote:
bum wrote:
AbsoluteDestiny wrote:BMA your avatar is WAY too big... it's like HALF A MEG!!!

Please either reduce it to less than 80k or remove it.
Half a meg? For an avatar?!?!?!?!? sweet jesus.
Let's all use our latest AMVs as our avatars!

:idea:
I can see the 56k users squirm now... :twisted:

User avatar
Gemberkoekje
Joined: Wed Jan 05, 2005 11:42 pm
Org Profile

Post by Gemberkoekje » Sun Jan 16, 2005 1:01 pm

lol *already sees whole episode of DBZ in post-stamp format everytime i look at a post... (brrrr)*
BakaNeko.nl!

trythil
is
Joined: Tue Jul 23, 2002 5:54 am
Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
Location: N????????????????
Org Profile

Post by trythil » Sun Jan 16, 2005 1:46 pm

Gemberkoekje wrote:Can't you put a size-constraint on external links? Can't be that hard to do PHP-programmaticaly i think... although im bad at PHPBB forums *too much code hahaha :P*
It's harder than you think. I actually tried to do this a while back and wasn't met with happy super fun results.

The built-in gd library can only work on images that are local -- this might have changed in _very_ recent versions of PHP, but I don't think the .org is running the PHP bleeding edge.

One way to do it is to just issue an HTTP GET request to a site every time an avatar is changed, intercept the headers, and check the Content-Length field. There's a big problem with that, though: Manual socket code to check one stupid thing. It's unnecessary complexity.

User avatar
Gemberkoekje
Joined: Wed Jan 05, 2005 11:42 pm
Org Profile

Post by Gemberkoekje » Sun Jan 16, 2005 2:38 pm

Well then - disable all externals and make everyone upload?
BakaNeko.nl!

User avatar
Sivis
Joined: Sat May 01, 2004 8:50 pm
Location: Tampere, Finland
Contact:
Org Profile

Post by Sivis » Sun Jan 16, 2005 4:34 pm

trythil wrote:It's harder than you think. I actually tried to do this a while back and wasn't met with happy super fun results.

The built-in gd library can only work on images that are local -- this might have changed in _very_ recent versions of PHP, but I don't think the .org is running the PHP bleeding edge.
getimagesize() function should work with remote images too (since php 4.0.5) and it doesn't even require the gd library

User avatar
Sivis
Joined: Sat May 01, 2004 8:50 pm
Location: Tampere, Finland
Contact:
Org Profile

Post by Sivis » Sun Jan 16, 2005 4:43 pm

Sivis wrote: getimagesize() function should work with remote images too (since php 4.0.5) and it doesn't even require the gd library
And then I understand that you meant filesize, not imagesize ;)
But anyway, there seems to be function that does the trick on filesize functions help page on php.net

Locked

Return to “Site Help & Feedback”