Looking for testers for handler BMP3 Export
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Looking for testers for handler BMP3 Export
Now I understand...
Bye.
Bye.
Last edited by capellan on Thu Jun 24, 2021 7:16 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 9853
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Looking for testers for handler BMP3 Export
Now I see what you were working on. Nice. I'll see if I can get some time to give this a workout next week. Thanks for posting this.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Looking for testers for handler BMP3 Export
Please allow naive questions:
What is this image format good for?
What are the dis-/advantages regarding other image formats?
I searched with Google but almost only got infos about a russian tank with that name!
What is this image format good for?
What are the dis-/advantages regarding other image formats?
I searched with Google but almost only got infos about a russian tank with that name!
Re: Looking for testers for handler BMP3 Export
Hi Klaus,
Using this crafted bmp header, you could export the imagedata of any Livecode image without loss (JPG) or compression (PNG). This format is useful for working with exact 8 bits RGB colors.
Main disadvantage is the file size.
Al
Using this crafted bmp header, you could export the imagedata of any Livecode image without loss (JPG) or compression (PNG). This format is useful for working with exact 8 bits RGB colors.
Main disadvantage is the file size.
Al
Last edited by capellan on Thu May 20, 2021 7:01 pm, edited 4 times in total.
Re: Looking for testers for handler BMP3 Export
AHA, thanks for the info!
Re: Looking for testers for handler BMP3 Export
Hi Richard,
You are welcome!
I have added more information about the BMP3 Header
in this attached text document.
Al
You are welcome!
I have added more information about the BMP3 Header
in this attached text document.
Code: Select all
- BMP3 Header explained -
This header allows to export Livecode Raw Imagedata
as a BMP3 file: 32 bits BMP with an alpha channel.
Only 12 bytes are changed:
- 4 bytes - Size of the BMP file in bytes.
- 4 bytes - Width of the BMP file in pixels.
- 4 bytes - (Negative) height of the BMP file in pixels.
It is necessary to use a negative height
to invert vertically the BMP file. That
is because the BMP file format is read
from bottom to top.
Post corrections and comments in this thread in the Livecode Forum:
https://forums.livecode.com/viewtopic.php?f=8&t=35880
424D - 2 bytes - The header field used to identify the BMP (BM in ASCII).
8A30 0300 - 4 bytes - Size of the BMP file in bytes.
0000 - 2 bytes - Reserved; if BMP was created manually can be 0.
0000 - 2 bytes - Reserved; if BMP was created manually can be 0.
8A00 0000 - 4 bytes - Size of this header, in bytes.
7C00 0000 - 4 bytes - Byte offset where bitmap imagedata starts.
CC00 0000 - 4 bytes - Width of the BMP file in pixels.
00FF FFFF - 4 bytes - (Negative) height of the BMP file in pixels.
0100 - 2 bytes - Number of color planes, must be 1.
2000 - 2 bytes - Number of bits per pixel. (in this case, 32 bits)
0300 0000 - 4 bytes - Compression method. (in this case, uncompressed RGBA)
4000 0000 - 4 bytes - Size of the raw bitmap data in pixels.
130B 0000 - 4 bytes - Horizontal Print resolution of the image.
130B 0000 - 4 bytes - Vertical Print resolution of the image.
0000 0000 - 4 bytes - Number of colors in the palette.
0000 0000 - 4 bytes - 0 means all colors are important.
00FF 0000 - 4 bytes - The pixel format for Red channel.
0000 FF00 - 4 bytes - The pixel format for Green channel.
0000 00FF - 4 bytes - The pixel format for Blue channel.
FF00 0000 - 4 bytes - The pixel format for Alpha channel.
4247 5273 - 4 bytes - Color Profile (BGRs in ASCII)
- Begin Color Profile
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0200 0000 0000 0000 0000 0000 0000 0000
- End Color Profile
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Looking for testers for handler BMP3 Export
That worked excellently, BUT, the JPG image weighed in at 117 KB, while the BMP3
worked out as 2.5 MB.
Here on MacOS 11.5 beta . . .
Preview opened it.
GIMP opened it.
MediBang Paint Pro opened it.
Toussaint Louverture: a most amazing man!
Re: Looking for testers for handler BMP3 Export
Solved with a single click!
Last edited by capellan on Thu Jun 24, 2021 7:29 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Looking for testers for handler BMP3 Export
Because that is the image I tested with your stack.
And because I admire Toussaint Louverture.
And who decides what contributes what to a discussion?
Et Quel est l'avantage d'un BMP3?
And because I admire Toussaint Louverture.
And who decides what contributes what to a discussion?
I would hope you are not letting any political prejudices get in the way of anything.Disk Space
is cheaper than Time...
Et Quel est l'avantage d'un BMP3?
Re: Looking for testers for handler BMP3 Export
After reading phpbbb help, I solved
this with a single clic!
Amazing!
this with a single clic!
Amazing!
Last edited by capellan on Thu Jun 24, 2021 7:27 pm, edited 1 time in total.
Re: Looking for testers for handler BMP3 Export
Actually all this is in the hands of the modarators of this forum!
Re: Looking for testers for handler BMP3 Export
............
Last edited by capellan on Thu Jun 24, 2021 7:28 pm, edited 1 time in total.
Re: Looking for testers for handler BMP3 Export
Hola Aleajndro,
Come on, you must be kidding!?
This is way off, Sir!
Sincerely
Klaus
Yes, I am.
Do you really think he should not have posted the image? Do you feel offended?
Come on, you must be kidding!?
This is way off, Sir!
Sincerely
Klaus
Re: Looking for testers for handler BMP3 Export
Solved with a single click!
Re: Looking for testers for handler BMP3 Export
This is childish, Al!