Message Boards Message Boards

Export doesent work with GIF's

Posted 10 years ago

Hello

I would like to create some GIF-animations. But the export doesnt work with the extention "gif".

SetDirectory[NotebookDirectory[]]

Plot[Sin[x], {x, -[Pi], [Pi]}]

Export["test.gif", %]

I dont get no error-message or so, but the produeced file has a size of 98Bytes and cant be opened with any viewer. I have the same problem also on my laptop with the homuse-license.

My system: mathematica: 10.1, Windows: 8.1

Exporting to other formats works without problems

Does anybody else has this problem too?

POSTED BY: Juerg Baertsch
3 Replies

Sorry, I cannot reproduce that under OS X.

POSTED BY: Marco Thiel
Posted 10 years ago

The directory is not the problem. I have the same problem also when I export to the standard-directory.

POSTED BY: Juerg Baertsch

Hi,

could you try whether the function

NotebookDirectory[]

evaluates correctly, because it does not seem to work in my notebook right now (MMA10.1; OS X 10.10.3); I have reproduced that on several computers and also under 10.0.2. It does work in the documentation though.

If that is the case you might want to export the gif-file into a preset folder to check whether the export works. It does work on my system.

Cheers,

M.

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract