A reminder about signatures

p1ngpong

Gamer Professional Deluxe
OP
Supervisor
Joined
Apr 18, 2008
Messages
6,876
Trophies
3
Location
DS Scene
Website
imgur.com
XP
11,408
Country
Croatia
Lately we have been getting tons of people who have absolutely massive images as their sigs. It seems many people are unaware that we do have rules regarding how large an image you are allowed to have as a signature.

Signatures should not be larger than 500 x 150 pixels in dimension.

500x150.gif


And they should not be larger than 80kb in size.

If your sig breaks either of these size restrictions please do the staff a favor and change it so that we don't have to remove it for you.

As always if you are unsure about anything please refer to our forum rules which can be found here http://gbatemp.net/help/terms or PM a member of staff.
 

Arras

Well-Known Member
Member
Joined
Sep 14, 2010
Messages
6,318
Trophies
2
XP
5,432
Country
Netherlands
The funny thing is everyone on this page except Rydian (and me, I have no sig) is over the filesize limit. :P
 

pyromaniac123

ส็็็็็็็็็็็็็็็็็็็(ಠ益ಠส็็็็็็็็็็็็็็็็็็็
Member
Joined
Sep 24, 2011
Messages
2,006
Trophies
2
XP
1,770
Country
Avatar and sig combined only 80kb? Why the such paltry amount?
 
  • Like
Reactions: Nxenz

pwsincd

Garage Flower
Developer
Joined
Dec 4, 2011
Messages
3,686
Trophies
2
Location
Manchester UK
XP
4,477
That depends on what you mean, because there's three ways to go about it.

1 - Use CSS to limit a user's signature to the specific dimensions.
This makes sure that a user's sig will never stretch the page, but does nothing against large-filesize sigs and doesn't actually stop users from putting them in. This is the least bandwidth-intensive, so it's the most common.

2 - Use cURL or something else when the user changes their sig to grab the headers of any image and make sure it's below a certain filesize and dimensions. This is bandwidth and CPU-intensive per-change, and users can bypass it by simply uploading a different file to the same URL.

3 - Use cURL or something else to check sig images on every load. This stops users from bypassing the limits by changing the file at a specific URL, but is way too bandwidth and CPU intensive for anybody to even consider using.


Well the technical specifics aside, the admin can choose the file size limit in kB and/or choose the image dimensions. Now how this is done in php im not wholy sure but i am fully aware it can be done even with free nuke sites and their deriviatives it is possible out of the box , now reading the xonoforo forums it seems currently it isnt and there is a little development from one of the add on devs to allow some siggy control and the suggestions i have made are in review to be added to his WIP . As for your suggestions 2 and 3 simply not allowing URL images stops this , and instead allowing users up upload the image in question and therefore controlling the image size in kB . Of course it is nice to have the feature of URL images and im sure that can be controlled also , i just dont know enough technically to script the feature , but im well aware from adding pre written scripts to other forums that it is easily possible.
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
Well the technical specifics aside, the admin can choose the file size limit in kB and/or choose the image dimensions. Now how this is done in php im not wholy sure but i am fully aware it can be done even with free nuke sites and their deriviatives it is possible out of the box , now reading the xonoforo forums it seems currently it isnt and there is a little development from one of the add on devs to allow some siggy control and the suggestions i have made are in review to be added to his WIP . As for your suggestions 2 and 3 simply not allowing URL images stops this , and instead allowing users up upload the image in question and therefore controlling the image size in kB . Of course it is nice to have the feature of URL images and im sure that can be controlled also , i just dont know enough technically to script the feature , but im well aware from adding pre written scripts to other forums that it is easily possible.
Having the images uploaded to the site would stop the users from bypassing restrictions, but would also stop users from using dynamic sigs like those wii game cards, steam cards, etc...

Also it'd be even more bandwidth-intensive than checking the stats of the images each time, since the forum's feeding/hosting them...
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
The script could always force a resize if it exceeds parameters , ugly i know but possibly forcing a user to alter it .
A visual resize would still have the whole filesize issue, and if it's resizing the actual image then that'd be even MORE CPU intensive as the server would need to resize them.

The cheapest thing to do (by far) is simply have the server NOT do anything to the images themselves.
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
it has to be quicker to host them than to out source them .
No, why would it be.

http://php.net/manual/en/function.getimagesize.php

A relatively simple procedure to check images comply.
That relies on being able to access the image, meaning it either must already exist on the server (and thus the site is hosting it, paying for the bandwidth and space), or the script needs to download the image to the server in order to check it. A download for a server is no problem, but if it needs to download and check every sig image every time, it'll easily become an unreasonable burden.

I wrote a signature checking script for another forum... I'll even give you the source if you want, since I had to use cURL to follow redirects and other stuff people would try to pull to fool checks.
 

pwsincd

Garage Flower
Developer
Joined
Dec 4, 2011
Messages
3,686
Trophies
2
Location
Manchester UK
XP
4,477
Yeah i get your whole streamlining issue , i was trying to suggest the obvious control measure rather than just banging a drum and hoping ppl will listen.

Maybe then seperate the download and checking procedure. Use something like fopen to read the image info a bit at a time , dumping info to a temporary file , monitoring how much you have read , and once you cross a predetermined filesize limit and havent yet stopped reading , simply dump that image as non compliant , having also read the file dimesions for those parameters . Either way its not beyond doing to force simple rules upon users. God forbid you dont want p1ngp0ng checking every siggy for compliance :)
 

