> Pretty radical, eh? Send money to: lcamtuf@coredump.cx How to send money to your email address? Not that I would send you some, but I wondered how you want to have that money received?
This JPEG is also a webpage
41–50 of 236 posts
Re: This JPEG is also a webpage
#42Re: This JPEG is also a webpage
#43You can use URI to embed images too, not sure how this is done though, why not just use URI?
This is different: it's a single file which can be parsed as either a HTML page or a JPEG. Hence, when a program expects a HTML page (like a browser loading a Web page), it will be parsed and displayed as a HTML page. When a program expects a JPEG file (like a browser loading the "src" of an "img" element) it will be parsed and displayed as a JPEG.
The trick is to use each format's comment syntax to hide the other format. Not sure if the HTTP headers need to be set differently for each request or not.
Re: This JPEG is also a webpage
#44I abused this concept to compress demo code in PNG files, with great success. http://demoseen.com/blog/2011-08-31_Superpacking_JS_Demos.ht... This is, at present, the most efficient way to pack demos on the web; a few characters of uncompressed bootstrap code, then the rest is deflated.
Seems like some bits are missing on that page, e.g. I see nothing between "What is the bootstrap? Well, it's what turns our PNG into code and runs it. Here's the one I use:" and "The 4968 here is really the size of the decompressed data in bytes times 4"
Re: This JPEG is also a webpage
#45A testament to one of the worst decisions in computing history - not to fail displaying a web page with an error message in case it is not a valid HTML document.
Re: This JPEG is also a webpage
#46A testament to one of the worst decisions in computing history - not to fail displaying a web page with an error message in case it is not a valid HTML document.
Or one of the best. Switch wen browsers to strict processong and you will hardly find working web page.
Re: This JPEG is also a webpage
#47Earlier quoted context omitted.
He placed HTML inside a COM (comment) segment of the JPEG, which is perfectly legal. The ending of his HTML is " http://dev.exiv2.org/projects/exiv2/wiki/The_Metadata_in_JPE...
Actually the browser isn't ignoring the first bytes of the JPEG before the tag - it's there on the page, just hidden with CSS.
Re: This JPEG is also a webpage
#48That's a chipmunk, not a squirrel.
https://www.google.co.uk/search?q=palm+squirrel&source=lnms&...
Re: This JPEG is also a webpage
#49That's a chipmunk, not a squirrel.
Re: This JPEG is also a webpage
#50I abused this concept to compress demo code in PNG files, with great success. http://demoseen.com/blog/2011-08-31_Superpacking_JS_Demos.ht... This is, at present, the most efficient way to pack demos on the web; a few characters of uncompressed bootstrap code, then the rest is deflated.