JSFL SpriteSheetExporter exports png's without alpha channel.

Hi,
When I generate spritesheets using the JSFL SpriteSheetExporter it seems the generated png's always come with a solid background. I have found no information in the documentation on how to control this (e.i make the background transparent).
SpriteSheetExporter.format returns  "RGBA8888", so the image appearenly has an alpha channel.
Grateful for any information or ideas to help resolve this issue.
Cheers!

Esdebon,
Thanks for the reply.
No, the movieclip has a transparent background.
Note that this question concerns the JSFL SpriteSheetExporter (scripting). The tutorial you refer to seem to cover the sheet exporter in the Flash IDE.

Similar Messages

  • Export PNG images with alpha channel from flash

    Hi,
    I have this FLA with animation and when played, the animation has alpha channel. I can’t understand why when I look in the library I see the frames without the alpha channel and also when I try to export/extract the image again the image don’t have alpha channel.
    How is it that in flash this image has alpha channel and how to get it out like that into PNG?
    Here is the link to download the FLA:
    http://download759.mediafire.com/nb749r29220g/e0636ab0ru6ouoa/Untitled-1.fla

    "when played, the animation has alpha channel"
    how are you playing the animation? control/enter in Flash, Publishing to a Web page or what?
    How can you tell that the animation has the alpha channel? What exactly are you seeing?
    What is the aniimation? a series of images, one image moving? Are teweens imvolved?
    " when I try to export/extract the image again the image don’t have alpha channel"
    How are you exporting the image? is it a single image? or a series of frames that makes up an animation?
    What was the file format of the original image? you brought that image into Flash and animated it? Now you want to export as a .png with transparency?
    Have you ever tried to export a  simple .png before so that you see and understand the dialog box that pops up during export? are you chosing "24 bit with alpha channel" in the "Colors" choice?
    For those of us who may not want to download your file, please provide a more detailed describtion of everything related to this question.
    Best wishes,
    Adninjastrator

  • Automator or Applescript using png files with alpha channel

    I have hundred of png files with alpha channel.
    I want to suppress alpha channel.
    How can i do it using Automator or Applescript ?
    Thank you very much.

    You can use the free command line image processing tool ImageMagick in your Applescripts or Automator workflows, as well as from a Terminal shell.
    You can download ImageMagick from http://www.imagemagick.org, but Cactuslab has simplified installation by putting together an installer package. It’s available at  http://cactuslab.com/imagemagick/. Download the package and double-click on it. Follow the instructions to install. It will install ImageMagick into /opt/ImageMagick and add it to your $PATH by creating a file in /etc/paths.d/. Restart your computer for the changes to take effect.
    The two ImageMagick commands we’re concerned with are “convert” and “mogrify”. Convert is more efficient for multiple and piped operations on the same image file, and mogrify is more efficient for batch processing. Generally speaking, convert will output a file separate from the input file. Unless a path is specified, mogrify will overwrite the input file with the output file. An important distinction.
    You can perform various operations on the alpha channel using arguments after either the convert or mogrify command. Two of the available arguments are:
    -alpha off - Disables the image's transparency channel. Does not delete or change the existing data, just turns off the use of that data.
    -alpha remove - Composite the image over the background color.
    Also of use are the -flatten and -background options:
    -flatten - overlay all the image layers into a final image and may be used to underlay an opaque color to remove transparency from an image.
    -background - sets the background color.
    Start off using the convert command with a single image to see the effect and adjust to your liking. Once you’ve achieved the desired outcome, then use the mogrify command to batch process the chosen images.
    Before getting into how to use Automator or Applescript in your workflow, use Terminal and the command line to see the effect on a single image. Copy one image to your ~/Desktop. In Terminal change the directory to ~/Desktop by typing the following command and pressing the Enter key:
    cd ~/Desktop
    Then choose the option you are looking for, -alpha remove for instance, type the following command and press the Enter key:
    convert input-photo.png -alpha remove output-photo.png
    You can check the alpha channel (transparency) and background in the Preview app, go View > Show Image Background from the menu bar.
    Once you’re ready to batch proces, place all the photos you want to convert with the same command into one folder. Copy the folder to your ~/Desktop. Let’s assume you’ve labeled the folder “InPhotos”. It’s prudent to manipulate copies in case something goes amiss. In that event you can copy the folder with the originals again and start over. Create a new empty folder on your ~/Desktop and call it “OutPhotos”. Let’s also assume your home directory is called “Me”. The following command will process the photos from the InPhotos folder and put them in the OutPhotos folder:
    mogrify -alpha remove -path /Users/me/Desktop/OutPhotos/ /Users/me/Desktop/InPhotos/*png
    According to Apple Technical Note TN2065:
    "when you use just a command name instead of a complete path, the shell uses a list of directories (known as your PATH) to try and find the complete path to the command. For security and portability reasons, do shell script ignores the configuration files that an interactive shell would read"
    So, you need to use the full path to to ImageMagick commands, unlike in the shell where you can just use the command name.
    To batch process using Automator, use the “Run Shell Script” action (note: retain the single space at the beginning of the last line):
    /opt/ImageMagick/bin/mogrify \
    -alpha remove \
    -path /Users/Me/Desktop/OutPhotos/ \
    /Users/Me/Desktop/InPhotos/*png
    To batch process using Script Editor (Applescript), use the “do shell script” command:
    do shell script "/opt/ImageMagick/bin/mogrify -alpha remove -path /Users/pd/Desktop/OutPhotos/ /Users/pd/Desktop/InPhotos/*png"
    Further info on ImageMagick:
    http://www.imagemagick.org/script/command-line-options.php#alpha
    http://www.imagemagick.org/Usage/masking/#remove
    http://www.imagemagick.org/index.php
    http://www.imagemagick.org/script/command-line-tools.php
    http://www.imagemagick.org/script/command-line-options.php
    Examples:
    The original PNG image:
    -alpha off:
    -alpha remove:
    -background black -flatten:
    -background blue -flatten:
    -channel alpha -evaluate Divide 2:
    -channel alpha -evaluate Divide 2 -background black -flatten:

  • Export for DVD with Animation codec without alphas channels not working?

    I'm using FCP 5 with DVDSP. My FCP projects consist of quicktime movies that are using the Animation compressor (for lossless quality), and the movies contain alpha channels (thus they were rendered at Millions + colors to preserve the alphas).
    This is my problem. I want to now export a quicktime movie to use in DVDSP with animation compression, so it is again lossless quality (obviously to presever the quality through these steps). But I do NOT want to preserve the alpha channels, because what I've learned is that when made into a DVD, the alphas are not preserved and the image looks wrong (as if without the alphas).
    So I basically want to "flatten" the video, if there was some way.
    I would assume the solution would be to, in FCP, export a quicktime at animation compression, but set to Millions for colors, and not Millions + (I was taught that the Millions + will preserve the alpha info).
    Well, what's happening is when I set it to that, it renders, but then I get info on the movie in Quicktime and it says it has Millions + still. And thus, it looks wrong in DVDSP.
    What is going on? Is this a bug in FCP?
    Does anyone have an idea as to how to get around this. The only thing that has worked for me is to export the Quicktime movie with "none" for compression, but that's making the movie SO large that I can't work with it and it doesn't play right when I make the DVD.
    I really appreciate anyones help on the matter. Thanks!
    Brian,.
    Quad-core 2.5 G5   Mac OS X (10.4.6)   30" Apple Cinema Display
    Quad-core 2.5 G5   Mac OS X (10.4.3)   30" Apple Cinema Display

    Thanks for the suggestions. I have not yet tried laying a solid black video track underneath to see what it does, but it seems like a good idea and I'll try it out to see what happens when I get back home.
    I'll try to explain what I mean by the image looking wrong.
    I'm picking up where another left off, so I'm not sure of how he cut the quicktime movie together; all I know is that they used alpha channels in Photoshop and After Effects to make the image looks the way they want it. This is a drawn character laid on a white background with a black frame around the entire image. It looks the way he wants it to in the quicktime movie, and this quicktime movie is 720x480, animation millions colors +, 24fps.
    This movie, along with others of the like, need to be cut together in FCP and then put on a DVD with DVDSP. When I export it and it looks "wrong", what's happening is there is a black block behind the drawn character. The guy that made the movies in AE says that, that is what it looks like when the alpha channel is not working correctly.
    To test things, I've changed the quicktime compression settings in the sequence settings. If I set it to anything that is not animation, I get that black block in the viewer. (Note though, that if I set it to animation, millions + or not +, it shows the alpha correctly both ways).
    In FCP's user manual it says that if you're passing your movie on to a DVD, to use a high or lossless compression to keep the quality up, like animation or PhotoJPEG. For this reason, I haven't wanted to go to DV - especially with this type of image (graphic drawn shapes), it's easy to see a quality difference.
    It really seems like there is a lot of voodoo involved with compression settings. As for now the best "fool-proof" solution I've found is to re-render the movie in After Effects at millions (not+) so that it won't contain the alpha channel info, and FCP seems to like that a lot more.
    I just wish I could get FCP to work with the movies as they were because I'm having to re-edit everything to work with these new movies now.
    Thanks again for the tips and insight.
    Quad-core 2.5 G5 Mac OS X (10.4.3) 30" Apple Cinema Display
    Quad-core 2.5 G5   Mac OS X (10.4.3)   30" Apple Cinema Display

  • No Method of Batch Export for Clips with Alpha Channels?

    Good morning,
    As many a flustered editor has eventually discovered, in order for FCP to export sequences with alpha channels to a 32-bit format, the timeline has to be un-rendered at the time of export, or else the transparent parts will appear black in the outputted file. This sort-of makes sense if you know how FCP and render files work, but in a perfect world I think I'd have designed the export interface a bit differently. Now that I think about it, I'm actually working in an Animation (Millions of Colors +) sequence, so converting transparent areas to black makes no logical sense at all.
    Anyway, I have several sequences that I would like to export as 32-bit TGA QuickTime files, preserving their transparency. If I Export Using Compressor, the process results in pre-rendering of the sequence, turning the transparent areas black. The same problem occurs if I export QuickTime reference movies from FCP and open them directly with Compressor.
    Does anyone know of a way to avoid this silly phenomenon or am I stuck individually exporting each sequence from FCP, one...at.......a................time?
    Thanks,
    Zap

    Thanks, Andy, "Batch Export" eventually did the trick!
    I forgot about that tool because I've never actually had to use it before! After playing around with it for a while, I found that as long as the sequence settings for each sequence in the batch are set to a codec with an activated alpha channel, it works just fine.
    Thanks again,
    Zap

  • On export, strange color bleeding/alpha-channel-ish problem but no alpha . . .

    I'm hoping someone can shed some light on this.  When I tried to export a project from Premiere today, I got some unwanted rainbow colors on the white text.  The video clip was made in After Effects.  I assumed that I must have been caused by an alpha channel (as I think I have seen something similar to this before with alpha screw ups), or some other unusual setting. But codec is straightforward and frequently used (Avid HD). The file from AE looks fine.  It looks fine on the Premiere timeline.  Only the export from Premiere is screwed up.  Every codec I tried - H.264, MP2 . . always the same issue.  The only type that didn't screw it up was DV AVI.  But this is SD resolution is no good for me; it was just a test.  Does anyone have any ideas what may have caused this.

    Still no ideas? 
    I imported another clip, rendered in a different after effects project.  I also copied it into new sequences with new sequence settings.  I'm still getting the same thing!  HELP!

  • Graphics, ImageIO, and 32-bit PNG images with alpha-channels

    I have a series of 32-bit PNG images, all with alpha channels. I'm using ImageIO.read(File) : BufferedImage to read the PNG image into memory.
    When I call graphics.drawImage( image, 0, 0, null ); I see the image drawn, however all semi-transparent pixels have a black background, only 100% transparent pixels in the source image are transparent in the drawn image.
    The Graphics2D instance I'm drawing to is obtained from a BufferStrategy instance (I'm painting onto an AWT Canvas).
    Here's my code:
    Loading the image:
    public static BufferedImage getEntityImage(String nom, String state) {
              if( _entityImages.containsKey(nom) ) return _entityImages.get( nom );
              String path = "Entities\\" + nom + "_" + state + ".png";
              try {
                   BufferedImage image = read( path );
                   if( image != null ) _entityImages.put( nom, image );
                   return image;
              } catch(IOException iex) {
                   iex.printStackTrace();
                   return null;
         private static BufferedImage read(String fileName) throws IOException {
              fileName = Program.contentPath + fileName;
              File file = new File( fileName );
              if( !file.exists() ) return null;
              return ImageIO.read( new File( fileName ) );
         }Using the image:
    Graphics2D g = (Graphics2D)_bs.getDrawGraphics();
    g.setRenderingHint( RenderingHints.KEY_ANTIALIASING , RenderingHints.VALUE_ANTIALIAS_ON);
    public @Override void render(RenderContext r) {
              Point p = r.v.translateWorldPointToViewportPoint( getLoc() );
              int rad = getRadius();
              int x = (int) p.x - (rad / 2);
              int y = (int) p.y - (rad / 2);
              BufferedImage image = Images.getEntityImage( getCls(), "F" );
              r.g.drawImage( image, x, y, null );
         }

    You may want to check on you system and see what ImageReaders are available, it could be ImageIO is just not picking the best one, if not, then you can use getImageReaders to get an iterator of image readers, then choose the more appropriate one.

  • Exporting Targa Sequence and Alpha Channel

    I have a couple of targa sequence containing graphics that I need to export. One has an opaque arrow which rolls out over the film underneath. The second has solid text which will be laid over the arrow as it animates. I have run the image sequences in Quicktime, the arrow sequence comes out as a block of black and the solid text comes out against a black background instead of an alpha channel and I can't seem to manipulate them. I have FCP 6 which i thought had Quick Time Pro to handle alpha channels. What am I doing wrong, can anyone help?

    hi,
    what exactly are you doing?
    why are you exporting from quicktime? why dont you import the image sequence directly into motion/fcp? Not saying you;re wrong, just wondering that 's all.
    Have you got the export settings correct. Not many codecs support alpha channels. Your best bet is Animation set to Millions of colours +. the + is the alpha channel.
    However motion or fcp should be able to read the image files just fine.
    adam

  • Forcing CGImageProviderCopyData() to return RGB image without alpha channel

    I am using CGDataProviderCreateWithData(), CGImageCreateWindoJPEGDataProvider() and CGImageProviderCopyData() to decode a JPEG image using core graphics. However the problem is that CGImageProviderCopyData() is returning RGBA instead of RGB, and I have to manually run across the entire bitmap contents and get rid of the alpha channel, which is time consuming.
    Is there any way I can force CGImageProviderCopyData() to return a RGB image without the alpha channel? Or any other way to decode where I can skip the step of having to manually delete the alpha channel?
    Thanks!

    It would be great if you told us what program you are talking about. And it would be even better if you posted your question in the appropriate product forum, which you may find here:
    http://forums.adobe.com/index.jspa?view=discussions
    This forum is only for discussions on the forums themselves.

  • Export to Quicktime with alpha channel

    I'm trying to export my Keynote project to a Quicktime video with a tranparent background.  I set my slide backgrounds to None. In the export panel I've selected the "User Transparency" option and under Custom settings I've selected Animation with Millions + colors.
    When I export the file it has a white background instead of transparent.
    Has anyone else had any success getting this to work?

    Do not render the contents of the sequence. If you render, the sequence is exported using the render files. With the sequence unrendered export using the Animation codec with colors set to millions+.

  • Text-wrap line art without alpha channel or path

    I have seen a tutorial that uses TIFF format images (B&W line art) around which text-wrap is applied.
    Do all TIFF images have this property, or just those that have been given the right treatment?
    Do any other graphic formats offer this property?
    Anyone knows of a tutorial that thoroughly covers graphic formats, the inherent and acquired properties?

    It's not an image property, and you can apply text wrap to any object in ID, either to the bounding box or the object shape, or to a custom shape that you modify with the pen tool

  • Adding logo with Alpha channel to Quicktime and exporting as .mp4

    I'm adding a PNG file with alpha channel to my existing movie file using "Add to Selection and Scale".
    I then have my movie with the overlayed graphic.
    When I then Export as an mp4, the alpha channel is ignored!
    Any help, anyone?

    Yes it looks perfect in Quicktime.
    But for some reason I can't save it as anything else or even export a still frame without the alpha being ignored and the image going all fuzzy.

  • Bug in fireworks CS4 when exporting 24/32bit png with transparent alpha?

    Hi there,
    I recently upgraded to CS4 from CS3 and am quite disappointed to find that the png export facility for 24 or 32 bit png's is next to useless on my installation of Fireworks (Vista). I have a colleage who has reported the same behanviour on his mac.
    Please see this native fireworks CS4 png file and attempt to export it as 24 or 34 bit png, ensuring the canvas is transparent (it shuold be already)...
    http://www.capitalh.net/demo-bug.png
    Viewing in preview mode in CS3 would show the png with its alpha channel indicated by the chequered transparent pattern. Exporting it as such would produce the desired result > a png with a nice blended alpha channel.
    Viewing in preview mode in CS4 shows a horrible render of the image on a white background. Exporting the image produces the same result. Please see this link for confirmation:
    http://www.capitalh.net/demo-bug-export.png
    Please also see this simpler image, this time using a simple ellipse shape:
    http://www.capitalh.net/demo-bug-export-simpleshape.png
    You'll notice that it is not transparent, and the ellipse has not been anti-aliased.
    Can anyone shed some light on this behaviour?
    Exporting png's as such is something that I do daily at work, and is a basic requirement of an image editting application targetted at web design.
    Am I doing something wrong? I've been using Fireworks since 2003 so I'm inclined to think that I'm not.

    That's a bit, um, oh never mind. Would've been a rubbish joke anyway.
    Aww...pooh. I love "rubbish" jokes!
    If fireworks is unable to export a transparent png at 24bit, then why have the option?
    (granted the option is acutally implied, not given)
    Also, why the horrible rendering on preview and export?
    Transparency for 24-bit isn't an option and isn't implied. Create a FW document with a transparent canvas. Go to File>Image Preview. If you select PNG8 as your export option, then you have drop-downs for No Transparency, Index Transparency, or Alpha Transparency. PNG32 shows the checkerboard where the document is transparent. If you select PNG24, you do not have the transparency options. Transparent areas in your document are set to white, just as they are if you select the JPEG format. Try it.
    I don't know why your rendering is horrible. I'd have to see your image.
    And also, why all this confusion related to Photoshop, seems Adobe really aren't helping the issue:
    http://forums.adobe.com/thread/152434
    Possibly Adobe thought it was less confusing, as they didn't have to go into the math. However, you do see Linda Rathgeber's answer, that the Photoshop convention is...well...misleading? (I'd call it wrong, but that's just me. ) It's just one other issue to bring into alignment as Adobe works to merge the Macromedia offerings into their line.

  • Can't export with alpha channel - Again!!!,

    So, I have an intro that is designed as an overlay of the incoming video. The objects move out the way to reveal the video underneath. BUT, when I export the sequence the resulting movie has black in the background.
    Now, I had this issue several months ago, and after tons of research and trial and error, all of a sudden it worked when I came back to Motion on another project. No explanation. It just worked.
    Usually, I have the background set to Transparent and then export using Lossless and Alpha. Works fine. Well, not today. I've changed every export setting under the sun trying variations of Lossless with Alpha and also tried the Animation codec. No luck.
    So, what is going on? Any thoughts?

    Thanks for your help Patrick. I tell ya, I can't believe what's going on. As I said, this project until today has not caused me any issues what-so-ever. The other six sessions are totally fine. I also created a quick project with the same settings added text - then exported using the same settings I've used before, and it exports with the proper alpha channel.
    Yet, I rebooted the Mac, made sure to delete old versions in the trash can and everything. Still, no alpha.
    To keep moving forward, I literally had to use a color key in FCP to cut out the background color.
    Crazy!

  • Cannot save alpha channel as PNG. need help.

    Hi, I am running PS CS5. I am working on my business logo and love the way it has turned out with a texture I added as a new channel (alpha channel). I am using a transparent background on my image, the only compatible way to save is PNG format.(and this is the only way to go with my website restrictions) So when I go to save as a PNG it isnt saving the new channel I have made. Is there any way around this? Any suggestions would be very helpful. I worked all day on this logo only to find that I cant save it the way I like it. frustrating..................
    Linz

    Ok, maybe this will help matters. In the beginning I did a google search on how to get the "distressed" look on my logo, this is the link I found, I did all that he said and did acquire the look I want, now I am having trouble saving as a PNG. When I choose to save as a PNG the alpha channel does not save (when I open the saved PNG file the alpha channel is unchecked). I dont know a whole lot about PS, I am new and dont understand alot of the lingo that alot of you are using, but maybe if you see the steps I took on this link then possibly someone may be able to help me. Thanks
    http://www.promotinggroup.com/design-tips/distressed-effect-photoshop/

Maybe you are looking for

  • HT1414 after update of ipod touch ,,how could i get my music n videos back

    hii i am using ipod touch of second generration afte update of ipod how  could i get my videos n music back again into my ipod

  • Can i airplay to apple tv3 from my iphone4?

    I am thinking buying an apple tv, but I just wandering if it can airplay from my Iphone4 (seems all the website on apple are using ipad or 4s as airplay example). anyone can help out a little here?

  • Read external xml file

    hi, I want to load (some of the) content of an xml file into an array. (actionscript in FLEX) I found an example at the flex documentation ( over here but when i try this examle: quote: <mx:Script> <![CDATA[ var myXML:XML = new XML(); var XML_URL:Str

  • Ora -04030 in alert_log file

    i am continously getting this error in my alert_log file, pls help me how to solve this error. as i am very new joined the company pls provide me necessay steps to be performed Errors in file c:\oracle\product\10.2.0\admin\oradb\bdump\oradb_j001_2876

  • Moving Folders to the Dock

    Hi. I have a folder on my desktop that I'd like to access from the dock, I want to have the folder in the dock rather than on the desktop to save on real estate. I've tried dragging the folder to the dock, the folder appears there but is still also o