Skip to content

Commit

Permalink
#25 Fixed broken Koala export
Browse files Browse the repository at this point in the history
  • Loading branch information
micheldebree committed Nov 6, 2017
1 parent b180743 commit 75286ce
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,19 @@ Be patient. Next time it will get it from your local cache.

## Changelog

### 0.6.1

Fixes:

- [#25](https://github.com/micheldebree/retropixels/issues/25):
Koala export is broken. (Thanks to Alex Goldblat for reporting this)

### 0.6.0

Features:

- [#19](https://github.com/micheldebree/retropixels/issues/19): Undocumented 'fake' modes.
- [#19](https://github.com/micheldebree/retropixels/issues/19):
Undocumented fake modes.

Fixes:
[#21](https://github.com/micheldebree/retropixels/issues/21),
Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let ditherMode = 'bayer4x4';
let ditherRadius = 32;

cli
.version('0.6.0')
.version('0.6.1')
.usage('[options] <infile> <outfile>')
.option('-m, --mode <graphicMode>', 'c64Multicolor (default), c64Hires, c64HiresMono, c64FLI, c64AFLI')
.option('-d, --ditherMode <ditherMode>', 'bayer2x2, bayer4x4 (default), bayer8x8')
Expand Down Expand Up @@ -96,9 +96,9 @@ function saveExecutable(nativeImage, viewerFilename) {

// Save PixelImage as a KoalaPaint image.
function saveKoala(pixelImage) {
const mapper = new C64Mapper.C64Mapper();
const koalaImage = KoalaPicture.KoalaPicture.fromPixelImage(pixelImage);
koalaImage.save(outFile, function(err) {
if (err) throw err;
mapper.save(koalaImage.toMemoryMap(), outFile, () => {
console.log('Written Koala Painter file ' + outFile);
});
}
Expand Down
3 changes: 2 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=0.6.0
VERSION=0.6.1
EXAMPLE=paintface
DOCKERIMAGE=micheldebree/retropixels-cli:$(VERSION)
DOCKERCMD=docker run -t --rm -v "$$PWD":/data $(DOCKERIMAGE)
Expand Down Expand Up @@ -47,6 +47,7 @@ docker_debug: dockerimage
samples: compile
$(LOCALCMD) paintface.jpg ./samples/paintface-Multicolor.png
$(LOCALCMD) paintface.jpg ./samples/paintface-Multicolor.prg
$(LOCALCMD) paintface.jpg ./samples/paintface-Multicolor.kla
$(LOCALCMD) -m c64Hires paintface.jpg ./samples/paintface-Hires.png
$(LOCALCMD) -m c64Hires paintface.jpg ./samples/paintface-Hires.prg
$(LOCALCMD) -m c64HiresMono paintface.jpg ./samples/paintface-HiresMono.png
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "retropixels",
"version": "0.6.0",
"version": "0.6.1",
"description": "A cross platform command line tool to convert images to Commodore 64 format.",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit 75286ce

Please sign in to comment.