I just started to undertake a little project in creating a decent CAPTCHA, however admittedly I'm over complexing the plan a little mainly to try and stay one step ahead of the people responsible for the Weak AI bots.
Currently I'm looking at using images and GD library to house all the data a human requires to gain access where a bot can not, however I've come across a problem.
The problem is that the images I use although the same size in dimension are not however the same size in Bytes. So even if the same file is used to parse the image, the Byte size can be slightly different. So here's a question to image manipulators out there:
How do I go about 'packing' the images so they are all the same filesize? (I'm not worried about byte by byte comparisons, just overall filesize.) I ask this (while also researching it) because it's important in regards to giving a value that could otherwise undermine any further work done towards a CAPTCHA system.
Currently I'm looking at using images and GD library to house all the data a human requires to gain access where a bot can not, however I've come across a problem.
The problem is that the images I use although the same size in dimension are not however the same size in Bytes. So even if the same file is used to parse the image, the Byte size can be slightly different. So here's a question to image manipulators out there:
How do I go about 'packing' the images so they are all the same filesize? (I'm not worried about byte by byte comparisons, just overall filesize.) I ask this (while also researching it) because it's important in regards to giving a value that could otherwise undermine any further work done towards a CAPTCHA system.