Image2BBC 0.8

discuss pc<>acorn file transfer issues and the use of other utils
User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Image2BBC 0.8

Post by Dreamland Fantasy » Thu Feb 15, 2007 10:45 pm

A new version of Image2BBC has been released. A list of the new features include:

- New dithering algorithms
- Optional dithering by serpentine method
- Zoomed preview
- Optional aspect ratio correction

There have also been a LOT of other "under the bonnet" improvements and optimisations plus a number of bug fixes.

You can see an example of some of the improvements in the following images. Here is an example of the original conversion engine:

Image

And now the same image with the exact same settings with the new conversion engine:

Image

Please note though that I have used yellow instead of green just to better highlight the "breakup" of the sky in the first image.

The new version is available for download from here: http://www.dfstudios.co.uk/temp/img2bbc/Image2BBC.zip

Again this version is still a work in progress so you use entirely at your own risk. There are a couple of bugs that I am aware of which could crash the program, but this relates to you loading extremely large images.

As always I would appreciate any comments, suggestions for improvement or bug reports that anyone may have.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

User avatar
sorvad
Posts: 2184
Joined: Wed Aug 24, 2005 1:13 pm
Location: Back of beyond
Contact:

Post by sorvad » Fri Feb 16, 2007 10:26 am

That's really great work, looking fantastic. :D

User avatar
CMcDougall
Posts: 7040
Joined: Wed Feb 02, 2005 3:13 pm
Location: Shadow in a Valley of Scotland
Contact:

Post by CMcDougall » Fri Feb 16, 2007 10:55 am

will have a play at weekend, lookin great :wink:
ImageImageImage

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Fri Feb 16, 2007 12:09 pm

Thanks guys! :D

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

User avatar
Yrrah2
Posts: 384
Joined: Tue Feb 06, 2007 6:06 pm
Location: Netherlands
Contact:

Post by Yrrah2 » Sat Feb 17, 2007 10:41 am

Nice application! 8)

Are you planning to make a mac version aswell?

Cheers

Koen

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Sat Feb 17, 2007 11:06 am

I may produce a Mac version, but I will need to get a Mac first before I can do so.

I'm currently waiting for Leopard to be released before purchasing one and I've currently got my eye on the 17" MacBook Pro. :D

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

User avatar
Yrrah2
Posts: 384
Joined: Tue Feb 06, 2007 6:06 pm
Location: Netherlands
Contact:

Post by Yrrah2 » Sat Feb 17, 2007 3:55 pm

Maybee jon from beebem can help you out ;)

cheers

koen

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Sat Feb 17, 2007 5:21 pm

Jon has already kindly offered to help out if I need it.

I'll wait until I get a Mac first and see how things go from there.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Sat Feb 17, 2007 6:54 pm

I've just uploaded a newer version of Image2BBC which fixes a minor bug. Use the link above to download it.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Sun Feb 18, 2007 11:14 pm

This is AWESOME windows app! :D Great work.

Also, could the reverse (i.e. BBC screendump -> PNG) be added later? Thanks!

I wonder could the target resolution figures be added to the 'Preview' window. I.E. 160x256 or 320x256 or 640x256 (Just to be explicit about the resultant image).

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Sun Feb 18, 2007 11:44 pm

You can download the BBC Micro Image Converter from my website at http://www.dfstudios.co.uk which will convert BBC screen dumps to BMP files. There is also a teletext converter in the works too which is half finished (there's an example converted image here: http://www.stairwaytohell.com/sthforums ... 2&start=30). Eventually these will be integrated into an all-in-one application.

That's a good idea about having the screen resolutions on the preview frame. Thanks! :)

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Mon Feb 19, 2007 1:18 am

Great Francis.

I've thought of two very beneficial options you could add to the application to improve the BBC screendump. They are:

* A "Brightness" slider (-100% to +100%)
* A "Contrast" slider (-100% to +100%)

Whenever I've used Paint Shop Pro to manually convert a JPEG/TIFF/whatever to a BBC 8-colour image, I find that a little tweaking of the brightness and contrast BEFORE the filtering takes place can help the results enormously. Especially in restoring 'darkened-out' or 'lightened-out' details.

Just a thought! :)

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Mon Feb 19, 2007 1:20 am

They're already on my list of things to add as well as gamma correction too. :D

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

John Kortink
Posts: 116
Joined: Tue Mar 21, 2006 9:47 am

Post by John Kortink » Mon Feb 19, 2007 8:56 pm

I'm thinking animations. Use GoMMC to display. Lots of memory, 150 KB/sec flat out. 8 fps ? ;-)

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Mon Feb 19, 2007 9:41 pm

Funnily enough I was toying with the idea of having an AVI to BBC converter using a custom animation format, but this is way down on my list of things to do at the moment.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 1:25 pm

I've uploaded another update. Download using the same link.

New in this update:

- Added the screen resolution to the converted image preview (thanks garfield! :wink: )
- Made some optimisations so that the converter is now 4-5 times faster!
- Some other minor changes

Kind regards,

Francis
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 5:07 pm

Nice one!

Another idea: Drag-N-Drop opening

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 5:22 pm

I've never tried doing drag and drop before, but I'll see what I can do. :wink:

Kind regards,

Francis.
Last edited by Dreamland Fantasy on Tue Feb 20, 2007 11:51 pm, edited 1 time in total.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 5:23 pm

BUG: Certain images cannot be loaded

-- Copy this image URL and download

Code: Select all

