Thanks for the suggestion, always glad to hear thoughts about the site. The system I wrote that validates the uploaded flash files already has an option to auto-compress uncompressed files, but in the end I decided to turn that off. I found two reasons for doing so, the first is simply because I don't want to "help the internet get two versions of a flash file". For example if person A created an uncompressed flash file and uploaded it to 4chan's /f/ section, then person B could download it and upload it to swfchan.org. If the system then compress the flash file and person C downloads it there would now be both a compressed and uncompressed version in existance. Not a super big deal sure, but these two versions could be used to bypass the "duplicate file" detection system that 4chan and many other sites has since it only works on checksums (not to forget local indexing services on ones computer). Granted that anyone can make these alternative versions of the same flash but most people just don't know about it. I was a bit foolish when I wrote the system on swfchan.com a few years ago, it also seperates uncompressed and compressed flash files even if it is the same file. So if swfchan.org would always compress the uploaded files there would be a lot more dupes showing up. Of course swfchan.org is immune to this uncompressed/compressed issue so it means that I could improve the algorithm on swfchan.com, but it will take a lot of time (merging the two flash file's "wiki" pages will probably be the biggest hassle) and I just don't have the motivation at the moment. But I will fix the system on swfchan.com some day and when that happens there will be no more duplicate files (and the issue that it sometimes, rarely, mistakes two different files to be the same file will also be gone). TL;DR changing compression on uploaded files would create unnecessary duplicate files. :) The second reason is a bit simpler, some flash files do not benefit from being compressed. That's probably the reason why not compression is always forced when making new flash files these days using the official tools. Simple embedded movies is only reduced by a few measly bytes (under the worst conditions the file size may actually grow a couple of bytes by enabling compression) and it's a lot harder (technically) to do stuff like seeking a frame in a compressed flash file and it gets more bothersome to access the flash's meta data for search engines. The CPU have to work a bit harder and so forth. In other words sometimes the compression is not worth it. Still I would have liked it if compression was always required in flash. Just to keep things consistent, and most of the time compression is only a good thing. Kind of a pity that Macromedia only introduced it in version 6. In a perfect Internet Flash compression would always be on... AND its header would be a lot easier to read. They actually do not store the flash dimensions in easy-to-read pixels but instead they use a measurement called "twips", where 20 twips equal 1 pixel (without any scaling). But we're not done yet, these "twips" are hidden in RECT structures that are encoded in, hold on to your hats, bit fields! I kind of understand that they wanted to save some disk space of every single rectangle in flash (to reduce the total file size by maybe a KiB or two?) but they could at least have spent an extra four bytes on the header to make the flash dimensions easy to read. Now you have to be almost a wizard class hacker just to determine how big a flash file is. Boy, makes my brain bubble every time I think about it, haha. And why the meta-data is inside the compressed part of the flash is also a little mind boggling. |