Spade-Editor / Spade

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

GIF Importer #21

Open HeroesGrave opened 10 years ago

HeroesGrave commented 10 years ago

We have an exporter but no importer.

Can this be done with ImageIO?

Longor1996 commented 10 years ago

Yes, and No.

Some JVM's have an importer for GIF, others don't. Writing our own seems like the best idea.

I think it should be easy enough to do, since there is only a small amount of internal-formats for GIF.

sylvia43 commented 10 years ago

Hey I'm new to this project and looking to help... I'll try to finish this by the end of the weekend. I might not be able to implement it properly though... Where else do I need to write code to implement this properly?

HeroesGrave commented 10 years ago

Create one here (use the existing ones for method reference if necessary)

Register it here

sylvia43 commented 10 years ago

Ok thanks. What about error handling? For example if the file is not proper or is corrupt?

Longor1996 commented 10 years ago

Oh man.

This reminds me that there is no proper error handling in place... Just throw an exception for now.

Can someone make a small dialog that pops-up when the image-importer threw an exception?

The dialog should contain:

I can't make one, since GitHub doesn't work for me right now. (I am trying to fix it!)

sylvia43 commented 10 years ago

I'll just write a print statement for now.

HeroesGrave commented 10 years ago

Fair enough.

I'll create a new issue for Longor1996's idea.