Spade-Editor / Spade

Cross-platform raster graphics editor inspired by Paint.NET
GNU General Public License v3.0
41 stars 10 forks source link

TGA Importer #19

Open HeroesGrave opened 10 years ago

HeroesGrave commented 10 years ago

We have an exporter but no importer.

I'm not very familiar with image formats, and I don't really see that they are needed, but for the sake of consistency we shuold add support for loading them.

Longor1996 commented 10 years ago

The problem is, that there are hundres of different internal-formats for TGA, if not thousands of internal-formats. We would have to write import functionality for ALL of them, or at least the ~50 most commonly used.

HeroesGrave commented 10 years ago

Are there any freeimage bindings for Java?

That could help.

Otherwise I'll just close this.

sylvia43 commented 10 years ago

Do people actually use tga? Usually for pixel art (at least in my experience) it's only png's, and jpeg's and gif's are common enough to warrant including. Everything else should just be a plugin. That said, should we include all "official" plugins in this repo and have them with the project? It seems like automatically including these plugins would be helpful.

BurntPizza commented 10 years ago

It seems like automatically including these plugins would be helpful.

I've been thinking of a good way to do that as well, perhaps have 'officially sanctioned' plugins be included in the repo/build in an effects folder (under original author's package names, etc) and have the plugin manager check the github for them?

HeroesGrave commented 10 years ago

I should probably create an organisation for this project. That might save some trouble, or it could create more.

HeroesGrave commented 9 years ago

http://www.java-gaming.org/topics/mentions/35630/msg/337911/view.html might be of use.

SuperDisk commented 9 years ago

I'll fork it and add 16bit and paletted color. It still seems a little janky (Just printing errors instead of exceptions) but we can always swap out implementations if this doesn't work for us.

The following "types" that TGA supports are

As far as I can tell, the library only supports the RGB related types. Truevision is a very simple format, fortunately, so I figure it will be easy to implement all of this. However, just grabbing an already completed library (Like 12monkeys??) might be a better alternative.

SuperDisk commented 9 years ago

Check out the 12monkeys repository I just created, plus the commit I made a pull request for. It'll allow for a TGA importer.