| View previous topic :: View next topic |
| Author |
Message |
zugurt Guest
|
Posted: Mon May 14, 2007 9:46 am Post subject: Re: Include a bitmap in your uncompiled script!!! |
|
|
About the first post in the topic;
Cant we show the image without saving it on the disk. |
|
| Back to top |
|
 |
Helpy Guest
|
|
| Back to top |
|
 |
Guest
|
Posted: Mon May 14, 2007 7:36 pm Post subject: |
|
|
| is it possible do this with a picture in .jpg? And its bigger? 1152x864 |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Tue May 15, 2007 9:31 am Post subject: |
|
|
These techniques are more designed for small pictures: encoding binary data to Ascii form (to be included in script) makes the data bigger (from 33 to 100% more) and there is a limitation on continuation section size.
So, it is possible, but probably inappropriate.
If you compile your script, perhaps you should check FileInstall. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4116 Location: Belgrade
|
Posted: Tue May 15, 2007 10:17 am Post subject: |
|
|
Maybe THIS technique.
The concept can be extended easily to support arbitrary file/file size.
Titan's UUencode/decode can be good start. The same thing is used in e-mail clients around. Some compression can be achieved using PhiLho's & Laszlos compreesion algorythms. The best way though is to use cabinet creator to pack multiple files into single one, convert that single one into hex data and return it back later. _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Tue May 15, 2007 4:16 pm Post subject: |
|
|
| can you give me an example? or the link to titan? |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4116 Location: Belgrade
|
Posted: Tue May 15, 2007 4:21 pm Post subject: |
|
|
Example is not trivial.
Keywords: BInaryRead/Write, UUEncode, loop, GUID, ScriptMerge _________________
 |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Tue May 15, 2007 5:02 pm Post subject: |
|
|
| majkinetor wrote: | | Titan's UUencode/decode can be good start. The same thing is used in e-mail clients around. | No, if I recall correctly, UUEncode is an old, quite obsolete Unix encoding. E-mail uses Base64. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4116 Location: Belgrade
|
Posted: Tue May 15, 2007 5:39 pm Post subject: |
|
|
Keywords .= " Base64" _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Tue May 15, 2007 7:20 pm Post subject: |
|
|
| i am a very noob at this... please please pleace... make a example.. To get big pictures at the gui! I dont understand.. pleace help me! |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4116 Location: Belgrade
|
Posted: Tue May 15, 2007 8:44 pm Post subject: |
|
|
Why don't U try original approach. I bet it will work.
We ment LARGE files, and jpg at screen size isnt' LARGE. _________________
 |
|
| Back to top |
|
 |
Grumpy Guest
|
Posted: Wed May 16, 2007 9:16 am Post subject: |
|
|
Dear Anonymous Guest (are you zugurt the original poster? This is confusing), perhaps you should explain what are you trying to do.
Why loading an image from a file isn't wanted? |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Wed Sep 26, 2007 12:13 pm Post subject: |
|
|
There's a request at AfH, which I think could be solved using the techniques descriped at this thread.
Situation:
a) a consecutive number of images AKA a movie.
b) valid for most images is that only parts of its content will vary. The majority of pixels will remain unchanged.
What about to convert the 'master' image to keep it, and all following ones will just save the variable subset of that 'master'?? |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4116 Location: Belgrade
|
Posted: Wed Sep 26, 2007 12:16 pm Post subject: |
|
|
| Quote: | | What about to convert the 'master' image to keep it, and all following ones will just save the variable subset of that 'master'?? |
To achive this, put all images in the GIF, optmise it, and do the code to display image from the gif by its index.  _________________
 |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Wed Sep 26, 2007 12:31 pm Post subject: |
|
|
I1 = 100k keep separate file
I2 = 100k "
I3 = 100k "
I4 = 100k "
I5 = 100k "
----- 500k
I1 = 100k keep master file
I2 = 10k keep variable subset of master file
I3 = 15k "
I4 = 10k "
I5 = 60k "
----- 195k |
|
| Back to top |
|
 |
|