ALMOST GOT THE SLIDESHOW WORKING.
Current status. Toggle audio ON/OFF Works
Volume down: WORKS.
SELECT RANDOM OR SEQUENTIAL IMAGES....................WORKS.
Volume UP: NOT WORKING AND HAVE TO FIGURE IT OUT WHY ???
WIN BMP TO BVLOAD CONVERTER
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
Re: WIN BMP TO BVLOAD CONVERTER
I am going to Post the code
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
Re: WIN BMP TO BVLOAD CONVERTER
Ok. Convert works. But its kind of slow even in warp. Just got through redoing it in QB64. Only tested in Linux so far
and uses some shell commands so Windows is going to take a little modification.
(After looking at it again I just think Shell "rm IN.BMP" needs changed to Shell "del IN.BMP")
This program takes any input image and converts it to a BVLOADABLE IMG.BIN and VPAL.BIN with one command.
ImageMagicK must be installed. This program doesn't do all the work by itself.
Its quite a bit quicker than the CBM Basic convert program.
img2Bvload IMAGEFILENAME.EXT
EDIT: STILL LEARNING THINGS ABOUT QB64
ADD THE FOLLOWING TO THE HEAD OF THE SOURCE FILE TO GET RID OF THE ANNOYING POP UP WINDOW. PRINT STATEMENTS NOW WILL JUST BE IN YOUR COMMAND WINDOW
Written using the QB64 compiler.
SOURCE
Linux 64 bit executable (wrapped in a zip file, forum won't let me upload raw)
Windows executable and source together.
NOTE: For windows the convert command conflicts with the NTFS file system convert command.
so the magick command is used instead. Also. Must download a version of Imagemagick that does 8 bits per color channel the 16 bit per color channel version was not outputting a usable file for my algorithm, though it appeared valid otherwise.
Short CBM Basic program to load and observe the resulting files.
Link to Imagemagick Windows version thats working for me: https://imagemagick.org/archive/binarie ... static.exe
and uses some shell commands so Windows is going to take a little modification.
(After looking at it again I just think Shell "rm IN.BMP" needs changed to Shell "del IN.BMP")
This program takes any input image and converts it to a BVLOADABLE IMG.BIN and VPAL.BIN with one command.
ImageMagicK must be installed. This program doesn't do all the work by itself.
Its quite a bit quicker than the CBM Basic convert program.
img2Bvload IMAGEFILENAME.EXT
EDIT: STILL LEARNING THINGS ABOUT QB64
ADD THE FOLLOWING TO THE HEAD OF THE SOURCE FILE TO GET RID OF THE ANNOYING POP UP WINDOW. PRINT STATEMENTS NOW WILL JUST BE IN YOUR COMMAND WINDOW
Code: Select all
$CONSOLE
$SCREENHIDE
_SOURCE _CONSOLE
_DEST _CONSOLE
Written using the QB64 compiler.
SOURCE
Linux 64 bit executable (wrapped in a zip file, forum won't let me upload raw)
Windows executable and source together.
NOTE: For windows the convert command conflicts with the NTFS file system convert command.
so the magick command is used instead. Also. Must download a version of Imagemagick that does 8 bits per color channel the 16 bit per color channel version was not outputting a usable file for my algorithm, though it appeared valid otherwise.
Short CBM Basic program to load and observe the resulting files.
Link to Imagemagick Windows version thats working for me: https://imagemagick.org/archive/binarie ... static.exe
Last edited by ahenry3068 on Sun Oct 15, 2023 9:02 am, edited 9 times in total.
-
- Posts: 8
- Joined: Thu Sep 07, 2023 4:11 am
Re: WIN BMP TO BVLOAD CONVERTER
Thank you for providing this.
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
Re: WIN BMP TO BVLOAD CONVERTER
It was my pleasure and also Educational
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
Re: WIN BMP TO BVLOAD CONVERTER
Having more difficulty than expected with the Windows Port. The convert command conflicts with the file system convert command that exists under Windows. And the Magick command isn't outputting the correct size IN.BMP (which should be 77.9 kb exactly). Not giving up though.......... Even though Linux is my OS I know a lot of us here use Windows
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
IMAGEMAGICK Link wasn't working. FIXED
Fixed the ImageMagick Link above.
and including it here also. (This is the Windows version)
(If your a linux user your probably better off using whatever version is in your distribution)
https://imagemagick.org/archive/binarie ... static.exe
and including it here also. (This is the Windows version)
(If your a linux user your probably better off using whatever version is in your distribution)
https://imagemagick.org/archive/binarie ... static.exe
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm
IMG2BVLOAD NEW FEATURES.
I'm doing some pretty active development on this still. I don't plan many intermediate release, but when I do release a new version here are some features I'm planning, some of them are already implemented in private code I'm using for myself.
Keep original aspect ratio. And Pad file for proper loading.
(currently the code just forces 320x240 regardless of aspect ratio).
Batch conversion of files with naming conventions.
Probably the hardest feature because I'm still pretty raw with Image Magick. Take a series of Images and force them to use identical palette colors so only 1 palette load needs to be done for sequential display. ( Not optimal for Image display but extremely necessary for effective animation)....
FEATURE REQUESTS: ..... Don't be shy. if you think another feature would be useful, answer on this thread or PM me. I guarantee I'll at least read the request ....
Keep original aspect ratio. And Pad file for proper loading.
(currently the code just forces 320x240 regardless of aspect ratio).
Batch conversion of files with naming conventions.
Probably the hardest feature because I'm still pretty raw with Image Magick. Take a series of Images and force them to use identical palette colors so only 1 palette load needs to be done for sequential display. ( Not optimal for Image display but extremely necessary for effective animation)....
FEATURE REQUESTS: ..... Don't be shy. if you think another feature would be useful, answer on this thread or PM me. I guarantee I'll at least read the request ....
- ahenry3068
- Posts: 1136
- Joined: Tue Apr 04, 2023 9:57 pm