WIN BMP TO BVLOAD CONVERTER

All aspects of programming on the Commander X16.
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Re: WIN BMP TO BVLOAD CONVERTER

Post by ahenry3068 »

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 ??? :)
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Re: WIN BMP TO BVLOAD CONVERTER

Post by ahenry3068 »

I am going to Post the code
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Re: WIN BMP TO BVLOAD CONVERTER

Post by ahenry3068 »

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

Code: Select all

$CONSOLE
$SCREENHIDE
_SOURCE _CONSOLE
_DEST _CONSOLE

Written using the QB64 compiler.
SOURCE
img2Bvload.BAS
(2.38 KiB) Downloaded 147 times

Linux 64 bit executable (wrapped in a zip file, forum won't let me upload raw)
img2bvload.zip
(412.89 KiB) Downloaded 150 times

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.
img2bvload_win.zip
(658.3 KiB) Downloaded 112 times

Short CBM Basic program to load and observe the resulting files.
TESTIMG.PRG
(82 Bytes) Downloaded 121 times

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.
Accordster
Posts: 8
Joined: Thu Sep 07, 2023 4:11 am

Re: WIN BMP TO BVLOAD CONVERTER

Post by Accordster »

Thank you for providing this.
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Re: WIN BMP TO BVLOAD CONVERTER

Post by ahenry3068 »

It was my pleasure and also Educational :)
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Re: WIN BMP TO BVLOAD CONVERTER

Post by ahenry3068 »

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
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

IMAGEMAGICK Link wasn't working. FIXED

Post by ahenry3068 »

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
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

IMG2BVLOAD NEW FEATURES.

Post by ahenry3068 »

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 :)....
User avatar
ahenry3068
Posts: 1084
Joined: Tue Apr 04, 2023 9:57 pm

Moved to DEVTOOLS

Post by ahenry3068 »

Moving this to DEVTOOLS

viewtopic.php?p=29713#p29713
Post Reply