I need Mathematica code to reverse the rotation direction and viewpoint of an animated GIF named "wheel." The current rotation is counterclockwise, and I need it to rotate clockwise while being a mirrored image of the original.
I've been working with this code provided by ChatGPT for hours, but I keep encountering errors. I've searched the forum, but I can't find exactly what I'm looking for. I'm attaching the animated GIF and giving you an idea of what I need. Also, it would be helpful to have some parameters in the code for resizing in case the result turns out too large.
Can you help me?
(* Import the animated GIF *)
originalGIF = Import["wheel.gif"];
(* Reverse the frames of the GIF to change the rotation direction *)
reversedFrames = Reverse[ImageData /@ ImageList[originalGIF]];
(* Create a mirrored version of the frames *)
mirroredFrames = ImageReflect[#, Left] & /@ ImageList[originalGIF];
(* Combine the reversed and mirrored frames to create the final GIF *)
finalFrames = Riffle[reversedFrames, mirroredFrames];
(* Export the final GIF with the reversed rotation and mirrored view *)
Export["wheel_reversed.gif", finalFrames]