Copy/Paste Image from Clipboard - still no support for transparency?

I just tried to load an Image from the Clipboard by using DataFlavor.imageFlavor. Everything works well if the clipboard-image doesn´t use any transparency. When loading an image with alpha-channel (png or gif), the transparency occurs as black pixels. Here is the code snippet:
Clipboard clip = Toolkit.getDefaultToolkit().getSystemClipboard();;
Transferable t = clip.getContents(null);
BufferedImage img = (BufferedImage) t.getTransferData(DataFlavor.imageFlavor);img.getType allways returns TYPE_INT_RGB, even if the image contains alpha-data.
According to this Bug-Report
[http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4720930]
this should have bin fixed in 1.4.2, if i´m not wrong?
Can anyone confirm this problem, and is there any workaround? The one described in the bug-report doesn´t work for me, since clipboard-images in my case don´t match DataFlavor.javaFileListFlavor.

The best is to try it yourself I guess.
Go to Github and try pasting an image into the compose editor.
The editor definitely supports image pastings. They work directly in Chrome(ium).
Thus I am wondering why Firefox does not support direct pasting from clipboard into the editor.
See the attached screenshot regarding the editor I am talking about.

Similar Messages

  • ActionScript 3 paste image from clipboard

    Is it possible to paste image from clipboard using ActionScript 3 and Flash Player 11?
    Need web solution only, not AIR.
    Use case:
    - User opens image some in some native image editor.
    - Selects part of image and clicks Ctrl+C (Command+C on Mac). Now part of image is in clipboard.
    - User open web application that is running in Flash Player
    - User inputs image by clicking Ctrl+V (Command+V on Mac) or using context Menu->Paste.
    I browsed the docs for Clipboard at: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/Clipboard .html
    The only format that seems reasonable would be Clipboard.getData(BITMAP_FORMAT) on paste events. This seems to be supported by AIR only.
    Are there any ways to implement the given use case with Flash Player?
    Thanks!
    P.S.: There is some support of paste events in HTML in Chrome and Firefox, but Internet Explorer 10 and Apple Saffari 6 seems still have issues with pure-HTML approach.
    Cheers,
    Ignat.

    This seems to be supported by AIR only.
    What gives you the impression?
    AIR-only functions are marked with a fancy AIR logo
    (like the first one in this list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/images/sprite-index.png )
    and getData doesn`t have it, so it should work without problems in the "normal" Flash Player if you follow the recepy:
    Note for Flash Player applications: In Flash Player 10, a paste operation from the clipboard first requires a user event (such as a keyboard shortcut for the Paste command or a mouse click on the Paste command in a context menu). Clipboard.getData() will return the contents of the clipboard only if the InteractiveObject has received and is acting on a paste event. Calling Clipboard.getData() under any other circumstances will be unsuccessful.

  • Paste image from clipboard works in Chrome but not in Firefox

    Hi there,
    I would like to know a bit more about the technical reasons why image pasting from clipboard works on Chrome but not Firefox.
    Steps to reproduce:
    1. Open the text editor on github.com, e.g. by commenting on an issue
    2. Copy an image to clipboard
    3. Put the mouse cursor into the text editor area
    4. Use CTRL+V to paste the image into the text editor
    On Chrome, the image is pasted and automatically uploaded on Github. On Firefox nothing happens.
    Can someone please shed light on this lacking feature?
    I would so much love to see support for this on Firefox as it is a very convenient functionality.
    Thank you!

    The best is to try it yourself I guess.
    Go to Github and try pasting an image into the compose editor.
    The editor definitely supports image pastings. They work directly in Chrome(ium).
    Thus I am wondering why Firefox does not support direct pasting from clipboard into the editor.
    See the attached screenshot regarding the editor I am talking about.

  • Can't copy-paste images from Noteshelf in iOS6

    Hi,
    I use an app called Noteshelf (v7.0). In iOS5, I was able to copy-paste pictures from Noteshelf into other apps, such as Keynote (v1.7.1) or in an email. However, since I upgraded to iOS6, this doesn't work anymore. As the versions of Noteshelf and Keynote are the same, the logical conclusion is that something has changed in the copy-paste functionality of iOS6. Can somebody tell me about this and, better still, give me a fix for it?
    Thanks!
    Maarten

    Tell us how you are doing your copy and paste

  • Copy paste image from adobe reader, send a black box to the clipboard

    Hi,
    I'm having issue with some computers.
    When opening a PDF file in the browser only (work in executable adobe reader), I cannot copy/paste an image of the document.
    The target app receive a black box of the size of the picture.
    This is relative to computers, as it's working on some computer (in my case : Intel CPU work, AMD did not, same OS->Win7-64bits).
    I've try do disable hardware acceleration, but this didn't solve the issue.
    Did someone already encouter this issue ?
    Thanks.

    reproduced on 7-32bits
    I've 10.000 customers on this platform, currently on adobe7/8/9, and waiting for this "go" to update.
    Is it possible to have an answer ?
    Thanks.
    For references : HP 6005 Pro
    chipset AMD 785G (Radeon HD 4200)
    drivers updated...

  • Word crash with sharepoint document and copy-pasting image from paint

    Initially I've posted this to another forum but there the rec was to post it here as well.
    I have a very annoying issue occurring in specific circumstances (but unfortunately for me that is my daily work), it happens when a document is stored on a SharePoint server. When I copy-paste an image from ms paint into word, often I get the message 'word
    has encountered an error' but then I can continue, but every 5-10 times Word crashes completely.
    When the error (not the crash) occurs, there is this nothing-saying error message stated below. Think of it.. my ‘floppy disk’ is not full, I have 8 GB of ram and I’ve all the permissions I require. The virus scanner is Symantec Endpoint
    Protection.
    All systems are in a world-wide enterprise environment (>20.000 users) – So I guess from that side everything is configured OK.
    There is a problem saving the file.
    Usually this is because the disk or floppy disk is too small for the file or is full, RAM memory is low, or there is a permission problem with the drive the file is being saved to.
    If the amount of disk space for a paging file is low, save the file to another drive. If the RAM memory is low, increase available RAM. If permissions to the drive do not allow you to save to that drive, save the file to another drive or request
    permissions from the administrator to save files to the drive.
    Note   This error can also occur if the computer is running a version of antivirus software that is incompatible with the Microsoft Office or must be updated.

    Hi,
    What is the version of Word?
    Sometimes the Preview Pane in Windows File Explorer may conflict with Word, thus the error message appears. If you have enabled the Preview Pane in File Explorer, disable it to check the result. For example, in Windows 8.1, Open File Explorer, click
    View tab on the top -> Panes -> Click Preview Pane to enable or disable it.
    If the issue persists, I suggest you collect the event logs to find the cause of the crash:
    Press Win + R, type "eventvwr" in the blank box, press Enter to open Event Viewer. Browse to Windows Logs -> Application, check if there is any error about the crash.
    You can send the event logs to our email address and we can help analyze the problem:
    [email protected]
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Copy/paste images from photoshop to illustrator

    I often edit photos for print publication in photoshop and copy/paste them in to .eps files for resizing and use by our printers.
    I have experienced problems with colours not being accurate/rasterizing after copying and also greyscale becoming lighter/having less contrast.
    Can anyone suggest a solution or send me a link to good web resources explaining why im having these problems?
    Thanks
    Dave

    The graphic is embedded, you loose most all ability to control color. Use file >> place and check the link box to place this as a linked graphic. Then the values you see in phothsop will be the values sent to the output device. Any color management you add on top of this is the only thing that would change the color.
    Also make sure you have file >> document color  mode >> set to CMYK
    With linking your files will be faster and take up less space on disk.

  • Paste image from clipboard into image item in Forms10

    Hi all!
    procedure PASTE_REGION work in Forms6 for image item, but i can't paste in Forms10.
    This function is no longer available?
    Valeriy

    Scripting or coding doesn't work with extending the Silverlight webpart. The source code of the Silverlight webpart isn't available by Microsoft. So you can't modify the code of the Silverlight webpart.
    Also it's not supported by Microsoft to modify the Silverlight webpart and it maybe causes trouble with upcoming updates on the webpart as well.
    "Please don't shoot the messenger ;-)"
    Andreas Baumgarten | H&D International Group

  • How do I copy an image from one Keynote presentation to another one?

    I have a previously saved presentation on Keynote in iCloud. I created it from my desktop at work. Some of the images I used for the presentation I want to use again in another presentation, onlh this time I am working off my laptop and don't have the same access to those images. Is it possible to copy/paste images from one Keynote presentation into another? I can't even seem to click on the image and save it.
    Any suggestions?

    Clicking and dragging does not work.
    Click on the image and Copy and Paste
    or
    Inspector > Metrics > File Info > click on the icon of the file and drag it to your desktop
    You can then drag that file back in wherever you want.
    Peter

  • Copy/Paste images into Contribute CS3

    We have been copying and pasting images from Word Documents
    in Office 2003 into Contribute CS3 at my organization when
    developing content. We have been able to copy/paste images from
    Office 2003 and other programs like Paintshop Pro and SnagIt.
    Since upgrade to Microsoft Office 2007 all image copying and
    pasting has stopped working.
    Is there a known issue with this?
    Does anyone else have Office 2007 installed and is able to
    copy/paste images from a Word Document into a page in Contribute
    CS3?

    It appears that the problem only occurs if you are copy and
    pasting from something that hasn't been saved yet.
    In Word I inserted an image from my hard drive and tried to
    copy/paste it into Contribute and that failed. I then saved the
    Word Document to my hard drive, re-opened it and was able to
    copy/paste fine.
    Power Point, Snagit and Pain Shop Pro appear to have the
    problem even if it's been saved first.
    I was able to copy/paste an image from a Word Doc and
    PowerPoint into MSPaint just fine. I was also able to copy/paste
    between Office applications with out any problem. Snagit could
    copy/paste into Office just fine and MSPaint.
    This problem appears to be specific to Contribute CS3 but
    only from certain sources.

  • Copy & Paste images to forms from the clipboard

    hello,
    Java Plug-in 1.6.0_33
    Using JRE version 1.6.0_33-b05 Java HotSpot(TM) Client VM
    Forms Applet version is 11.1.2.0
    Windows 7 64bitForms has successfully done the drag&drop,save image file images to javabeans then save & retrieve it from database.
    Laf project has an example of table-block copy/paste from/to the clipboard feature. You can populate a table-block with the content of the clipboard (Excel, Word,...) and also send to the clipboard with the content of a table-block.
    But a how about the copy & paste images to forms?
    It is posible?Any one tried this one?
    Charles
    Edited by: ck on Aug 12, 2012 3:09 AM

    bump...

  • Cannot copy and paste images from the web into Corel Draw

    Attempting to copy and paste a jpg image from a client's website, for use in Corel Draw... Copy appears to work fine, and pasting into other programs like Windows Paint works, but paste to CorelDraw has no result.
    I've seen where others would get the text URL but nothing happens when I hit paste.
    Drag and drop imports the text name of the image.

    Since Firefox 13, when you copy an image, Firefox places both the image data (bitmap data) and the URL of the image on the clipboard. I can see why you would get one or the other, but I can't think of why you would get nothing.
    Did this just start in Firefox 22?
    Some odd interactions have been noted between Firefox 22 and ZoneAlarm: when ''copying'' selected text in Firefox, the clipboard may end up blank a significant percentage of the time . But it sounds as though you have a different issue.
    Do you have the same issue in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Copy image from clipboard

    hi
    Is there any way to find out about type of image that you are coping from clipboard. Because i receive only this type image/x-java-image. I need to know if image is jpg or png.

    read the OP, OK then. "image/x-java-image", not application/x-java-file-list.
    the question was "what type of image was
    copied to the clipboard". if it was pixel/raw data
    then whether or not it was jpg or png is what's
    irrelavent. That is what I said in my first post. "image/x-java-image" is what Java return when you copy a Image (print screen, open Paint select, copy etc).
    When you copy a File it returns a List of Files.
    i felt it was obvious that this was a
    file (which is still an image) and not pixel buffer
    data.It sounds to me like the OP has copied an image from an image program (or hit print screen). At which point it is a raw pixel buffer.

  • Why can't I copy an image from photoshop, i can't paste it in anoter computer program ?

    Why can't I copy an image from photoshop, i can't paste it in anoter computer program ?

    Denis Beelog wrote:
    Why can't I copy an image from photoshop, i can't paste it in anoter computer program ?
    Assuming Windows...
    You can, assuming you select around the pixels you want to copy, and the selected region isn't too large.
    There are a variety of ways you can get the copy operation wrong, e.g., by not having the proper layer selected or similar.
    And there's a secret setting to enable Photoshop to export its clipboard no matter how large the selected pixel set is.  Note the setting I have bolded below.  Keep in mind that by making this setting you may be subjecting all the software on your computer that registers to receive clipboard data to datasets that are larger than it might expect.  In other words, there could be a downside.  That being said, I haven't had any problems on my Windows 8 system.
    # Photoshop "special items" user-specific configuration file
    #  Must be named PSUserConfig.txt and be put here:
    #   %USERPROFILE%\AppData\Roaming\Adobe\Adobe Photoshop CC 2014\Adobe Photoshop CC 2014 Settings\PSUserConfig.txt
    #  All possible entries:
    #   AllowAsyncIO
    #   AllowOverScrolling
    #   AllowUserConfigFile
    #   ClipboardMaximumSize
    #   DragBoundingBoxOpacityPercent
    #   EnableGestureRotation
    #   FileStreamDefaultSize
    #   ForceProgress
    #   FullPreviewMaxSize
    #   GPUAllowGLXP64
    #   GPUAllowPBOs
    #   GPUCheckerBoardNodeInBlitPipe
    #   GPUDiableMainWindow
    #   GPUDisallowAdvancedGLRendering
    #   GPUDisallowAppleClientStorage
    #   GPUDisallowCanvasImposters
    #   GPUForceLinearCheckerBoardNodeInBlitPipe
    #   GPUIgnoreMemoryRequirements
    #   GPUShouldNotScootATISelections
    #   GPUUseAceNodeInBlitPipe
    #   GPUUseFloatTextures
    #   GPUUseVBLSync
    #   MemoryAlignment
    #   PDFAllowHugeFiles
    #   PDFPresentationAllowHugeFiles
    #   PreserveEXIFMakerNotes
    #   RecentFilesSlowTimeout
    #   SpringKoadedKeyTime
    #   SyncSmartUploads
    #   TrackPadAllowGestures
    #   UseStagingServer
    #   UseSystemStylus
    #   VMCompressPages
    #   VMDisableBuffering
    #   VMForceBuffering
    # Enable Overscrolling:
    AllowOverScrolling 2
    # Remove the clipboard export size cap
    ClipboardMaximumSize 0
    -Noel

  • I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable?

    I used to be able to copy and paste images from the internet into keynote slides and pages. Now when I copy and paste all I get is an empty  box. My iskysoft iTube studio has also stopped downloading videos. Is there an extension I need to enable? Any ideas

    Try dragging the image to the desktop, then drag the image to the slide you want it on

Maybe you are looking for

  • Can not open iTunes, get error message 126

    Unable to upgrade iTunes to lasted version.  Got error message about a missing file.  Tried to uninstall and reinstalled, after deleting Temp folder from C drive, but still get error message 126.  Can anyone tell me what I need to do?

  • Service PO- Auto Accounting Data Issue.

    Hi, In Service PO, how profit center and network and activity is appearing automatically? I am creating service PO with Acc. ***. Cat - K and Item Category -D.  In service tab  I have chosen the service no.  which has valuation class..example 9001.GL

  • How to have jpegs open in ACR by default?

    Hello I'm using CS5 on a Mac and the latest Adobe Camera Raw.  JPEGS used to open in Camera Raw by default.  Suddenly they don't and I would love to restore that.  Any ideas please!  Thanks!

  • Error : Could not load com.sap.ip.bi.rig.Format in WAD 7

    Hi, Given config to be as below:- ABAP Stack - BI 7 EhP1 SP3 Java Stack - BI 7 SP Level 19 while I try to implement the Format Cell option using Analysis Web Item modification in WAD 7.0, I get the below error Could not load com.sap.ip.bi.rig.Format

  • Why is Weather Channel HD now showing in SD?

    Harford County MD.  Comcast channel 815, Weather Channel HD, has been appearing in SD for several days.  I rebooted, etc., all other channels normal.  Any chance of it being fixed?