Closed Thread Icon

Topic awaiting preservation: Export from swf to .bmp with PHP posible? (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22795" title="Pages that link to Topic awaiting preservation: Export from swf to .bmp with PHP posible? (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Export from swf to .bmp with PHP posible? <span class="small">(Page 1 of 1)</span>\

 
harrydesign
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Aug 2004

posted posted 08-03-2004 10:53

Hi there,
having read quite a time in the forums, now I have also a question.

I will have a site with a Flash movie, where you can put togewther your own t-shirt design ( load up own pics, write texts and so forth), but now the problem. From this t-shirt design I have to create a .bmp file or even better a .pcx file, which the website owner can use to print on the t-shirt.

Does this work with PHP - at least the bmp file?
I found nothing useful in the manuals and so on.

Any hints, tutorials , websites?
Thank you in advance

harrydesign

EDDII
Bipolar (III) Inmate

From:
Insane since: May 2004

posted posted 08-05-2004 14:21

i dont know how they did it but i do remmeber a while back with a flash movie they had a button that took a screenshot and automatically trimmed it so that you could save it to your computer, but as i said i have no idea how they did it

hyperbole
Paranoid (IV) Inmate

From: Madison, Indiana, USA
Insane since: Aug 2000

posted posted 08-05-2004 19:51

You should be able to do that using either the GD or GraphicsMagick modules.

<edit>Oops... I meant ImageMagick, but you might want to check out GraphicsMagick as well</edit>


-- not necessarily stoned... just beautiful.


(Edited by hyperbole on 08-05-2004 19:55)

InI
Maniac (V) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 08-06-2004 01:27

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Cameron
Paranoid (IV) Inmate

From: Brisbane
Insane since: Jan 2003

posted posted 08-16-2004 04:08

Using director would be the way to go.

If you can live with using director and the full shockwave plugin then exporting a bitmap file is quite simple. There are several xtras (director plugins) that can do this for you, and with a bit of imaging lingo you could probably do it with some sneaky external cast member work.

On the other hand, If you want a flash only solution for your website then you could use a director projector on the server to handle the conversion for you, but you'll need a windows or mac server to do that as Director can't compile *nix native binaries.

The other solution is, if the designs are all vector illustrations, to use in a platform neutral format (like a DXF or something) and then create an Actionscript DXF loader to construct them in flash and use ImageMagik to do the same when you want to bitmapped version.

Actually, better yet, do some google research into SVG. I'm sure someone has already written an Actionscript SVG reader, and PHP + GD (or ImageMagik or NETPBM) would be able to render SVG's with a little work, and chances are someone's done that already as well. I believe SVG also supports bitmapped images embedded with in, so it's probably the most flexible solution, that si if it provides you with enough artistic freedom and easy of conversion from the illustration applications you're working form.

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 08-19-2004 00:34

You actually want to make bitmap files for printing?? I did not realize anyone still uses the old .bmp and .pcx files. I thought they died long ago... And with this been said i think there is an far more elegant solution for printing the designs made with the flash file. PHP can write .pdf files and .pdf files are very easy to print and to transport.

At my work (a digital printshop) we use a lot .pdf files for error free printing.
So take a look at this site for more info on creating .pdf files from PHP:
http://www.sitepoint.com/article/generate-pdfs-php
also take a look here
http://nl.php.net/manual/en/faq.using.php#faq.using.freepdf
and here
http://nl.php.net/pdf
and here
http://nl.php.net/pdf
good luck

------------------------------
Support Justice for Pat Richard

(Edited by Rinswind 2th on 08-19-2004 00:49)

« BackwardsOnwards »

Show Forum Drop Down Menu