GithubHelp home page GithubHelp logo

augustoruiz / img2cpc Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 9.99 MB

Tool to convert images in a lot of formats to data that can be used in Amstrad CPC software

License: MIT License

Shell 0.19% C++ 86.18% C 13.63%

img2cpc's People

Contributors

augustoruiz avatar lronaldo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

img2cpc's Issues

Doesn't compile from a clean clone

➜  Img2CPC git:(master) gmake -f Makefile.others 
g++ -std=c++11 -O3 -Werror -Wall -fsigned-char -o obj/Palette.o -c -Iinclude src/Palette.cc
Assembler messages:
Fatal error: can't create obj/Palette.o: No such file or directory
gmake: *** [Makefile.others:28: obj/Palette.o] Error 1
  • FreeBSD 11.1-RELEASE GENERIC amd64
  • gcc (FreeBSD Ports Collection) 6.4.0
  • GNU Make 4.2.1

I'll submit a PR for this shortly, as part of my work to get this tool working on FreeBSD.

Overscan

-scr option doesn't work for overscan resolution
Is it possible to add it ?

Segfaults when run

➜  Img2CPC git:(master) mkdir obj
➜  Img2CPC git:(master) gmake -f Makefile.others 
g++ -std=c++11 -O3 -Werror -Wall -fsigned-char -o obj/Palette.o -c -Iinclude src/Palette.cc
g++ -std=c++11 -O3 -Werror -Wall -fsigned-char -o obj/TileExtractor.o -c -Iinclude src/TileExtractor.cc
g++ -std=c++11 -O3 -Werror -Wall -fsigned-char -o obj/img2cpc.o -c -Iinclude src/img2cpc.cc
g++ -std=c++11 -O3 -Werror -Wall -fsigned-char -o obj/jsoncpp.o -c -Iinclude src/jsoncpp.cpp
g++  -o bin/img2cpc obj/Palette.o obj/TileExtractor.o obj/img2cpc.o obj/jsoncpp.o -lfreeimage
➜  Img2CPC git:(master) ./bin/img2cpc --help
[1]    58442 segmentation fault (core dumped)  ./bin/img2cpc --help

I'll submit a PR for this shortly, as part of my work to get this tool working on FreeBSD.

There is no way to use PNG transparency to generate Interlaced Masks

Interlaced Masks option requires a transparent color from the palette to generate the masks. However, this shouldn't be required, as interlaced masks do not depend on a palette color, as mask tables do. I suggest generating interlaced masks out of 3 possibilities:

  • Actual transparency values from the original image (such as PNG transparency)
  • An specific RGB colour in the original image (that could be different from all Amstrad CPC colours, for instance)
  • A palette index colour, like now (just to let users pick this option if they wanted, even if it is not useful in general)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.