Version: 1.00, by The Geek
Developer Last Online: Jan 2019
Version: 3.0.7
Rating:
Released: 03-16-2005
Last Update: Never
Installs: 33
Is in Beta Stage
No support by the author.
Basically this is a very simple addition to stop the mega computer literate who use my forums driving everyone insane with their 'I tried to upload my pic as an avatar but its too big - how do I resize it'.
In a nutshell, this will automatically resize the uploaded avatar (and profile picture) to your max dimensions (if it is too big).
It must still be smaller than the Custom Avatar Maximum File Size (bytes) / Profile Picture Maximum File Size (bytes) setting. In fact - it wont even get uploaded if the pic exceeds this size. Therefore I would suggest raising this limit to an appropriate amount.
There is 1 file edit (1 line) and 1 include file.
(Im going to get pissed if someone says there is already a hack for this )
change log
----------- Update to BETA 1.02 on 18/03/05
Added GD test
Fixed dumb typo that caused image dimensions to not be retrieved.
nJoy
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Man, I don't know what's going on here. I commented out those lines and no luck.
I tried a png file a jpg file and a gif file, and none of them resized, I still got the dimensions to large error like it wasn't doing the shrinking at all.
I tried changing require_once('./includes/functions_geekautoavatar.php');
to the full path to that file and still nothing.
I'd almost feel better if there was SOME sort of php error that gave me a hint what to look for. But noooo, it's just being passive agressive an saying:
"That image is too large. The maximum dimensions are 48 by 48 pixels."
Man, I don't know what's going on here. I commented out those lines and no luck.
I tried a png file a jpg file and a gif file, and none of them resized, I still got the dimensions to large error like it wasn't doing the shrinking at all.
I tried changing require_once('./includes/functions_geekautoavatar.php');
to the full path to that file and still nothing.
I'd almost feel better if there was SOME sort of php error that gave me a hint what to look for. But noooo, it's just being passive agressive an saying:
"That image is too large. The maximum dimensions are 48 by 48 pixels."
stick some echo commands in to see if the script is getting called and where its failing.
If you look at the code - its almost identical to the one in functions_geekarticles_images.php
In fact, all I did was port it over so I could have an easy way for users to upload avatars and profile pictures without the constant posting about 'how do I resize my picture?'.
Just every few lines in it - put
echo("Im here now- 1");
echo("Now Im here 2");
etc...
And see where you get. Other than that - I dont know what to tell you
I am having the same problems, does not resize large images and gives me the standard error, image too big. Uploading to GAS3.51 works perfectly however, and am using GD2+ image editor settings....
If you have a chance to look into the other gallery popup issue I PM'd you admin logins for, perhaps you could take a peek at this as well then... This is a much-needed upgrade for the obvious reasons you stated when you released it. Keep up the great work, Geek.
PS: Tried commenting out the GD test parts already, didn't help.
I am having the same problems, does not resize large images and gives me the standard error, image too big. Uploading to GAS3.51 works perfectly however, and am using GD2+ image editor settings....
If you have a chance to look into the other gallery popup issue I PM'd you admin logins for, perhaps you could take a peek at this as well then... This is a much-needed upgrade for the obvious reasons you stated when you released it. Keep up the great work, Geek.
PS: Tried commenting out the GD test parts already, didn't help.
excellent. Ill look into this and find out whats up!
Cool. Found out what I think the problem is with some users not getting this to work.
I would lay money on the fact that those having problems store their avatars in the DB instead of the filesystem.
So, if thats the case... try this:
edit includes/functions_upload.php and after EACH (there are 2):
DB storage for images is not really a good thing.
Its the default as it gets around problems with php safemode - however it is slower and bogs your DB down more so than a file system. Saying that - its most likely only noticable in larger boards.
Ill look into the greyscale system woe. FIrst I have heard of it