riuson / lcd-image-converter

Tool to create bitmaps and fonts for embedded applications, v.2
https://lcd-image-converter.riuson.com/
GNU General Public License v3.0
337 stars 80 forks source link

Animation by storing multiple images as a 'font' #33

Closed riuson closed 10 years ago

riuson commented 10 years ago

From onwards....@gmail.com on August 20, 2014 05:58:29

Presently, in order to do animations, I manually combine the data (copy+paste) from individual images into a single file in identical format to how a font is stored.

This is a very manual and slow process (especially once you get to large numbers of frames) but it works well once the data file is created. It is very easy to use the data in embedded code also, with the animation simply stepping through the "font" to display each frame image in turn.

An animation has very similar characteristics to a font, with identical size images all under a single identifier. It would be very useful to be able to open a bunch of images as per usual in the editor, and in the File Menu have an extra option: "Convert to animation" This would treat all the images as a single font (maybe the char code could just be a simple image index of 0 -> #images) and save in a single data file.

Original issue: http://code.google.com/p/lcd-image-converter/issues/detail?id=33

riuson commented 10 years ago

From riu...@gmail.com on September 09, 2014 20:04:47

Ok. If a user opens a file, the application simply creates a single image. If a user opens multiple files at a time, the application requests it, "to create a font from the pictures or create several individual images?".

Status: Accepted
Owner: riu...@gmail.com

riuson commented 10 years ago

From onwards....@gmail.com on September 10, 2014 19:23:42

Yes, that's it. Perhaps an option in the "Convert All" menu option?

riuson commented 10 years ago

From riu...@gmail.com on September 16, 2014 06:00:09

No. "File -> Open". This option not realized. Just a variant;

You are manually combine the data? Did you try to create font, select characters and import multiple images at once? Menu "Image -> Import" supports multiple image files at once, if font opened.

riuson commented 10 years ago

From onwards....@gmail.com on September 16, 2014 13:57:15

Oh wow, I didn't know I could do that! I manually copy+pasted the data from the output files.

Ok, so the feature already exists! However, I cannot seem to select multiple images at once. How do I select multiple images? I go Menu "Image -> Import" but it only lets me select 1 file at a time (tried holding down shift, ctrl)

I am using Windows 7.

riuson commented 10 years ago

From onwards....@gmail.com on September 16, 2014 13:58:40

Ahh.. I just found the branch that allows multiple open files... will try that..

riuson commented 10 years ago

From onwards....@gmail.com on September 16, 2014 14:31:32

Just tried the open multiple files branch.. it seems it still won't let me select more than one file...?

riuson commented 10 years ago

From riu...@gmail.com on September 16, 2014 22:34:36

Yes. Try rev. 4c8ee40560c58a6de7e334b9f554ce84e5be034b from branch feature-open-multiple-files.

riuson commented 10 years ago

From onwards....@gmail.com on September 17, 2014 15:09:33

Aha! It works now! Couple of things I noted:

  1. you need to select all the characters you want to replace before you go Menu -> Image -> Import.
  2. the preview (in right column) shows a zoomed in version of the imported images. (I imported a set of 160x160 images). If you then go to Menu -> Font -> Change and change anything, it resizes the preview images to what you would expect. Perhaps need to tell it to regenerate the preview after an import?
riuson commented 10 years ago

From riu...@gmail.com on September 22, 2014 21:05:16

  1. Yes. Replaced only selected characters, the amount of not more than the number of the selected files.
  2. Try rev. 2ed66fdbb49c958d539404515e20d299b72bf1f5
riuson commented 10 years ago

From onwards....@gmail.com on October 13, 2014 18:14:09

Hi, Sorry for delay in replying.

  1. Yes, all works now!
  2. Yes, all works now - images resize correctly.

Thanks! :-)

riuson commented 10 years ago

From riu...@gmail.com on October 13, 2014 18:22:54

OK, thanks

Status: Fixed