3raser Posted March 27, 2011 Share Posted March 27, 2011 This website, http://www.minecraftskins.com/, allows people to upload minecraft skins. How do they know that the skin is an actual skin and not some random lolcat picture? Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/ Share on other sites More sharing options...
ignace Posted March 28, 2011 Share Posted March 28, 2011 They don't. That said, it's possible they manually check it, or if all images have the same "look" they could scan the image to make sure it's an actual skin image, or .. Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193180 Share on other sites More sharing options...
3raser Posted March 28, 2011 Author Share Posted March 28, 2011 They don't. That said, it's possible they manually check it, or if all images have the same "look" they could scan the image to make sure it's an actual skin image, or .. I know they don't do it manually. And how could you scan to make sure it's an actual skin? Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193465 Share on other sites More sharing options...
rondog Posted March 28, 2011 Share Posted March 28, 2011 How do you know they dont do it manually? Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193474 Share on other sites More sharing options...
3raser Posted March 29, 2011 Author Share Posted March 29, 2011 How do you know they dont do it manually? Because it submits instantly. Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193493 Share on other sites More sharing options...
Russia Posted March 29, 2011 Share Posted March 29, 2011 Try and submit a lolcat picture. does it decline it? Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193494 Share on other sites More sharing options...
blacknight Posted March 29, 2011 Share Posted March 29, 2011 probably based on image size and w/h settings Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193542 Share on other sites More sharing options...
3raser Posted March 29, 2011 Author Share Posted March 29, 2011 I tried submitting random pictures, yes, but the picture didn't show up. And they may have image width and height restrictions. Do you mind telling me or giving me the function name that does that? Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1193892 Share on other sites More sharing options...
ignace Posted March 30, 2011 Share Posted March 30, 2011 getimagesize() Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1194131 Share on other sites More sharing options...
gizmola Posted March 30, 2011 Share Posted March 30, 2011 This made me curious, so I checked this page: http://www.minecraftwiki.net/wiki/Skin So at very least it seems that the skin file has to be 64x32, so that could be one issue, but from there, since they are rendering the skin to a flash movie, it's probably safe to assume that they are looking at the internals of the file. If you're just experimenting with trying to fool it, try a 64x32 png file and see if it will accept it and process it into something. Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1194201 Share on other sites More sharing options...
3raser Posted March 31, 2011 Author Share Posted March 31, 2011 This made me curious, so I checked this page: http://www.minecraftwiki.net/wiki/Skin So at very least it seems that the skin file has to be 64x32, so that could be one issue, but from there, since they are rendering the skin to a flash movie, it's probably safe to assume that they are looking at the internals of the file. If you're just experimenting with trying to fool it, try a 64x32 png file and see if it will accept it and process it into something. Yep, the image uploaded. So I guess they do check for size. I will now implement this on my site, thanks! Link to comment https://forums.phpfreaks.com/topic/231899-how-do-they-know-the-image-is-the-right-one/#findComment-1194745 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.