# Exporting to GIF doesn't work

I cannot export a list of images (or a single image) to GIF format. I use Win10 with Mathematica 9.0. It previously worked on an other device with Win7. I can also export an image to other formats, like PNG or JPG.

Export["file.gif",image] produces an output which cannot be opened with anything (Windows Images, Paint, or any browser, ...). Export["file.png",image] works well.

Sorry if it's a common problem, but I haven't found an answer here.

An example code:

image = Plot[x, {x, 0, 1}];
SetDirectory[NotebookDirectory[]];
Export["file1.gif", image]
Export["file2.jpg", image]

• I export to gif all the time, on windows 10. But I use V 12.1. No problems (other than it can slow). Can you post complete MWE where it fails? are you exporting frames of images or single image? – Nasser May 26 '20 at 11:28
• @Nasser I posted an expamle. It is only a single image, but I still cannot open the gif file, while I can the jpg. Is it possible that the problem isn't on Mathetmatica's side? – Tomi27 May 26 '20 at 11:41
• it works OK on my end. exported OK, opened image using paint.exe, all ok. So have no idea why it fails for you. May be problem with V 9. I do not have that on my PC now to try it. – Nasser May 26 '20 at 11:47
• Try wrapping the plot with Image[...] and removing the alpha channel, then exporting it. image = RemoveAlphaChannel[Image[Plot[x, {x, 0, 1}]], White] – flinty May 26 '20 at 13:10
• @flinty I tried your suggestion, but the problem remained the same. – Tomi27 May 26 '20 at 18:59