forum

[Archived] Can't change avatar if there's a "gif" in the filename

posted
Total Posts
10
Topic Starter
Mismagius
Not much important and really easy to avoid, but just thought it'd be interesting. If your filename has a "gif" somewhere in the filename (ex: my_gift.jpg), even if it's a jpg/png file, it won't allow you to upload the image and will give you an error saying ".gif files are not allowed to be uploaded as avatars!" or so
Shohei Ohtani
change the name of the file ;P

But I guess it counts as an issue~
Bara-
What?
Actually, that's quite funny
I can recall having to remove the .gif part from a link to be able to submit my signature
Hunter Howl
well . . . . .

i guess this can be confirmed lol
G9W0V2H0
@peppy fix issue .php upload form "https://osu.ppy.sh/forum/ucp.php?i=profile&mode=avatar" accept $_FILES["uploadfile"] only this MIME types
image/png
image/jpeg
image/pjpeg

example
<?php
$finfo = finfo_open(FILEINFO_MIME_TYPE);

$mime = finfo_file($finfo, $_FILES['uploadfile']['tmp_name']);

if($mime != 'image/png' && $mime != 'image/jpeg' && $mime != 'image/pjpeg')
{
exit("you upload not .png .jpg not allow system.");
}
?>

check name file.. not secure

look.. 4 year player break rule .gif avatar -_- https://osu.ppy.sh/u/P%20A%20N

sorry poor english ><
Shohei Ohtani
I'm not sure what that all say above me but I'm not going to immediately dismiss it as wrong because I don't know coding.

Anyways, that is an animated .png file that P A N has.
G9W0V2H0

Reditum wrote:

I'm not sure what that all say above me but I'm not going to immediately dismiss it as wrong because I don't know coding.

Anyways, that is an animated .png file that P A N has.
.png not do have animation frames. only format webm/mp4/flv/avi/wmv/mpeg many video with frame, include .gif is equation P A N use .gif name not .gif in file name
Score_Under

Reditum wrote:

Anyways, that is an animated .png file that P A N has.
$ file 1285234_1438229913.png 
1285234_1438229913.png: GIF image data, version 89a, 128 x 128
$ identify 1285234_1438229913.png
1285234_1438229913.png[0] GIF 128x128 128x128+0+0 8-bit sRGB 256c 71.3KB 0.000u 0:00.000
1285234_1438229913.png[1] GIF 128x128 128x128+0+0 8-bit sRGB 256c 71.3KB 0.000u 0:00.000
1285234_1438229913.png[2] GIF 128x128 128x128+0+0 8-bit sRGB 256c 71.3KB 0.000u 0:00.000
1285234_1438229913.png[3] GIF 128x128 128x128+0+0 8-bit sRGB 256c 71.3KB 0.000u 0:00.000
1285234_1438229913.png[4] GIF 128x128 128x128+0+0 8-bit sRGB 256c 71.3KB 0.000u 0:00.000

G9W0V2H0 wrote:

.png not do have animation frames. only format webm/mp4/flv/avi/wmv/mpeg many video with frame, include .gif is equation P A N use .gif name not .gif in file name
https://en.wikipedia.org/wiki/APNG

PNGs can have animation frames if the implementation supports it. Firefox does, Chrome doesn't.
Bara-
Signatures/avatars are technically allowed to be gifs
Just delete .gif from the file name and it'll work (in case of puu.sh/ something.gif)
VeilStar
Deal with it by removing the "gif" part of the file name untill the new web is launched please.
Not confirming non-severe issues with the current website anymore.
Please sign in to reply.

New reply