Transparent background for Quick Look thumbnail

I am writing a Quick Look plug-in and would like to generate a thumbnail with a transparent background.
If I simply create a graphics context, flush it and exit, I see a solid white square for relevant file icons and Quick Look previews. I can find no way to clear the canvas to transparent - I can paint the contents of my thumbnail onto it just fine, but everything is composited to the white background.
For example, the following implementation(ish) of GenerateThumbnailForURL results in solid white squares for thumbnails:
CGContextRef context = QLThumbnailRequestCreateContext(
thumbnail,
CGSizeMake(512, 512), /* (For example) */
false, /* Changing to 'true' for vector context makes no difference */
NULL
QLThumbnailRequestFlushContext(thumbnail, context);
CFRelease(context);
return noErr;
Various combinations of CGContextClearRect with and without wrapping the call in CGContextBeginTransparencyLayer and CGContextEndTransparencyLayer, or trying to use CGContextFillRect having set a colour which is fully transparent, have all failed. The solid white background just shines through.
Am I going about this the wrong way (e.g. should I instead try to generate an image with a mask and send this to Quick Look with, say, QLThumbnailRequestSetImage ?) or is there some Magic Call that I should be using?
Thanks...

This isn't nearly as intuitive as I think this should be.
You're right, video is really hard.
Looking back over your thread, it's entirely possible the movies have transparency, you're just not looking at it properly, which is, granted, confusing. But alpha channels are not fundamental to video editing, they're special types of clips and you need to learn how to create and use them.
Motion is set by default to render to the Animation codec but may not be set to millions of colors +, the + sign is the alpha.
And, no, sorry, it can't be explained in a simple step-by-step post. There are fifty or a hundred pages on alphas in the Motion documentation. Start with the explanation of the Animation codec.
bogiesan
bogiesan

Similar Messages

  • Want to create an oval vignette in photoshop elements 10 with transparent background for printing w

    I am fairly new to PSE and I want to create an oval vignette in Photoshop Elements 10 with transparent background for printing on white paper using MS Publisher. Using the white background on inverse selection makes a slight line impression and either it should have a defined "frame" or nothing.
    Appreciate any guidance.

    Try with the Elliptical marquee tool:
    On the tool's option bar set feather 25-40 px (experiment)
    Drag out the Ellipse to embrace the object
    Go to Layer>new>layer via copy, or CTRL+J
    Your selection should fade out as a vignette and be surrounded by transparency
    Save this layer via File>save for web, select PNG-24, and tick "Transparency"

  • Default Monitor Setting for Quick Look

    I have a MacBook connected to my 56" television, but I do not use mirroring because the resolution is not correct on the TV when I do that. Everything seems to default to the TV, which has the menu, except for Quick Look. It always pops up on the MacBook monitor no matter what I do. If I move the window to the TV, then it will stay there as long as I don't select another file. Anyone had this sort of problem and found a fix? Maybe a defaults command in terminal?

    Check out the templates (xml files) in C:\Lighthammer\Illuminator\Templates\Defaults.
    However, it is recommended NOT to change the defaults for a number of reasons.
    What is recommended however is to create a "DefaultTheme" under c:\Lighthammer\Illuminator\Templates\<YourCompany>\DefaultTheme.  In this folder create a standard look iGrid, iChart, etc.  Mark them all as read-only on the file system when you are done tweaking them.  Then, when you create a new iGrid, iChart, etc, instead of doing a "New" display template in the Template Editor, click "Load".  Load a template from the Default Theme and "Save As" to where you want it.

  • Transparent background for png sequences

    I have a 30 sec cube rotating with transparent background in After effect cs 5-5.. But I am getting png sequence with Black ground. How to get Transparent background in png sequence ?

    Thank you Barsik.. In after effect cs 4 I was geeting Transparent background for png sequence but in after effect cs 5-5 I was geeting Black Background and this was creating problem in premiere..

  • Transparent background for an accordion in Captivate 6

    How do I remove the background and the shadow from an accordion on interactions? I need a transparent background for an accordion.
    P.S.: I'm not interested in purchasing the version 7, I believe that such a basic thing as this must have been provided for version 6.

    It is not possible, neither in Captivate 7. You take or leave the interactions as they are.

  • Turn off transparent background for reading in Adobe Reader X 10.1

    Up until yesterday, I did not see a transparent background for all things in Adobe Reader X 10.1.  This makes for very annoying reading.  How do I turn off the transparent background?  Any help is greatly appreciated. Thanks!

    If you're talking about the transparency grid, check the following user preference: Edit > Preferences > Page Display > Page Content and Information > Show transparency grid

  • Transparent Background for Icon Titles in panel2

    right now I use XFCE4 and I read this section
    https://wiki.archlinux.org/index.php/Xf … con_Titles
    this way for desktop icons ,but  i want Transparent Background for Icon Titles in panel 2
    my icons in panel 2 has white backkground and border ,I want have only icons without white background and border

    henk wrote:According to this topic it is something that can be
    adjusted within the used theme itself.
    Check your /home/<your username>/.themes/<theme>/gtk-*/gtkrc
    thanks,
    I check above link before ,but that post in xfce formus do not solve my problem,
    Last edited by mfaridi (2013-07-21 10:32:02)

  • Rendering transparent background for website video

    I have a comp for a website that I'm doing.
    I have a transparent background and some fading in WHITE text with a light ray animated behind it.
    I have followed instructions on how to render with the transparency intact (Quicktime, PNG, RGB+Alpha, Millions of Colors+).  When I render it out and watch it in Quicktime, the light ray isn't correct and there's no transparency.  Same thing with Final Cut Pro. 
    When I bring the footage back into AE, the transparency is there so I'm assuming that the transparency is there but QT & FC just don't play transparency files.
    I need the transparency bc I want the text to reveal over a background picture I have in my webpage design.
    Is there anyway to get this done right?  I need the file to NOT be 300+ megabytes and when I drag the clip into COMPRESSOR to make it smaller, nothing is showing on the preview screen.  I've been doing some research but haven't found anything to make it work correctly.
    Can someone help me with this?
    In the end, what I'm attempting to do is add the QT video into my iWeb page and have it play. I'm not a coder so I don't know how to make this happen any other way than making a QT movie and then adding it iWeb.
    thanks in advance.

    The only video format that supports transparency in a web browser is a flash player. That really doesn't fully support transparency either. The QuickTime player or any other video player will never ever support transparency in a web browser. Your project design is flawed from the outset. Another words you cannot do what you are trying to do using QuickTime. You will have to redesign for flash. If you redesign with flash, then you will not have a mobile compatible application.
    I don't have much of an explanation of what you are trying to accomplish with your project so I can't give you more pointers than that. Point us to a website that has the features you are trying to implement on your webpage and maybe we can give you some ideas but After Effects is not where you should be looking.

  • SWF movies Transparent BackGround for TV How?

    I wanna run my SWF ADS Banner for TV with Transparent
    Background, I am unable to do,
    all Banners are runing with default white Background, How I
    gonna solve that problem
    I am using speacial video editing software: via builder ,
    from here I transfer/export/republish the SWF file to file.via,
    than from chracter genrater inscriber hardware that through
    VB made program that display and complile the .via file to run on
    TV screen, but in TV screen I wanna use trasparent BG of SWF,

    You need to use a mask on the banner. This will make the rest
    of the layers under the mask layer transparent.
    So what you need to find is info on masking in flash, if the
    ads move you will need to look for animated masking info.

  • Transparent Backgrounds for Graphics

    Someplace in here a couple months ago one of you brilliant folks mentioned manipulation of images in AppleWorks so as to obtain a transparent (rather than a white) background. I remember testing it in ClarisWorks, and it worked there also, but like a dope I forgot to document the steps.
    Anyone help with that?
    Thanks 0db
    OS10.4.9 / Dual 2ghz G5, 4.5g SDRAM / 1.5ghz G4, 2g SDRAM / SE30, 256k RAM Mac OS X (10.4.9)

    Fortunately. when I write a fairly lengthy response, I try to save it for inspiration in case the need should come up again. Here is mine for this transparency issue in AppleWorks. Note, though, that I've had some problems getting this to consistently work lately & I don't know why. For the last couple of years I've been doing most of my work that requires this kind of stuff in Pages.
    AppleWorks doesn't handle transparency well, even using formats such as .gif or .png saved with transparent backgrounds in another application. However, a few years ago I accidentally discovered that if an object is flipped or rotated in AppleWorks, the background will become transparent. The object doesn't even have to be .gif or .png & have transparency.
    Once I discovered this, I used GraphicConverter to flip an image horizontally & save it as a PICT. Then I insert the object in my AppleWorks document & flip it back. I use PICT because it is the only graphic format that will retain the native resolution. All other graphic formats are changed to 72 dpi by AppleWorks.

  • Transparent background for ViewNavigator?

    Hi
    Does anyone know how you can make a sub-ViewNavigator has a transparent background?
    To clearify:
    I have a main ViewNavigator which holds the whole application and has a background graphic and the main navigation, and a sub-ViewNavigator which contains the sections of the app, such as entering data, displaying the results, etc.
    Can this sub-ViewNavigator have no background so that the background of the master ViewNavigator, I have tried using the same background on the sub-ViewNavigator but when the view changes, it scrolls the background too which looks weird, and they don't match up.
    Many Thanks in advance
    Jonathan

    Looks likeI've solved it.
    Make two skins, the first with the bitmap on in the usual way, the second with a filled background with transparency set to 0.
    Like this:
    <s:Rect top="0" left="0" bottom="0" right="0">
         <s:fill>
              <s:SolidColor color="#000000" alpha="0"/>
         </s:fill>
    </s:Rect>

  • Font Used For Quick Look Plain Text Files?

    Hi,
    Does anyone know what font Leopard uses when you Quick Look a plain text file? It's one that isn't anti-aliased. I can't seem to find it anywhere in my Font Book.

    You could override that with code in userContent.css, either for all websites or for specific websites.
    *http://kb.mozillazine.org/userContent.css
    <pre><nowiki> pre{font-family:monospace!important}
    @-moz-document domain(svn.uni-konstanz.de){
    pre{font-family:monospace!important}
    }</nowiki></pre>

  • How to make a transparent background for logo

    I've tried creating a transparent backgound for a logo in Photoshop CS4 in numerous ways such as saving the file as a png and using the magic wand (text resolution was very poor) but neither worked. My logo has text and an image.
    Any ideas?
    Thanks.

    I saved the file as a png and the background was not transparent--that is, it retained the white background. Please see the attached image for the pgn settings. In additon to a low resolution web version, I need to save a high resolution version for print.

  • Saving image with transparent background for web/Dreamweaver

    How do I save a little image, so that the background stays transparent. I already have the image set up in Photoshop with a transparent background and have saved it as gif and png. When I import it into Dreamweaver the background stays white instead of transparent. What am I not doing right, since I read several posts saying that png and gif are the right formats to save in, if you want a transparent background?
    Thanks for any help with this,
    Anne

    Well now that you have told me to save with some sort of an alpha channel, it works perfectly.
    In CS5:
    Select layer,"Composition,Make movie". Then navigate to "Output module" and choose an option that has "alpha channel" in the title.Choose a name for your project "Output to". I now use "lossless alpha".I don't know if that is the best one, but it seems to be working fine.
    There is no "Quicktime" option in CS5 as in older versions of AE.
    I was trying to save as a video in general or for photoshop and that just wasn't working out well.
    I don't know what the "Frames to Layers import assistant" is that you mentioned though. I still tend to drag and drop, rather then import.
    Thanks for your help.

  • Transparent Background for a Label/Display item

    I'm using Forms 10g.
    I'd like to make the background of my labels (display items) transparent. i.e. it should be the same colour as the canvas (eg teal) instead of the ugly white default background.
    Can anyone help?
    Thanks,
    Abigail
    Edited by: Abigail Parmar on Mar 11, 2009 9:47 AM

    Wait a minute! Abigail is not really asking for "transparent" background. All you need is for the background to have the SAME background color as the canvas.
    All of our forms have that feature. Display-only fields have same background color as the canvas, update items have a white background, and the item where the cursor is located gets set yellow.
    We do it with property classes and visual attributes. The canvas is assigned a Visual Attribute = "WINDOWBACKGROUND", and display-only fields are assigned a Visual Attribute of "DISPLAYITEM". Both visual attributes are assigned the same background color, with the foreground (text) color black and navy respectively.
    We have mouse-click processes that allow the user to change the screen background color from the default to something they might like better. That process just changes the background color of the two visual attributes, and both the canvas and all the items' background colors change together.

Maybe you are looking for

  • My ipod touch will download songs from itunes, but has issues with songs from my CD's.The songs show up on my ipod

    My ipod downloads songs from itunes and plays them just fine. However, when I added my songs from my CD's to it, they downloaded but don't play like they should. They either don't play at all or randomly play in the middle of the song. It has nothing

  • Install boot camp driver on windows

    I am trying to install the boot camp driver on my windows 7, so I put the Mac OSX Snow Leopard into the driver but nothing comes up so I try to open the DVD RW Driver (D:) with the cd on and it says insert a disc and my Mac OSX Snow Leopard cd is rem

  • Changing the tempo of multitrack drums

    Hi guys, I am a Scandinavian songwriter-producer and I'm in the middle of an important project that will be mixed in about a week. We recorded the drums originally at the tempo of 145, but decided to change the tempo to 152 (yeah, it's a drastic chan

  • Change of DTP tech name in transport causes error in Process chain

    Hello people, This message was posted before and I do not think there was an answer.  I hope I have better luck. When we transport DTP and process chain, the DTP tech name is changed in the target system while the DTP specified in the transported pro

  • Locale specific time

    Hi Readers, Pls., helpout ! am trying to get the current date and time depending upon the Locale object. Its known that depeding upon the timezone with particular Locale we can get the specific time particuler that Locale and timezone. I need to prov