http://www.ecl.udel.edu/~jeffress/The%20huge%20telescope(2).JPG
-- Open in Image2BBC

.
.

This large JPEG image (2848 x 2136 pixels - 1536k) causes the following error dialog to appear:

"
Unfortunately an error has occured.

Reason: Unable to create image in CorrectAspectRatio().
"

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 5:28 pm

Code: Select all

http://www.ecl.udel.edu/~jeffress/Billboard%20of%20Lyd's%20Perfume%20in%20Cordoba.JPG
2136 * 2848 = 1433k

This one is interesting in that TWO error dialogs appear (one after the other), suggesting to me that there's some overflow on both the maximum width and the maximum height of a source image.

Given that most digital photos today can be very large in dimensions, it would be great if Image2BBC could handle any size of input! :)

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 5:47 pm

This is a "bug" that I am aware of as I mentioned previously in this thread. I only just discovered this when testing the program on a machine with only 512 meg of RAM.

Please bear in mind that a JPEG image of 2848 x 2136 pixels would work out as being around 140 meg in size uncompressed! :shock:

Incidentally both images work fine on my machine, but then I have 3 gig of RAM so I can handle most images without any problem.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 6:00 pm

Dreamland Fantasy wrote:I am aware of as I mentioned previously in this thread. I only just discovered this when testing the program on a machine with only 512 meg of RAM.
Ah - I missed that you mentioned it already. :)

FYI, the box I'm testing Image2BBC on is a pentium 4 system with 1GB of ram.

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 6:05 pm

Do you know how much actual contiguous free ram you have while running Image2BBC?

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 6:21 pm

I don't know about contiguous-ness of the ram, but the Task Manager says for Physical Memory (K), there is:

Code: Select all

Total 1046516
Available 732336
System Cache 633192

User avatar
sorvad
Posts: 2184
Joined: Wed Aug 24, 2005 1:13 pm
Location: Back of beyond
Contact:

Post by sorvad » Tue Feb 20, 2007 6:33 pm

John Kortink wrote:I'm thinking animations. Use GoMMC to display. Lots of memory, 150 KB/sec flat out. 8 fps ? ;-)
I really like that idea :) Could have a video sampler ! Would be a great use of the GoMMC space.

Of no practical value, but would be cool

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 6:42 pm

I've just uploaded a quick update which now includes drag'n'drop as per garfield's suggestion. It was actually easier to implement than I had expected! :D

Just drag the icon of a supported image file into the window and it should load automatically.

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 6:54 pm

Dreamland Fantasy wrote:Just drag the icon of a supported image file into the window and it should load automatically.
Works well. Very convenient!

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 7:09 pm

Another suggestion (or two)! :) :

I presume that the 'Zoomed Preview' window is 640x512 actual pixels (in order to fully accommodate the maximum BBC mode [MODE0] with the correct vertical stretch for aspect ratio reasons).

Given that, I suggest that there be TWO zoom options:- 640x512 (the current one), and additionally 1280x1024. 1280x1024 is very common these days (even on laptops), and since it's a perfect multiple of the BBC mode widths and heights, it suits as a preview without scaling/blurring problems found in other sizes.

View -> Zoom Preview (Medium) (the current one)
View -> Zoom Preview (Large) (the suggested additional 1280x1024 one)




Also, if a 'click-on-image-to-close' feature was added to the zoomed preview, it would make Image2BBC even more user-friendly. (For those of us too lazy to click the X button! ) :wink:

garfield
Posts: 422
Joined: Mon Jan 03, 2005 1:38 am
Contact:

Post by garfield » Tue Feb 20, 2007 7:15 pm

Looking at the user interface, another thing that struck me that would improve Image2BBC would be a toolbar, to compliment the already-present menubar. Quick access buttons to Open/Save As/Zoom would be very handy indeed!

User avatar
Dreamland Fantasy
Posts: 558
Joined: Fri Dec 29, 2006 12:15 am
Location: Glasgow, UK
Contact:

Post by Dreamland Fantasy » Tue Feb 20, 2007 7:52 pm

I presume that the 'Zoomed Preview' window is 640x512 actual pixels (in order to fully accommodate the maximum BBC mode [MODE0] with the correct vertical stretch for aspect ratio reasons).
Yes, that is correct. I was never happy with the mode 0 preview in the main window since it didn't accurately represent the converted image so I added the zoomed option.
Given that, I suggest that there be TWO zoom options:- 640x512 (the current one), and additionally 1280x1024. 1280x1024 is very common these days (even on laptops), and since it's a perfect multiple of the BBC mode widths and heights, it suits as a preview without scaling/blurring problems found in other sizes.
The only problem with that is the fact that if you were displaying it in a window you would never see the full image unless you had a screen resolution greater than 1280 x 1024 since some of the space is taken up by the window frame plus the start bar.

My plan was to include a full screen preview using the desktop's native screen resolution.
Also, if a 'click-on-image-to-close' feature was added to the zoomed preview, it would make Image2BBC even more user-friendly. (For those of us too lazy to click the X button! ) ;)
I'll add that in for the next release.
Looking at the user interface, another thing that struck me that would improve Image2BBC would be a toolbar, to compliment the already-present menubar. Quick access buttons to Open/Save As/Zoom would be very handy indeed!
Yes, this is also already on my to do list. :wink:

Thanks for the suggestions. Keep them coming! :D

Kind regards,

Francis.
Dreamland Fantasy Studios
http://www.dfstudios.co.uk

Post Reply

Return to “software & utilities for the pc, mac or unix”