+ global.>
processargs(argc, argv);
@@ -637,10 +658,23 @@ int main(int argc, char **argv)
t = MovieAddFrame(&swf, t, image[i].filename, image[i].quality,
image[i].width, image[i].height);
free(image[i].filename);
+ //if set, output a new swf file for each image
+ if(global.one_file_per_image){
+ //generate the correct filename to use
+ char buf[1024];
+ sprintf(buf, global.outfile, i);
+ //call MovieFinish with the generated filename
+ MovieFinish(&swf, t, buf);
+ //re-initialize t by calling MovieStart again
+ t = MovieStart(&swf, global.framerate,
+ global.force_width ? global.force_width : (int)(global.max_image_width*global.scale),
+ global.force_height ? global.force_height : (int)(global.max_image_height*global.scale));
+ }
}
}
- MovieFinish(&swf, t, global.outfile);
+ if(!global.one_file_per_image)
+ MovieFinish(&swf, t, global.outfile);
return 0;
}
On Tue, Apr 28, 2009 at 7:11 AM, Gunivortus Goos
<address@hidden> wrote:
Hello Matthias,
>> To do the work I only can think of adding the jpg files all one by one by hand
>> into an Open Office document, exporting that to PDF and then use the Gui to make
>> that SWF book out of it.
MK> Adding each jpeg by hand seems a bit inefficent to me.
MK> Maybe some image viewer (ACDSee, IfranView etc.) has a
MK> "export to PDF" or at least "print to PDF" option that
MK> can be used on a directory of images?
Hmm.. that doesn't make it easier, 'cause it creates for every picture an own
PDF file.
Got some more tips, but either they didn't what I want or I didn't understand
them. :-)
Maybe there's another way......
When using jpg2swf, is there an option to let it create too output html files?
(As the Gui does).
I didn't find another tool that converts jpg into swf AND gives the needed html
too.
Kind regards,
Gunivortus