GithubHelp home page GithubHelp logo

bignaux / magick2cpc Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 423 KB

An image converter for CPC using ImageMagick.

License: GNU General Public License v3.0

C 75.71% Shell 14.04% Makefile 6.46% M4 1.74% Nix 2.05%
amstrad-cpc amstrad cpc c imagemagick sprite 8bits z80

magick2cpc's Introduction

Magick2CPC

Build Status

An image converter for CPC using ImageMagick. /!\ THIS SOFTWARE IS UNDER DEVELOPEMENT Feel free to join the project @ http://github.com/bignaux/Magick2CPC/

  • What is Magick2CPC?
  • Current features, usage and status
  • Limitations and issues
  • Licensing
  • Installation of Magick2CPC
  • TODO

What is Magick2CPC?

A derivative of Flight of Spring by D.Revoy, CC-By - running on caprice32

Magick2CPC is an image converter that produce source code to CPC and other old target. It supports all ImageMagick image format but does not rezise image for you. You have to provide well sized image that fit with the feature you want to perform. Unlike graphic tools, it tend to be integrating as a part of a software toolchain like in Makefile.

see http://jubatian.com/articles/using-non-square-pixel-aspect-ratios-in-gimp/

Magick2CPC :

  • is scriptable
  • is easy hackable
  • is portable
  • is opensource and developer welcome ( git, wiki and bugtracker @ github )
  • uses the powerful MagickWand to have many image processing features

Current features and usage:

z88dk sprite

Magick2cpc can produce source code for putsprite(). http://www.z88dk.org/wiki/doku.php?id=library:sprites:monosprites if --boolean option is used, it add a visualisation of the image as a comment. STATUS : OK

From z88dk wiki :

The sprite functions are based on a special data structure permitting dynamic sprite sizes: the first two bytes define the sprite size, while the next ones describe the picture.

The bits are right-padded to fill the last byte in a row.

cpcrslib sprite

https://sourceforge.net/projects/cpcrslib/ if --boolean option is used, it produces non masked sprite. http://www.cpcwiki.eu/index.php/CPCRSlib list some games with source using it.

STATUS : NEED SOME WORK : only mode 0 tested.

Limitations and issues:

This concerns current situation, therefore do not understand those as immutable issues!

  • tested only on Linux (other OS support is planned)
  • you should provide ready to transform image.
  • No CPC+ specific

Licensing:

Magick2CPC is licensed under the GPLv3. A copy of this license is provided with Magick2CPC archive.

Installation of Magick2CPC:

A configure script is provided. If you get some trouble with it you will be able to recreate it while running autogen.sh script.

Run: ./configure

Note that having libmagickwand-dev installed is MANDATORY.

Then run:

 make && make install

A more detailed documentation about installation is provided in Magick2CPC archive in INSTALL document. If you want to change de prefix for instance.

TODO :

[general]

  • manage sprite name
  • write examples

[cpcrslib.c] :

  • manage if image is not multiple of ppb
  • better alpha layer management
  • palette management : in progress [cpcutils.c]
  • Use ImageMagick "Custom Image Coders" to provide ImageMagick plugins, see :
  • Work with multiple image wand, see :
  • MagickHasPreviousImage() returns MagickTrue if the wand has more images when traversing the list in the reverse direction
  • MagickDeconstructImages() compares each image with the next in a sequence and returns the maximum bounding region of any pixel differences it discovers.

magick2cpc's People

Contributors

bignaux avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.