Alex Rivera | Logout

Detect if .swf has transparent background

Asked 2011-05-13T06:41:42.047
9

Is there a way to do this programmatically in PHP, Python or Java?

Use case:

  • User uploads .swf through an upload form.
  • Detect if it has a transparent background.
  • If it does, change it to something else, e.g. white.
Edit
Report

1 Answer

3

Probably impossible. I suggest a checkbox on the upload form "This flash app looks best with a transparent background".

Here is a flash app that has - a transparent background to start - a slider that lets you adjust the opacity

As you can see it would be impossible to say "transparent" or "opaque"

answered 2011-05-19T18:34:06.233

Your Answer