Snailface

My frothing demand for 3ds homebrew is increasing
Member
Joined
Sep 20, 2010
Messages
4,324
Trophies
2
Age
40
Location
Engine Room with Cyan, watching him learn.
XP
2,256

Attachments

  • nxenzbanner2copy.jpg
    nxenzbanner2copy.jpg
    38.1 KB · Views: 1,633
  • oW67i.jpg
    oW67i.jpg
    26.1 KB · Views: 176
  • Satangel2-1.jpg
    Satangel2-1.jpg
    12.9 KB · Views: 171
  • W3RGG.jpg
    W3RGG.jpg
    17.8 KB · Views: 178
  • alibannercopy.jpg
    alibannercopy.jpg
    32.7 KB · Views: 1,725

Minox

Thanks for the fish
Former Staff
Joined
Aug 27, 2007
Messages
6,995
Trophies
2
XP
6,156
Country
Japan
I attached a fixed jpeg for all your sigs. It was as simple as re-saving in msPaint. You guys avatar's are fine (6K) so you're all now under 80K.
I hope that you're aware that you've introduced quite a lot of JPEG artifacts as well as somewhat washed out colors into these "fixed" signatures.

JPEG is a lossy image format. Every time you re-save something it loses quality and it is therefore recommended to work with files that have been re-saved as little as possible.
 

Rydian

Resident Furvert™
Member
Joined
Feb 4, 2010
Messages
27,880
Trophies
0
Age
36
Location
Cave Entrance, Watching Cyan Write Letters
Website
rydian.net
XP
9,111
Country
United States
Well to be more nitpicky JPEG artifacting at 80%+ is not visible without close inspection to most people, modern paint doesn't save at 50% quality anymore (thank god), and the quality only lessens when it's recompressed again, which uploading and downloading repeatedly shouldn't do (only if it passes through an image editor of some sort).
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    To sleep perchance to dream!
  • BigOnYa @ BigOnYa:
    My state has put a heavy tax on vape juice, taxing any juice with nicotine by the weight/oz. So to get around the bs, my local vape store only sells 0 nicotine vape juices, then they also sell straight nicotine in tiny bottles, and you mix it yourself to your 0% juice, lol
    +1
  • BigOnYa @ BigOnYa:
    Damn, is that Wing from South Park?
  • Psionic Roshambo @ Psionic Roshambo:
    BigOnYa hmmm I wonder how long until someone just vapes the straight nicotine lol
  • BigOnYa @ BigOnYa:
    I was gonna say people are not that dumb, but yea you right, some are.
    +1
  • K3Nv2 @ K3Nv2:
    People have put 50mg salt nic in straight subohm coils which is like more powerful hits
    +1
  • BigOnYa @ BigOnYa:
    Hey psi, do they have dress codes down there in FLa, here there are signs on stores that say "No shirt, no service" but curious bout down yonder
  • BigOnYa @ BigOnYa:
    Yea I tried the salts and too strong for me, I prefer the norm juice
  • K3Nv2 @ K3Nv2:
    In Florida they don't serve you if you have clothes on
    +1
  • K3Nv2 @ K3Nv2:
    Fucking raining again
  • BigOnYa @ BigOnYa:
    How can you tell, do you see rain drops on top of other rain drops?
    +1
  • K3Nv2 @ K3Nv2:
    I can tell by whenever your wife done letting out loud ass moans then I get her a ticket back home
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, yeah most places demand clothes and shoes, unless it's some really back water place that I am unaware of lol
    +1
  • BigOnYa @ BigOnYa:
    Cool, I got lunch money for tomorrow then.
  • BakerMan @ BakerMan:
    @K3Nv2 call uremum Sloppenheimer the way she givin me this bomb head
    +1
  • K3Nv2 @ K3Nv2:
    I call uremum alzheimer she forgets to leave
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Time to start a vape straight nicotine challenge, Darwin be praised!
    +1
  • K3Nv2 @ K3Nv2:
    Imagine if Hitler had vapes, we promise it's not cyanide it'll help you quit nicotine
    +1
  • BigOnYa @ BigOnYa:
    Please, walk into my patented vape chamber, aka the non smoking area
  • K3Nv2 @ K3Nv2:
    I do wonder how dominate Germany would've been if they just enlisted Jewish people
  • BigOnYa @ BigOnYa:
    They actually enlisted Muslims, seriously, because the Muslims hates Jews, even tho it was not the supreme race. He claimed common hate, is friendship.
  • K3Nv2 @ K3Nv2:
    He could've just made them walking shields kind of a dumb ass move
  • K3Nv2 @ K3Nv2:
    https://a.co/d/3km8bqC lol cd level quality I fucking hope so
  • BigOnYa @ BigOnYa:
    So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says "Not tonight, I have a gyno apt in the morning." So man rolls over, but after few minutes starts rubbing her again. She says didn't you here me, no messing around, I have a gyno apt tomorrow. " Man says, "Well you don't have a dentist apt tomorrow also do you?"
    BigOnYa @ BigOnYa: So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says...