Saving mathML rendered to canvas as PNG

My ultimate goal is to save rendered presentation MathML to a .PNG file. Knowing just enough about programming to be dangerous :-) there may be a better way to do this...I am drawing the equation on a canvas element, then trying to save the canvas element as a .PNG. I started with code found here -- https://developer.mozilla.org/en/HTML/Canvas/Drawing_DOM_objects_into_a_canvas...
I am getting "Security error" with no code. Running a local Apache server. Do we think the canvas is dirty, even though, according to the Mozilla doc above, its not supposed to be? Any other way to do this? Thanks in advance...

This forum focuses on end-user support. You can find more web development help on the [http://forums.mozillazine.org/viewforum.php?f=25 mozillaZine Web Development board]. Separate forum, separate registration. Please note the tips in the Sticky Post at the top of the forum before posting.

Similar Messages

  • I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.

    I have used Image Capture to scan images/documents and then saved them as either PDFs or PNG files.  For some reason, just this past week, Image Capture will no longer save the file.  It scans, and the Scan Results window pops up, but it won't save file.
    The file name has no special character in it, just letters and no spaces.
    I have done this in the past and it has worked, but now it will not.
    I have not upgraded any software, that I am aware of.
    After scanning, the Image Capture pops up the Scan Results with the file name in the window, but neither the Scan Results nor the Image Capture window responds to inputs.  The Image Capture window is frozen, with only the "Overview" and "Cancel" buttons active (but non-responsive).
    Is this a software issue or a scanner hardware issue?  I am using a HP Photosmart C6200 series printer/scanner on a network using a Time Capsule airport.
    Thanks.

    I had the same problem.
    Got a 90% fix.  Apparently the Mavericks preferences won't work with Yosemite, so I just deleted the Image Capture preferences.
    Unfortunately, the "Scan to" folder seems to be permanently set to the Pictures folder.
    1.  Quit Image Capture
    2.  Go to Finder > Go > Home, which opens up your home folder (named after your user name)
    3.  Open Library > Preferences > com.apple.ImageCapture.plist - Drag this file to the Trash
    4.  Start "Image Capture", click "Details" and change all your settings as you prefer
    5.  Quit and restart "Image Capture".   Notice it remembers all your settings except "Scan to" folder.  It insists on saving to "Pictures".
    That's as far as I was successful.  I tried changing the "Scan to" folder to "Desktop", but on launch, Image Capture always sets it back to "Pictures".
    This is what I tried:
    6.  Download and install "Pref Setter" from http://www.nightproductions.net/prefsetter.html
    7.  Quit "Image Capture".  Right-click on "com.apple.ImageCapture.plist" and open with Pref Setter.
    8.  Search for "Pictures", which finds "~/Pictures" (the tilde character at the start means your home directory).
    9.  Double-click on "~/Pictures" and change it to the folder you prefer.  I like "~/Desktop"
    10. Choose File > Save then Quit from Pref Setter.  Note that re-opening the plist file still shows "~/Desktop"
    11. Start up "Image Capture" -- on startup, "Image Capture" sets "Scan to" folder to "Pictures"
    I consider this a bug.

  • Pe10: opening a previously saved and rendered project, the work area indicates non-rendered sections

    Pe10: when I open a previously saved and rendered project, the work area indicates a majority of non-rendered sections.
    When I open a previously saved and rendered project, the work area indicates non-rendered sections. My project is approximately 59 minutes and 27 seconds.
    What must be done to have a saved and rendered project, when open again, be rendered?

    TRUE_SEEKER wrote:
    The price tag of $245 for the Prodad's Mercalli  video software is too steep for me right now.
    Corel's Avid VideoStudio Pro X4 Ultimate (what a mouthful) includes Mercalli SE. It was on sale at half-price on Amazon Black Friday and I missed it - mostly because I was trying to find out what the 'SE' part of it meant.
    Annoyingly (very much so) it seems that Mercalli SE is pretty much the whole deal - a YouTube review of the Mercalli feature in VideoStudio by ProDAD (the Mercalli authors) included all the features I would expect to use.
    So it seems that the $80 VideoStudio product includes the $150 Mercalli plug-in. Thus a workflow starting with Mercalli stabilisation in VideoStudio and then switching to PRE is viable. I can't really afford the full price VideoStudio product so I'm hoping for a similar 50% reduction after Christmas.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

  • Smart object in template: saving off each layer as a png.

    I know someone must have asked for this before, however, I'm not sure how to phase it perfectly. I have provided many images to help me convey what I want, and I hope that helps. I make many mockups for smart phones and the like. Most of the time, when I present my work, my employer wants to see it "in the device".
    I have a template of a phone (I grabbed an iphone just for the sake of mockups), and I load all my mockups into the smart object that makes up the phone's screen in the template. However, saving out each mockup can become very time consuming. Is there a script out there what will save out each screen once I have added all my content to the smart object? (In my example, the final result would be 3 pngs of the phone displaying one of the 3 screens)
    Thanks!

    It there is no perspective distortion need like iPhone example a straight on perspective.  That would be a snap to do with a Photo Collage Template PSD and a batch script.  The template  could be as simpla as a background image of your iPhone shot straight on and an alpha channel the maps to the iPhone display. For example BatchOneImageCollage.jsx However that script would save a set of PSD files would contain a background layer. If you want a set of files the template would need two layers a plain white background layer a layer above it a cutout of your iPhone with the screen also cutout an missing., and the mapping alpha channel.  The saved PSD file would the need to be processed with the Image Processor Pro script the save PNG for the PSD and include an action that deletes the background layer or turns off its visibility.
    Photo Collage Toolkit UPDATED Made Rotate for Best Fit an option in PasteImageRoll.jsx Edit to customize your default settings.
    Photoshop scripting is powerful and I believe this package demonstrates this.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Documentation and Examples
           There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Four Rules Templates need to follow:
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    Example:

  • "Error compiling movie. Unknown error" while rendering a .PSD or .PNG

    Hi,
    I have this problem: When I try to make a "Render Selection" or export my video, everything is ok until I reach a .PSD file I've placed almost in the end of the clip.
    The same is for .PNG file, a dialog appears saying "Error compiling movie. Unknown error".
    I've tried to delete the effects, but it's the same. To be more specific, I've applied a simple "Cross Dissolve": Until the transition is working, and the picture is not entirely visible, the rendering works. When the picture is "complete", the render stops and the error appears.
    When I tried to delete the transitions, the error appeared in the beginning of the .PSD picture.
    Any help?
    Thanks

    Are you stills in RGB format? what pixel size are they?

  • Saving webpages as pdf and/or png in a batch manner? w/ Automator perhaps?

    I have some old livejournals that I'd like to archive in some way. A long time ago for one of them, I used Paparazzi to create .png's for every single day's entries. This was slow but it got the job done. For another more recent endeavor with another journal, I was doing the same thing however then I saw the .pdf functionality. I thought, perhaps pdf's would be more useful because they are searchable, although in some ways I like having a plain png as almost a backup to the backup. I realized that I might want to go back to the other journal (which has like 9 years of content) and re-capture it into .pdf and do the same for this newer one... but I will not be taking the time to do this one by one again.
    I tried Automator but Paparazzi apparently doesn't have Universal commands even though it has commands within Automator.
    So I need another solution, with or without Paparazzi, that will allow me to at the least just type in all the urls (which will only be off by a digit or two for dates, thus saving time overall) and then letting it batch capture into a .pdf or .png.

    I appreciate the tip, however it doesn't seem to be efficient. I downloaded and installed it, then I ran this sequence.
    Get Current Webpage from Safari
    Download URLs as PDFs (downloads file as a number for the day)
    Add Text to Finder Items Names (Month- gets added before number)
    Add Text to Finder Items Names (Year- gets added after number)
    So this works... but only once. The program needs to be closed and re-opened as a workflow for it to download a webpage again properly. It'll create just blank white pdf's otherwise. Then if I make it a stand alone application it gives me an error about it not being universal.
    A shame but I appreciated the help.
    Does anyone else have any ideas???

  • Saving Color and Depth data as png to filestream

    I try to save both color and depth data to separate files as PNGs using PngBitmapEncoder but I get much less depth frames saved than color.
    If I save color as Jpeg with JpegBitmapEncoder and depth as PNG using PngBitmapEncoder I get the same amount of frames from both streams.
    Can anyone explain me why?
    private void myKinectSensor_ColorFrameReady(object sender, ColorImageFrameReadyEventArgs e)
    using (ColorImageFrame color = e.OpenColorImageFrame())
    if (color != null)
    colorbits = new byte[color.PixelDataLength];
    color.CopyPixelDataTo(colorbits);
    PngBitmapEncoder enc = new PngBitmapEncoder();
    enc.Frames.Add(BitmapFrame.Create(BitmapSource.Create(color.Width, color.Height, 96, 96, PixelFormats.Bgr32, null, colorbits, color.Width * color.BytesPerPixel)));
    if (StartSavingFrames)
    string temppath = System.IO.Path.Combine(@"../output/kinect1/color/", colorcnt.ToString() + ".jpeg");
    FileStream fs = new FileStream(temppath, FileMode.Create);
    enc.Save(fs);
    fs.Close();
    fs = null;
    colorcnt++;
    else { colorcnt = 0; }
    private void myKinectSensor_DepthFrameReady(object sender, DepthImageFrameReadyEventArgs e)
    using (DepthImageFrame depth = e.OpenDepthImageFrame())
    if (depth != null)
    frame = new short[depth.PixelDataLength];
    depth.CopyPixelDataTo(frame);
    for (int i = 0; i < depth.PixelDataLength; i++)
    frame[i] = (short)(((ushort)frame[i]) >> 3);
    PngBitmapEncoder enc = new PngBitmapEncoder();
    enc.Frames.Add(BitmapFrame.Create(BitmapSource.Create(depth.Width, depth.Height, 96, 96, PixelFormats.Gray16, null, frame, depth.Width * depth.BytesPerPixel)));
    if (StartSavingFrames)
    string temppath = System.IO.Path.Combine(@"../output/kinect1/depth/", cnt.ToString() + ".png");
    FileStream fs = new FileStream(temppath, FileMode.Create);
    enc.Save(fs);
    fs.Close();
    fs = null;
    cnt++;
    else { cnt = 0; }

    performance of the write operations and the operations of the system at the time you are calling them. You need to ensure your functions are returning and releasing(disposing) of the frames faster than the callback times. When you hold onto data to
    long, that just prevents your application from getting new data.
    Have a look at the coordinate mapping sample from the toolkit for a way to copy both the depth and color at the same time. From there you need to create a new thread to save that data since write speeds are very slow.
    Carmine Sirignano - MSFT

  • Does saving video/rendering take 4 hours?

    Hi,
    I just bought myself a brand new computer because I couldn't do anything with Adobe Premiere Elements 12 on my old computer.  Here is what I have on my new computer if this helps.  I am not a technical person so I have no idea anything about anything technical.
    Processor
    4th Generation Intel® Core i7-4500U (1.8 GHz 200 MHz 4MB)
    Operating System
    Windows 8.1 64
    Graphics
    Intel® HD Graphics 4000
    Memory
    4.0GB PC3-12800 DDR3L SDRAM 1600 MHz
    Hard Disk Drive
    Hybrid 500GB 5400RPM + 8GB SSHD
    I am trying to do basic editing.  I have a bunch of little .avi files that I am trying to upload and edit into one long family video.  I've done that, edited out what I want.  Added some text title dates and I am rendering/saving as an MPEG file. 
    It takes 4 hours to render to an MPEG file?  OMG!  And then I wanted to eventually download it to a DVD.   Does it have to the the 4 hours over again?  And it's very slow.  Is it supposed to be so slow?

    descotes
    I am not ready to go the route of "slow computer" yet to explain your 4 hour export time.
    By basic editing, does that include effects additions such as Stabilizer?
    Given you have Premiere Elements 12 on Windows 8.1 64 bit. That gives you a 64 bit application with the resource perks that come with 64 bit application in a 64 bit system. What are the properties of these .avi files that you are importing, and what are you or the project setting for the project preset?
    Are you dealing with DV AVI standard or widescreen and, if so, type 1 or 2? What is the duration of the Timeline content that you are exporting Publish+Share/Computer/MPEG? And, what specific preset are you using? Are you using the default settings for the preset or customizing the preset under the Advanced Button of the preset?
    My first instinct is to suggest 8 GB installed RAM instead of 4 GB, but I would prefer to see the information above first.
    I noted that you said that you were not technically based. But, please try to answer the above as best you can. I will help you find the answers if necessary.
    In all this, I am assuming that you are not multitasking while you are working with Premiere Elements export.
    The export time is going to be influenced by the complexity of the Timeline and the state of the computer environment. Let us see if there is an alternative conclusion other than slow computer for your 4 hour export time when all the facts are in.
    Thanks.
    ATR

  • Saving a Rendered tree as XML file

    I am making a gui mainly based on jtrees. One tree i created adding defaulttreenodes. This I am able to save as XML code and retrieve also.
    Another tree, I made by rendering its node as Jtable. But this tree I am not able to save as XML as the one before.
    It gives Instantiation Exception error. Can anybody say the reason and give an alternative method for saving and retrieiving ?

    Quadruple-posting. If you want to answer lets keep the discussion in this posting:
    [http://forum.java.sun.com/thread.jspa?threadID=5282364]
    If you want help in the future, I suggest you learn how to use the forum properly. That means a single posting. If you make a mistake you can always reply to your posting stating you made a mistake.

  • Saving animated gif error - canvas size too big?

    Hi,
    i have been asked to create an animated gif which has a snow effect in the background. The animation runs pretty well using the pattern style to move the animated snow down. The problem is when I try to export the animation the save for web dialogue window freezes and I can't quit photoshop. I have tried to make the canvas (image size) smaller and it works.
    Is there a memory problem with creating animations in Photoshop if the document size is too big, im running a 3000x1000px at 72dpi
    TThe animation would be used on a web app, which a script could probably do a better job, but I need to try this first.
    thanks
    lister

    Something is very wrong here. The point behind using GIFs is that they are small and OK to put on a Web site.
    First thing: forget all about PPI - this has absolutely no relevance to Web/screen images; it is only used for printing. You need to think about the pixel size.
    So, how big in pixels are your starting images?
    How big do you want the resulting GIF to be? Again, you have to decide in pixels, as the viewing size will depend upon screen resolution of the person looking at it. You can use a notional PPI of 70-100 to guess how big it will be in inches, but that's all it is - a guess.
    Is this getting you going in the right direction?
    I cannot resist commenting that I hate almost all animated GIFs as they reduce Web site usability so much.

  • Need help saving a rendered video in Premiere Elements 13...

    I have a rendered video that I am ready to save to my computer.  The last Premiere Elements program I had was 1.0 lol.  In 1.0, I would select to export the video as .avi and use that to burn to a dvd.  In Premiere Elements 13, "export" is grayed out.  What it looks like I need to do now is Publish the rendered video, but I don't know what to select to save it to my computer for future burning to a Blue Ray Disc.  I plan on using Nero to burn the video to BD.  Any help would be appreciated. 

    AndyD74
    File Menu/Export/Movie is last seen in Premiere Elements 7. Now File Menu/Export/Title remains.
    Your export opportunities for Premiere Elements 13/13.1 are in the Publish+Share area of the program. Have you updated 13 to 13.1 yet using an opened project's Help Menu/Updates? If not, consider doing so.
    What are the properties of your source media on the Timeline that is destined for Nero for your burn to Blu-ray disc format on Blu-ray disc?
    Have you considered taking your Timeline directly to Blu-ray disc format on Blu-ray disc in Premiere Elements 13/13.1 using Publish+Share/Disc/Blu-ray?
    Depending on your reply to the above, you could explore for your file....
    Publish+Share
    Computer
    AVCHD
    with Presets = MP4 - H.264 1920 x 1080p___
    Publish+Share
    Computer
    AVCHD
    with Presets = M2T - H.264 1920 x 1080i or p____
    Please review and consider, and supply more information so that we can fine tune the reply.
    Thank you.
    ATR

  • Saving a droplet won't maintain .PNG format...why??

    I created an action that includes changing the format in the Save for the Web feature to .png. When I run the action independently it works fine and saves the file as a .png, when I run this same action as a Droplet it saves the files as .psd. This has worked in previous versions, but I can't figure out why it does not work now. Perhaps something has changed in the File Naming section?
    This fails to maintain the .png format in both the Mac and PC versions.

    What version of photoshop are you using?
    Can you post a screenshot of the action and settings your using in the create droplet dialog?

  • Issues with FCE4: saving, filters, rendering...

    Hello, all -
    I'm just learning this application, and I can't figure out if I'm doing something wrong or if my software is acting up... but I can't save. "Save" is grayed out, and hitting command-S does nothing. Yet, if I try to quit the application it tells me I have unsaved changes. This is issue #1.
    Issue #2: I can't apply any filters all of a sudden. They won't drag and drop. I have no idea why.
    Issue #3: This is more of a general FCE4 annoyance: why can't I preview my edits without rendering them? Seems really absurd to have to render every time I want to see how my project is coming along. I assume I'm doing something wrong, but for the life of me I can't figure out what.
    Thanks!

    1. Yes
    2. Okay... I'll look into it.
    3. I don't know how to answer either of those questions. I'm pretty much a novice with FCE4. I've used iMovie since it first came out, and the recent (horrible) redesign has forced me into FCE4... so I'm really back to square one.
    I appreciate the help. Thanks.

  • Saving logos as jpg, eps, and png. What mode do I create each in? RGB or CMYK?

    Question... My client has asked for their logo as a JPG, EPS and PNG. They want a file ready to go, so they can fire off logos to whomever for whatever purpose.
    The Pantones are selected. My question, what mode do I create each format (jpg, eps, png) in? CMYK or RGB? Or do I create a CMYK and RGB of each for each format? (The more I know, the less I understand)

    Wow, thanks for your input. I also spoke with a printer with whom I'm working on another job.
    I think I've really over-complicated this, and here's all I really need to send them:
    EPS: Pantone, CMYK, RGB (I have read EPS's are outdated, but she didn't have a problem with it. This way they can take the Pantone colors and try to replicate them as closely as possible)
    JPG: Pantone, CMYK, RGB (per your earlier comments)
    PNG: Pantone, RGB (Web usage)
    PDF/X-4: Printer didn't have strong feelings on this format. She said the EPS would be fine. I'll still send it though.
    Sound good? (I like affirmation)

  • Saving layers directly to .jpg or .png all at once?

    I've been using Photoshop for about a month now, mostly to take apart .gifs and make new ones, and I have a question. Is it possible to make Photoshop just save all the layers that are open into .jpgs or .pngs with out having to view each one and save it manualy? Thanks for the help, and sorry if this is in the wrong section.

    Hi,
    I can't recall which version first had this script, but I think this is what you're asking for. File> Scripts> Export Layers to Files...
    The PNG format was included in CS4, I believe.
    regards,
    steve

Maybe you are looking for