For some people, he/she may already have an animated gif or often called moving gif file that they would like to convert to an animated or moving jpg or jpeg. Unfortunately, Windows does not make it easy to rename the extension of a file. Furthermore, some people do not know how to use the command prompt and/or a batch file. Therefore, I will detail the steps one will need to take.
NOTE: Windows is case insensitive. Therefore NEW.jpg is the same as new.jpg. If you get a duplicate file name exists, or the file cannot be found error, look for new.jpg with uppercase in various places.
- Delete new.jpg from the Desktop if it exists
- Copy the animated gif that you want to make into a jpg to the Desktop and rename it old.gif
- Open up Notepad in Windows
- Type rename old.gif new.jpg
- Change the Save as type: from *.txt to all files
- Save the file as convert.bat on the Desktop
- Double click on convert.bat
- If the renaming is successful, one will see a file called new.jpg.
For those that are too lazy to follow the above steps, there is another option. One can make Windows XP, Vista, or 7 show the hidden extension of a file. This can be found at http://maximumpcguides.com/windows-vista/how-to-change-a-file-extension/
For those that want to go old school, I have the file that one can execute. Just unzip it, and put it on the Desktop. This will rename old.gif to new.jpg. This will also delete new.jpg if it exists, but you will have to approve of it first. AprivatebeachDotComConvert. This file can be opened up in Notepad and reviewed. The complete convert.bat script is shown below.
As mentioned in a previous post, there is no such thing as an animated jpg or jpeg file. All that is being done is the gif file is being renamed. Internet browsers will render any animated jpg or jpeg file as an animated gif file.
convert.bat script
@ ECHO OFF
REM If file exists, delete it. Ask permission first.
IF EXIST “new.jpg”. (
ECHO new.jpg found. Press the Y button then the Enter button to delete new.jpg. N then the Enter will not delete new.jpg.
del /P new.jpg
)
REM Check to see if old.gif can be found.
IF NOT EXIST “old.gif” (
ECHO Please put old.gif on the Desktop.
GOTO END
) ELSE (
REM rename file
rename old.gif new.jpg
)
REM If renaming successful, tell the person.
IF %ERRORLEVEL% LEQ 0 (
ECHO new.jpg created.
)
ECHO Thanks for visiting http://aprivatebeach.com/blog
:END
PAUSE
For those wanting to create an animated jpg or jpeg image, http://aprivatebeach.com/blog/2009/12/create-animated-jpg-jpeg will help.
