Exported PNG files not working after saved to disk

Hello, first of all thanks for the useful tool! I really like it for drawing simple circuits for reports and such. Sorry if this has been asked before, I didn't see a forum search anywhere..

When I export PNG file from the circuit, it shows ok in browser, but when I download it with "Save Image as..." it somehow is saved in an unreadable form.

Is there other workaround or fix than taking screenshots?

by Acce
December 03, 2012

Did you try the Search box at the top of the page?

:)

See:

https://www.circuitlab.com/blog/2012/06/08/publication-quality-schematics-pdf-png-eps/

If you're using IE, then see:

https://www.circuitlab.com/docs/faq/#q_specific_web_browser

by signality
December 03, 2012

Thanks for quick answer!

Yes, I tried the search box at the top, with "export png", but it gave me rather irrelevant looking results some in other language than English.. Maybe I should've looked further.

However, my problem is not that I don't know how to export the schematic in different forms, the problem is that when I'm in the editor, I choose "File->Export PNG". Then, the created PNG file is opened in another browser tab. I then click on that image (which is not in the editor tab) and select "Save image as" which results in unworking PNG file on my file system.

I'm sorry if I was unclear in my first post.

I'm using Firefox, if that matters.

by Acce
December 03, 2012

Which OS?

Which version of FF?

"I then click on that image (which is not in the editor tab) and select "Save image as"..."

You click on the image in FF?

by signality
December 03, 2012

I tried both on Linux and Windows 7, same results.

and yes, I click on the image in FF. version is 16.0.1 on windows, will check the Linux side version later but it should be the latest stable release.

by Acce
December 03, 2012

Well, I don’t like FF any more because of daily “improvements” and version changes.

In Safari it works, on export I get a screen “Desired PNG width? (pixels) and save it.

In FF 15.0.1 it opens the new Tab with the image, go to save as, select destination and I can see a download. The file is about 29kB and it works.

But FF wants me to update to FF 17 - completely useless. I think you have to either downgrade or update (and pray). BTW I’m on a Mac.

Regards, Sancho

by Sancho_P
December 03, 2012

@Acce,

Hmmmm.

Do you have the same problem with the other formats under the File > Export option?

Do you have the same problem with Chrome or Chromium, or rekonq or Opera or ...?

by signality
December 03, 2012

Okay, let's see.. I'm on linux now, FF 17.0, PNG not working, PDF, eps work, vector graphics are shown as part of the page so they can't be saved as image.

I downloaded Opera and it works, with all formats..

Which is kinda funny considering it says in the system requirements that Chrome and FF are supported. So it works better on an officially unsupported browser.

by Acce
December 03, 2012

Again, It’s working in FF 15.0.1 here …

Browsers are moving, not CL.

But OK, I'll update now to FF 17 and report back.

by Sancho_P
December 03, 2012

Hmmm, it still works here in F 17.0.1

I’ve used this simple circuit https://www.circuitlab.com/circuit/pbeq57/test-simply-a-led/

PNG size is about 20 kB. In a text editor the file starts with âPNG.

Not a (OS X) FF 17 problem, sorry …

by Sancho_P
December 03, 2012

I tried with your circuit; still the same result, 1.4 kB png file which is unreadable on FF 17 on linux and win7.

I don't know if it has anything to do with it, but does your address row look like "https://www.circuitlab.com/circuit/pbeq57/render_export/test-simply-a-led.png?k1=13545790683&k2=ccd77f20de142e57007d3c7af64ec17b&png_width=1024&NOTE=Temporary_URL_only._Please_download_and_save_to_your_computer." this?

or just "https://www.circuitlab.com/circuit/pbeq57/render_export/test-simply-a-led.png" this? The latter is what is shown in Opera (which is working) and I was wondering if this difference could give some hint about what is wrong..

by Acce
December 03, 2012

Uuups, I don’t have that

NOTE=Temporary_URL_only._Please_download_and_save_to_your_computer."

In your browser setting, is there any option set to deny memory access to websites? Would you have to acknowledge the download (“General” tab in FF settings)? Here it is set to "show download window" and folder “Downloads”.

by Sancho_P
December 03, 2012

I have the same setting in the "General" tab.

But what do you mean, option set to deny memory access to websites?

by Acce
December 03, 2012

I'm using Chrome and FF 17 on 32bit WinXP Pro, and Chrome. Chromium and rekonq on Kubuntu 12.04 with no problem exporting and reopening saved PNGs.

@Sancho_P said:

"Browsers are moving, not CL."

Yes browsers are a moving target but I suspect that CL shuffles about too; it's just no-one from CL posts anything about it.

Not that I think this is anything to do with @Acce's problem.

A thought.

My Toshiba laptop has Radeon graphics ( :( ). To get the graphics to run properly, I have to use some version of Ubuntu 12.04 LTS because that still gives me the last linux driver for which my graphics chip is supported. That gives me some strange display problems running just the CL editor in Chrome and Chromium but not in rekonq or (I think) FF.

Could this be some sort of graphics card related problem? Or browser/graphics?

by signality
December 04, 2012

“… but I suspect that CL shuffles about too …”

Deep inside Solver maybe. Compared to FF they are already dead, but ‘ll try to keep an eye on it.

Everything is possible, however from the facts we have it seems the browser wants to start, starts already - but can’t continue, thus the file is damaged / empty. This would point to problems within the browser(’s settings) or disk access / permissions, but he can save e.g. PDF so this may be the wrong trace.

However, it works here with FF 17 so the problem very likely is on his side, but on two different machines … that’s strange.

Let’s try again:

Export PNG. First I’m asked PNG width (1024) Takes some time, tab is named “test-simply-… baloon text: (PNG image 1024 x 556 pixels) ---> Save Page As - get the Save As dialog box, I click

Save

---> Bingo, today I got a

(FF) Warning: Unresponsive script

Script: resource:///modules/NetworkPrioritizer.jsm:143

This is absolutely new but a FF crash, I can neither continue nor cancel. FF does not react, I can’t change the tab, the FF menu is partly enabled but does not response. NEVER had that on my Mac before !!!

In OS X’ Activity Monitor FF seems to run, no warning. I take a process sample and force quit FF. (There is no saved file or part of it visible)

Restart FF, try again - it works.

I’d say we have to wait for FF 18 (or for CL to keep up with FF) ?

by Sancho_P
December 04, 2012

Thanks for your responses guys!

The problem is most likely something like what you suggest.

So I guess I will wait for updates and use the screenshot trick for now (or change to chromium).

by Acce
December 09, 2012

I can confirm that I have the same problem as @Acce using FF 17 on Kubuntu 12.04.

by signality
December 09, 2012

Post a Reply

Please sign in or create an account to comment.

Go Ad-Free. Activate your CircuitLab membership. No more ads. Save unlimited circuits. Run unlimited simulations.

About CircuitLab

CircuitLab is an in-browser schematic capture and circuit simulation software tool to help you rapidly design and analyze analog and digital electronics systems.