I would like to quickly create many mathematical equations png files

Hi all

I am creating about 4608 images jpg or gif, mathematical equations.

I created a spreadsheet excel equations, like "24 + 24 = 48".

I want to format the above equation as:

"24 24 plus"

"... 48 "

with the two lines centered on a canvas of 660 x 440 with color #CC0000.

I want to make the font Comic Sans MS size 96 and have each text centered in the canvas box. I would like the option to change the font of Arial, if you wish.

I've been creating these images, one at a time :-(and it is very time consuming.

Is there a way I can import the text file or spreadsheet that has equations on them and quickly save files named as the equation itself?

I've attached an example of what I'm looking for.

Thanks for your time.

Diana M.

[email protected]

This would require script within Fireworks.

If you are familiar with Javascript, it should not be terribly difficult.

The steps that I would recommend would be:

  1. Configure the data so that "2 + 2 =" is in a column of the spreadsheet and "...". 5 "is in another
  2. Export your Excel document in a CSV file
  3. Convert this CSV file to a JSON object (handy converter here: http://www.cparker15.com/utilities/csv-to-json/)
  4. Write javascript to consume this JSON object and iterate over the child elements
  5. Use the FW API for each child element to create the new document, draw text, name/save/close the file object and repeat

In the end, the execution of a loop of 4 608 element that creates and stores the files in a system could take up to a ridiculous amount of memory during execution.

Have you thought about each of your students make a few hundred to do their homework?

Good luck!

Doug

Tags: Fireworks

Similar Questions

Maybe you are looking for