convert data uri to .png or other?

edited December 2007 in Stylish
is this possible to do? if so, how..

Comments

  • Copy the data uri to the address bar and hit enter (I prefer alt-enter to create new tab). Then you just right click and "Save Image as".
  • This has never worked for me. All i get is a cut off string. Try this one:
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAIAAAFlEcHbAAAAB3RJTUUH1gMWFjk7nUWcXQAAAAlw
    SFlzAABOIAAATiABFn2Z3gAAAARnQU1BAACxjwv8YQUAAAAeSURBVHjaY7h79y7DhAkTGIA04/Tp
    0xkYGJ49ewYAgYwLV/R7bDQAAAAASUVORK5CYII=
    Here's my result:
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAIAAAFlEcHbAAAAB3RJTUUH1gMWFjk7nUWcXQAAAAlw
  • thanks valacar, worked fine for my images.
  • If it doesn't work, the data uri probably has spaces or line breaks in it. It has to be one continuous string of characters. I've tried it in Opera, and it works too...so try that if you want.
  • edited December 2007
    if you use windows pspad can join the lines and remove extra spaces (edit>line manipulation)
    image
  • i was also wondering if there's a way to do this via a script, ie feed the uri and get a .png as output, or send the ouput to a viewer. if so, it would be really useful if Stylish had a quick tool to highlight and view a uri in a popup window (rather than loading it into fx imo, for usage with tb etc). in the popup, one could then Save as..

    all those bits get fuzzy after a while..
  • Posted By: alta88i was also wondering if there's a way to do this via a script, ie feed the uri and get a .png as output, or send the ouput to a viewer. if so, it would be really useful if Stylish had a quick tool to highlight and view a uri in a popup window (rather than loading it into fx imo, for usage with tb etc). in the popup, one could then Save as..

    all those bits get fuzzy after a while..
    If the data is used in a content bg/image then you could use Page Info > Media tab
  • edited December 2007
    no i mean in the Stylish editor - i'd like to highlight the data: uri and rt click something like View Data Uri, and have a popup show the image. or, even cooler, be able to hover and have the image appear tooltip like.
  • Posted By: alta88no i mean in the Stylish editor - i'd like to highlight the data: uri and rt click something like View Data Uri, and have a popup show the image. or, even cooler, be able to hover and have the image appear tooltip like.
    Tooltip would slow down the editor dialog, trying to pop up the tooltip every time the cursor grazes such a line accidentally. Annoying.
Sign In or Register to comment.