Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Masking the GIF files?
#1
How can I mask the GIF files so that they are unreadible by common image viewers but that I can still load them with my QBasic gif loader?

Is this possible? Gif loader is not by me so altering it would be a problem.
Reply
#2
Change the header. ;*)

Big Grin
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#3
Right...

Newsflash: Lachie is a dummy! Dummy needs dummy instructions.
Reply
#4
A technique I used for old WOS betas...

Each tileset was saved as an SBS file (Super BSAVE), and I then wrote a tool to wipe out the palette and save the tileset to GIF. Only WOS could use the GIF...Windows-based viewers and editors, even if you applied a palette with indexing, could never view them because they equated all pixels to 0 due to the plain black palette.

The reason I did that though was so that no one could see the files as they were being loaded. Nowadays, I got my act together and know how to black-out the palette during the GIF load so no one sees the load anyways. :lol:
I'd knock on wood, but my desk is particle board.
Reply
#5
And that's not really helping me.

Unless you are saying I load up a black palette and copy and paste all 17 images on new pages with black palettes and save them?

I'm way to lazy to be doing that.
Reply
#6
You can do what I suggested you a while ago.

GIF files have an ID field in their header. If you examine your GIF loader you'll find it out somewhere. I think it should read GIF87 or GIF89. The trick is modify your loader to check for "KENTA" (for instance) instead of the aforementioned strings. Then you write a program that opens the files and change their headers.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
You mean header as a begining of a file? How do I open GIF files when changeing their header. With a plain text reader? Or with somekind of more complex file reader that can read files in HEX.
Reply
#8
Download the best Hex Editor: http://www.bpsoft.com/downloads/
Hex Workshop (not for DOS I think)
Reply
#9
yeah, but you can also try qb:

Code:
header$="KENTA"
PUT #1, offset%, header$

You only have to find the proper "offset%", the position where the ID is (I think that most likely offset%=1).
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#10
Yep, very simple as well.

Take a look: http://www.onicos.com/staff/iz/formats/gif.html
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)