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,409
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,445
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,482
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,482
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,999
Trophies
2
XP
6,166
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
  • K3Nv2 @ K3Nv2:
    So they buy a pi5 kit for about $150 and say a 28" 4k display probably looking around $400 total
  • K3Nv2 @ K3Nv2:
    They'll be getting in the territory of portable Pcs anyway
    +1
  • BigOnYa @ BigOnYa:
    Again you get what you pay for, its like buying a S series for $300 but its only 1440p native, if you want true 4k, gotta get the X model for $500. But yea you right, when moms buying it anyways, you gotta stay cheap.
  • K3Nv2 @ K3Nv2:
    They could use HD out on their TV no real need for a monitor these days tbh the purists will disagree
  • K3Nv2 @ K3Nv2:
    I'm kind of phasing out on the need for wanting all these consoles cool to have but they just become dust build ups
  • BigOnYa @ BigOnYa:
    I here ya there, I have too many myself, and have hard time letting them go, since most of mine I've modded at some point. Anymore I just play Switch on the go, seriesx at home.
  • Xdqwerty @ Xdqwerty:
    ack my throat
  • K3Nv2 @ K3Nv2:
    I need to invest in some storage totes tbh
  • BigOnYa @ BigOnYa:
    Tots?
  • K3Nv2 @ K3Nv2:
    Tootles
  • BigOnYa @ BigOnYa:
    Tootles? Wtf
  • K3Nv2 @ K3Nv2:
    Oh tootles
  • BigOnYa @ BigOnYa:
    Oh totes , lol, like Tupperware storage, I gotcha
  • BigOnYa @ BigOnYa:
    I'm designing my own entertainment cabinet for my man cave, to store all my systems, then I'm also designing a power supply/HDMI switcher so I can switch to whichever system I want, and power it also. Already picked up the cabinet board, but tinkering with my drawings before start
  • BigOnYa @ BigOnYa:
    But yea, I have frogger arcade cabinet that I gutted and put a Pi4 then Pi5 into, but it never gets played much anymore, should sell it. Even when the kids come over, they don't want to play on it, just the xbox. TMNT and Simpson's arcade is still so fun on it, esp w 2 players.
  • K3Nv2 @ K3Nv2:
    Gonna check out the new Garfield looks like garbage
  • BigOnYa @ BigOnYa:
    Can't wait to see the new "stick" that can actually play Ps3 or 360 games. I know they are getting close.
  • BigOnYa @ BigOnYa:
    @Xdqwerty didn't you see the new garfield?
  • K3Nv2 @ K3Nv2:
    Ah it's all animated I was hoping for some live action
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, yes i did
  • T @ TheSusKing:
    does anyone know if you can run android apps on a usb
  • K3Nv2 @ K3Nv2:
    You mean use a external usb thumb drive as storage? Yeah it depends on the phone
  • T @ TheSusKing:
    no, i mean if i could store the app on the usb so it doesnt take up my storage
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why do you ask?
    Xdqwerty @ Xdqwerty: @BigOnYa, why do you ask?