The final internal System`Convert`CommonGraphicsDump`exportImageListToGIF
does not have Options
and outer System`Convert`CommonGraphicsDump`exportImageListToRasterFormat
has but handles other raster formats so it is not desirable to affect them.
What can be done is to re-register gif export. That needs to be done once per session, e.g. in init.m
:
Begin["System`ConvertersDump`"]
ImportExport`RegisterExport[
"GIF",
System`Convert`CommonGraphicsDump`ExportElementsToRasterFormat[
"GIF", ##, "AnimationRepetitions" -> Infinity (*here's the patch*)] &,
"Sources" -> {"Convert`CommonGraphics`"},
"DefaultElement" -> Automatic,
"Options" ->
SortBy[{"AnimationDuration", "AnimationRepetitions", Background,
"Comments", "ControlAppearance", "DisplayDurations", Dithering,
"FrameRate", ImageSize, "Interlaced",
"PreserveManipulateInitialization", "TransparentColor"}, ToString],
"BinaryFormat" -> True
]
End[]
or you'd need to modify $InstallationDirectory\SystemFiles\Formats\GIF\Export.m
but modifying installation dir is not recommended.
myExport
routine that would set the option for me. If you need it every session, you could put the definition ininit.m
. It doesn't seem much different to me thatSetOptions
(if that actually worked). $\endgroup$