ZX81 BMP converter

For those of you watching in black and white, the pink is next to the green...
User avatar
pavero
Dynamite Dan
Posts: 1582
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: ZX81 BMP converter

Post by pavero »

kolbeck wrote: Fri Aug 14, 2020 12:01 pm
pavero wrote: Thu Aug 13, 2020 8:03 pm Maybe small improvement. It doesn't work for BMP files without a border - 256 x 192 pixels only. ;)
Hi @pavero - please try again, it should now support all sizes from EO

* No Border: 256x192 pixels
* Small Border: 264x200 pixels
* Standard Border: 320x240 pixels
* Large border: 400x300 pixels
* Full frame: 413x312 pixels

The PNG will of course have the same size as the input file. Also for large and full frame, the adjustment is not 100% correct - looks like the actual dump is not centered :-) Will be fixable when adjustment parameters are added.

/Thomas
Perfect! :-)
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

[mention]4thRock[/mention] - look at this:
ZX81 Video Nonstandard Picture Size

The official picture size is 32x24 tiles (256x192 pixels) with huge borders. However, on a PAL screen, the ZX81 can display 40x34 tiles (320x272 pixels).
Info found on this page: https://problemkaputt.de/zxdocs.htm#zx8 ... esgraphics

/Thomas
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

I have renamed the tool to ZX81 Screen Converter, as it how handles more than BMP files as input.

What is it?
ZX81 Screen Converter is an online tool target preserving ZX81 software for ZXDB, helping to create proper screen shots in formats like s81, scr and png. It take as input a screen dump file and converts to different formats. Allowed input formats:
* .bmp as produced by various emulators (e.g. EightyOne and SZ81)
* .png as produced by the ZX81 emulator for iOS (by Kevin Palser) and Retrospecs (Pixelate your pics!) also for iOS
* .s81 for standard non-hires ZX81 screens (a sequence of 768 character codes from the ZX81 charset)
* .scr widely used screen format used for ZX Spectrum screens, suitable for preserving ZX81 hi-res screens

It will always produce the following output:
* .s81 for standard non-hires ZX81 screens (a sequence of 768 character codes from the ZX81 charset) - if it is a hi-res screen, or the offset parameters is not correct - this will just be garbage.
* .scr for hires screens with regular size (in ZX Spectrum display format)
* .png for big screens, that goes beyond the 256x192 size (for example MaxDemo or QS Defenda)
* .txt for printing in console - mostly for fun (ANSI control codes to implement inverse print) - as with s81, it will be gargabe if hi-res or offset parameters are not aligned to 8x8 blocks. Use this to verify correct offset parameters.

For iOS ZX81 emulator, make sure to have at least v1.9.0 - as this version fixes some issues with the screen dump.

All border sizes from EightyOne with the following sizes are supported:
* No Border: 256x192 pixels
* Small Border: 264x200 pixels
* Standard Border: 320x240 pixels
* Large border: 400x300 pixels
* Full frame: 413x312 pixels

You can find the online converter here: https://zxinfo.dk/scr/ - and as always, leave a comment here :-)

/Thomas
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
PeterJ
Site Admin
Posts: 6873
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: ZX81 BMP converter

Post by PeterJ »

I'm a bit late to the party with this one [mention]kolbeck[/mention], but just to say Excellent!
User avatar
PeterJ
Site Admin
Posts: 6873
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: ZX81 BMP converter

Post by PeterJ »

Hi [mention]kolbeck[/mention],

I did a few screens last night and it worked great, but this evening I'm getting 'Error: Request failed with status code 404' when I upload this file.

https://drive.google.com/file/d/1u7KcJZ ... sp=sharing
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

Let me check - some work are being done in relation to the V3 upgrade - might give some noise, thanks for the heads-up

/Thomas
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

[mention]PeterJ[/mention] - missing rule in config, it should be running again now!

thanks
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
PeterJ
Site Admin
Posts: 6873
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: ZX81 BMP converter

Post by PeterJ »

kolbeck wrote: Tue Feb 09, 2021 9:28 pm @PeterJ - missing rule in config, it should be running again now!

thanks
Thanks Thomas. All working now. Cheers.
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

ZX81 Screen Converter - just got a small update, everything should be working as before.

* Improved layout, where converted files are easy accessible
* Support for drag'n'drop of a file for easy conversion

Before:
Image Image

After:
Image Image



/Thomas
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
User avatar
kolbeck
Manic Miner
Posts: 310
Joined: Mon Nov 13, 2017 9:04 pm

Re: ZX81 BMP converter

Post by kolbeck »

Another small update, it now supports ZX80 screenshots - in the sense that if marked as ZX80, it will be able to identify the characters used by ZX80 which font is a bit different than on ZX81 (and to large extend ZX Spectrum).

Image uploaded, not marked as ZX80 (look at most right image, which is the ASCII identified - in this case mostly garbage)
Image

Same image now marked as ZX80 - the characters are identified correctly and produces nice ASCII representation.
Image
https://api.zxinfo.dk/v3/ - ZXDB API for developers
zxinfo-file-browser - Cross platform app to manage your files
https://zxinfo.dk - another ZXDB frontend
Post Reply