"NEOLoad" Neochrome <-> Bitmap image converter

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

"NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Wed Mar 30, 2016 2:49 am

I couldn't find an image converter that could convert both ways, from ST to PC and PC to ST, so I wrote my own.

Image

You can get it from here:
http://railtron.com/files/atarist/NEOLoad_V1.3.zip

It only works with 320 x 200 x 16-colour .NEO files and 320 x 200 .BMP files.

To convert from ST to PC, load the .NEO image into the top panel, then save it out as a .BMP..

To convert PC to ST, first resize your image to 320 x 200 and reduce to 16 colours in another paint program, then save as a Windows compatible bitmap. My program won't do any of the scaling or recolouring for you - it will give a warning if it finds more than 16 colours.

Load the .BMP into the bottom window and it will extract the palette. You may find that some of the colours in your original image are combined into the same colour when reduced to the 512 colour palette of the ST, so the palette extracted may be less than 16 colours. You could then try an image with a larger palette, e.g. 20 or 24 colours, or you could try increasing the saturation and contrast in your original image to make the colours more distinct.

You can use the 'Swap Palette' option to re-order the colours in the palette, and 'Preview' to see what the result will look like. Then save out the .NEO version of your image. You can try loading it back into the top again, instead of the Preview.

It was written in Borland C++ Builder 4, and sources are included.
Last edited by joefish on Tue Nov 21, 2017 6:04 pm, edited 3 times in total.

Maartau
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2607
Joined: Thu Dec 15, 2005 2:15 am
Location: France

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby Maartau » Wed Mar 30, 2016 1:23 pm

That's rock :thumbs: !

Thanks for the sharing 8) - it can be useful in many ways :D !

Edit : if NEOLoad needs :

- Borlndmm.dll,
- cp3245mt.dll,
- vcl40.bpl

Here they are...
You do not have the required permissions to view the files attached to this post.

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Wed Mar 30, 2016 2:16 pm

Oh right, comments and bug reports welcome.
I guess it needs the Borland run-time DLLs. I forgot to look up those in the build options.
Let me take another look and see if I can link it all in one package.

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Wed Mar 30, 2016 2:34 pm

OK, sorry, I'd built it with run-time dynamic libraries when I should have statically linked it. Stupid default build options.
Try the download link again for the v1.3 build - it should be able to run without requiring any extra DLLs now.
(Although the executable has jumped from 40K to 400K!).

Also a little tweak so that unallocated colours in the palette show up as magenta instead of black. Makes it easier to spot errors, and when you actually need a black in the palette.
Last edited by joefish on Wed Mar 30, 2016 7:31 pm, edited 2 times in total.

User avatar
spiny
Disk Imager Supreme
Disk Imager Supreme
Posts: 2438
Joined: Mon Aug 11, 2003 11:53 pm
Location: just outside bristol
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby spiny » Wed Mar 30, 2016 2:57 pm

nice one, more pixel utils are always welcome :)

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Wed Mar 30, 2016 3:18 pm

OK, just noticed one minor bug. If you [Save .NEO] then [Cancel] on the file selector, you still get a write-error warning as if it's tried and failed to save.

Another bug - the [Load .BMP] file selector still has *.GIF as an option - this is a fault as the Borland native graphics components can't load Gifs. I thought for a while it could, but it turns out I'd somehow managed to save a Windows bitmap file with a .GIF file extension.

If anyone's got any more bugs or annoyances, let me know and I'll wrap them up in another release in a few days time.

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2978
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby AtariZoll » Sat Nov 18, 2017 7:45 pm

Link is dead now. Can someone post here this program ? I need to reorder some palettes ...
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Tue Nov 21, 2017 5:53 pm

Try this:

http://railtron.com/files/atarist/NEOLoad_V1.3.zip

After DropBox dropped support for XP on the desktop I gave up on it. I should probably fix this up and put it on the webspace I bought for myself, but the PC it's on went bang and I haven't got round to scraping the drives for anything useful to transfer to the Win7 box yet.

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Tue Nov 21, 2017 6:21 pm

I did read a piece on how to do a 'Median Cut' to reduce a palette to 8 or 16 colours, but I don't know if it's worth adding. I know I'd much prefer doing the initial reduction to 320x200x16 colours myself in a separate paint package as most automated processes don't do a very good job.

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2978
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby AtariZoll » Tue Nov 21, 2017 6:44 pm

