5 ms·
It would be awesome if http://robohash.org/google.jpg http://robohash.org/google.jpg generated a jpg, and http://robohash.org/google.png http://robohash.org/goo
by erikwiffin 15y ago
It would be awesome if http://robohash.org/google.jpg http://robohash.org/google.jpg generated a jpg, and http://robohash.org/google.png http://robohash.org/google.png generated a png.
It would be even more awesome if http://robohash.org/favicon.ico http://robohash.org/favicon.ico generated a .ico file.
- e1ven 15y agoGoogle.jpg does generate a jpg, but it's not the same as google.png; The reason for that is that I'm hashing whatever you send in, including the extension.. Otherwise, if you passed file.txt and file.mp3 they'd come to the same hash.
- erikwiffin 15y agoI realize what you're doing. This was more of a "really cool feature request" than a bug report. favicon.ico does respond with a 404 though.
- agscala 15y agoYou could make an exception for .jpg and .png and only hash the part to the left of the dot otherwise hash the whole thing!
- meric 15y agohttp://robohash.org/google.gif http://robohash.org/google.gif generated a .gif file!