Here a two ways to save all your notebook graphics to PNG files :
1. Web page with PNG Graphics
This is the quick and indirect way to do that and is actually what you tried. But as you said, by default the exported graphics in the folders are in the GIF format. To Export
a notebook to a web page with all the graphics in PNG, this seems to work:
Export["test.html", EvaluationNotebook[], "GraphicsOutput" -> "PNG"]
You have to type the command directly in the notebook containing the pictures (for example at the end of it).
Or if you prefer to run the command from another notebook:
nb = NotebookOpen["your_notebook_file_path"];
Export["test.html", nb, "GraphicsOutput" -> "PNG"]
NotebookClose[nb];
2. Programmatically Export
only the graphics
Though I am not really familiar with low level notebook programming, here is some more direct approach I've succeeded to get. It allows to search for all the (2D) graphics in a given notebook and export them to whatever format.
First, as previously, choose the notebook you want:
nb = NotebookOpen["your_notebook_file_path", Visible -> True];
or we can here instead use this demo notebook (from the documentation):
nb = CreateWindow[
DocumentNotebook[{CellGroup[{TextCell["Text Group", "Section"],
TextCell["Mary had a little lamb.", "Text"],
TextCell["Its fleece was white as snow.", "Text"]}],
CellGroup[{TextCell["Graphics Group", "Section"],
ExpressionCell[ Plot[Exp[-x^2], {x, -3, 3}], "Output"],
ExpressionCell[ Plot[-x^2, {x, -3, 3}], "Output"]}]}]];
and then run:
SelectionMove[nb, Before, Notebook]; SelectionMove[nb, Next, Cell];
i = 0;
While[(nr = NotebookRead[nb]) =!= {},
If[MatchQ[nr, Cell[BoxData[GraphicsBox[__]], __]],
i++; Export["test_" <> ToString[i] <> ".png", nr]; Print[i]];
SelectionMove[nb, Next, Cell]]
NotebookClose[nb];
which will print the number of exported graphics as it runs. In your case (1000 graphics) that might be useful to monitor the process. It is easy to adapt the code anyway, in particular to modify the file names (here "test_") and the format of exported graphics (here ".png"). That's it.
Remark:
For those which are more familiar with low level notebook programming, i've not been able to use the command SelectionMove[notebook, Next, Graphics]
to select iteratively the graphics ... If someone could explain how it exactly works ?