Thanx Joefish. Works very well.
I do color reduction and other processing mostly with Paintshop Pro 9 (Latest pre-Adobe v.) . There is Optimized Median Cut and Optimized Octree for it, + some dithering options (but that's not really good for today LCD monitors). So, yes, I don't think that you need to do what is already done.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Wed Nov 22, 2017 2:13 am

I appreciate your BMP to NEO conversion program

But just like the screenshots of Steem 3.2, I wonder the utility of converting an image of 16 colors in BMP 8 bits or 24 bits (I hesitate for some time to load these images in my converter)

I did not try. Since the BMP format has a structured header, would adding 16 original colors in 8-bit and 24-bit files be embarrassing?
... ..
Personally, I prefer to convert NEO to 4-bit BMP per color for several reasons.
- the NEO format has only 16 colors
- all colors in the palette are retained.
- BMP image can be loaded by several Atari drawing programs
- The size of the BMP file is smaller.
- reverse conversion makes a file identical to the original (colors and image planes)
- There is a lot of software that converts 4 bits into 24 bits.
Try "FastStone Capture" (JPG BMP GIF PCX PNG TGA TIF PDF) and "FastStone Image Viewer" (free, with more image format)

But there is certainly a reason I did not understand :!: :!: :!:

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2978
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby AtariZoll » Wed Nov 22, 2017 8:32 am

I don't see as some bigger flaw saving in 24-bit (16M colors) of Atari screens, pictures. If it is only 16 color, conversion to 4-bit format is trivial, and 100% accurate.
Things are that 24-bit format dominates now. As I know you can not add some palette/original colors info to 24-bit BMP, because there is no palette, and original colors are present there. Can put it in header somehow, but that will be not handled by graphic SW.
In case of Steem 3.2, there is real reason to use 24-bit BMP - there may be over 1000 different colors at once on screen (STE) . Even if it is max 512 (ST), you must use 24-bit, because there is no 16-bit BMP (at least I don't see it in paint SW) .
So, I can only say that on some newer computer it matters not if file is 32KB or 200KB. Just convert it to 4-bpp before transferring to Atari.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Wed Nov 22, 2017 9:06 am

yes it is obvious with images having more than 16 colors.
I did not do SPC image capture for example
lion.jpg
You do not have the required permissions to view the files attached to this post.

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Wed Nov 22, 2017 12:16 pm

I'm afraid I only looked up the format of the .NEO files. I didn't bother to research the .BMP format. I left that to the old Borland code library; I just call LOAD and SAVE on the image object in the display. You're right that for converting back to a .BMP it would be far more efficient to translate it into a palletised bitmap, but I don't know how (and I'd rather have a .GIF or .PNG myself). I also think it's far less common to use that conversion. This was primarily a tool for me to get graphics, screens, sprites etc. from my PC into something ST compatible, that I could then load in my ST code. Going the other way I prefer to just take a screen grab from an emulator rather than use this program!

AtariZoll
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2978
Joined: Mon Feb 20, 2012 4:42 pm
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby AtariZoll » Wed Nov 22, 2017 1:29 pm

BMP, uncompressed is pretty much simple and straight format.
I made in C conversion from 4 bit 320x200 BMP, what is always 32118 bytes, to Atari ST PI1 format, and all it is some 40 lines of C code. Conversion to NEO format needs only different header. So, doing reverse conversion, for NEO or PI1 to BMP would be code of similar length. Actually, thats missing from my :D conversion and packing tool, so it may be that I will do it soon. And can give you that code part.
Famous Schrodinger's cat hypothetical experiment says that cat is dead or alive until we open box and see condition of poor animal, which deserved better logic. Cat is always in some certain state - regardless from is observer able or not to see what the state is.

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Thu Feb 22, 2018 5:40 pm

Hello AtariZoll
A new update would be welcome.

User avatar
Mug UK
Administrator
Administrator
Posts: 11284
Joined: Thu Apr 29, 2004 7:16 pm
Location: Stockport (UK)
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby Mug UK » Thu Feb 22, 2018 7:32 pm

rockyone wrote:Hello AtariZoll
A new update would be welcome.


He was banned from this forum a few months ago. You can find him on the Exxos forum now.

(And I expect to get slagged off by him on that forum just for being helpful and pointing this out too.)
My main site: http://www.mug-uk.co.uk - slowly digging up the bits from my past (and re-working a few): Atari ST, Sega 8-bit (game hacks) and NDS (Music ripping guide).

I develop a free Word (for Windows) add-in that's available for Word 2007 upwards. It's a fix-it toolbox that will allow power Word users to fix document errors. You can find it at: http://www.mikestoolbox.co.uk

User avatar
Orion_
Captain Atari
Captain Atari
Posts: 352
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby Orion_ » Thu Feb 22, 2018 8:17 pm

I made some Photoshop plugins (compatible with paint shop pro), that can read/write PI1, PC1, NEO and SPC format
if anyone is interested, that way you can load/save in atari format with your favorite picture editor
http://onorisoft.free.fr/atari/atari.htm (at the bottom of the tools section)

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Thu Feb 22, 2018 8:25 pm

Mug UK wrote:
rockyone wrote:Hello AtariZoll
A new update would be welcome.


He was banned from this forum a few months ago. You can find him on the Exxos forum now.

(And I expect to get slagged off by him on that forum just for being helpful and pointing this out too.)


I did not know !
I was waiting for it to correct an error in its NEO / BMP converter.
The first word in the BMP files is not correct!

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Thu Feb 22, 2018 8:34 pm

Orion_ wrote:I made some Photoshop plugins (compatible with paint shop pro), that can read/write PI1, PC1, NEO and SPC format
if anyone is interested, that way you can load/save in atari format with your favorite picture editor
http://onorisoft.free.fr/atari/atari.htm (at the bottom of the tools section)


thank you Orion I will look.

In fact, I do not use NeoLoad.exe, but if I have the guts, I would do a routine to load the 24-bit format in MI-9. And NeoLod.exe, is the only application I found that makes a mistake in the BMP 24-bits header.

Maartau
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2607
Joined: Thu Dec 15, 2005 2:15 am
Location: France

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby Maartau » Thu Feb 22, 2018 9:18 pm

Orion_ wrote:I made some Photoshop plugins (compatible with paint shop pro), that can read/write PI1, PC1, NEO and SPC format
if anyone is interested, that way you can load/save in atari format with your favorite picture editor
http://onorisoft.free.fr/atari/atari.htm (at the bottom of the tools section)


I'm still using - Photoshop 7 - & that's works perfectly (Windows 8.1 / x64).

:cheers:

joefish
Atari maniac
Atari maniac
Posts: 81
Joined: Thu Dec 05, 2013 4:15 pm

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby joefish » Mon Feb 26, 2018 3:22 pm

rockyone wrote:In fact, I do not use NeoLoad.exe, but if I have the guts, I would do a routine to load the 24-bit format in MI-9. And NeoLod.exe, is the only application I found that makes a mistake in the BMP 24-bits header.

Does it? What does it do wrong?I have no control over the format - the code just uses some old Borland Visual C++ library functions for loading and saving BMPs, which is why it does the rather wasteful 24-bit packing.

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Tue Feb 27, 2018 5:33 am

Sorry for this bad information, this image is not in the right folder, it was St2Bmp.prg

Me too, I find it weird to convert 16-color images to 24-bit.
But I saw others, which seems to be 32 bits

rockyone
Captain Atari
Captain Atari
Posts: 410
Joined: Thu Jan 20, 2011 8:47 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby rockyone » Tue Feb 27, 2018 6:15 am

I just converted an image in black and white 640 * 400 in three Bmp formats
1 bit, 24 bits, and the third, 32 bits ????, size 1 024 054 bytes !!!
Skye.bmp.zip


Strange, St2bmp.exe and St2Bmp.prg no longer works on my PC.
You do not have the required permissions to view the files attached to this post.

User avatar
Orion_
Captain Atari
Captain Atari
Posts: 352
Joined: Sat Jan 10, 2004 12:20 pm
Location: France
Contact:

Re: "NEOLoad" Neochrome <-> Bitmap image converter

Postby Orion_ » Thu Mar 08, 2018 8:58 am

640*400*(32/8) = 1024000 bytes


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 3 guests