Simple Tile editor that exports to PNG?

Hey all,

I was wondering if there is a simple Tile editor out there that can do the folllowing:

  1. Read a png file and identify unique tiles of a specified size
  2. Allow creation of a map using those unique tiles using drag and drop
  3. Export that map to png, using a unique color to represent each unique tile. (In other words, each tile would be represented by a pixel on the exported image)

That’s all the functionality I need. Is there a simple tool out there that already does that?

If it’s written in Java, that’d be great, because I’m on Linux atm.

maybe tiled ? Older version are in java