Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Coder's Corner Lounge (http://www.programmingforums.org/forum11.html)
-   -   Registering Your Own Formats (http://www.programmingforums.org/showthread.php?t=12117)

Sane Dec 5th, 2006 7:27 PM

Registering Your Own Formats
 
Is there any way I can link my own format to something? Say, for instance, to get an image, specified with <img> tags in HTML, to display according to an executable, if it contains a certain file extention?

My first guess is that it's not possible, since the decoding is built into Internet Explorer. Or can I get all programs to recognize a specified format? I'm hoping?

But I thought that there me be some way around that. It would see that the source of the tag is requesting this custom type, download the information, and convert it to a PNG in the temp folder, by running it through an executable? Is there no way around this?

I'm shooting in the dark here.

Harakim Dec 5th, 2006 7:42 PM

Could you use plug-ins instead?

a thing Dec 5th, 2006 11:43 PM

Make a browser plugin.

Sane Dec 6th, 2006 7:55 AM

Oh, a browser plugin? That should work perfectly. I'll look into it. Thanks.

titaniumdecoy Dec 6th, 2006 6:35 PM

Out of curiosity, why would you want to do this?

Sane Dec 6th, 2006 6:55 PM

Sending images that will have definite restrictions set on them (maximum two colors, large blank white spaces). A custom encoding will allow for a smaller file size than any other existing format. This is not meant to replace any existing image type, or be used by anyone other than me.

titaniumdecoy Dec 10th, 2006 2:09 AM

It may be a little late, but I just stumbled upon a Firefox plugin called greasemonkey. According to its companion website, Dive Into Greasemonkey:

Quote:

Originally Posted by http://diveintogreasemonkey.org/install/what-is-greasemonkey.html
Greasemonkey is a Firefox extension that allows you to write scripts that alter the web pages you visit.

I haven't tried it (there is a mac version called creammonkey, for those interested) but it sounds like it's what you're looking for.

Polyphemus_ Dec 10th, 2006 4:58 AM

Quote:

Originally Posted by Sane (Post 120735)
Sending images that will have definite restrictions set on them (maximum two colors, large blank white spaces).

This is what most file formats already do (PNG can be a monochrome picture, and its compression algorithm will take care of the white spaces. BMP supports also monochrome bitmaps, and using RLE you can compress large blank white spaces).

Komodo Dec 17th, 2006 6:07 AM

On a slightly familiar not, I had plans of making KHML (Komodo's Hypertext Markup Language)...

I'd only do it if I could think of enough shi to make it unique enough for people to want to look at it...


All times are GMT -5. The time now is 1:30 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC