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? Quote 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 .. Quote 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? Quote 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? Quote 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. Quote 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? Quote 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 Quote 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? Quote 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() Quote 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. Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.