Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

gif to jpg


4thdesign

Recommended Posts

I want to change ALL my gif files to jpg files.

 

Rather than going to each .php file and changing it there, is there an easier, quicker and en masse way of doing this?

 

I suspect there isnt.....but thought i better ask before taking the next 3 hours out of my day to change all the images to jpg images.

 

thanks in advance to anyone with a possible solution. :)

Link to comment
Share on other sites

I want to change ALL my gif files to jpg files.

 

Rather than going to each .php file and changing it there, is there an easier, quicker and en masse way of doing this?

 

I suspect there isnt.....but thought i better ask before taking the next 3 hours out of my day to change all the images to jpg images.

 

thanks in advance to anyone with a possible solution. :)

 

ImageMagick is a very powerful set of programs that will allow you to do this very easily, especially with their convert utility. It is command line based, so you could write a very quick script to convert these all for you. You can also have it strip out any meta-data that may be embedded in the image and resize it all at once using the thumbnail option.

 

example:

 

convert -thumbnail 400x400 productpic.gif productpic.jpg

 

Their website: http://www.imagemagick.org/

Link to comment
Share on other sites

I want to change ALL my gif files to jpg files.

 

Rather than going to each .php file and changing it there, is there an easier, quicker and en masse way of doing this?

 

I suspect there isnt.....but thought i better ask before taking the next 3 hours out of my day to change all the images to jpg images.

 

thanks in advance to anyone with a possible solution. :)

 

Be careful when you simply change the file name. If you need to preserve transparency, a jpg will not do it for you, unless you save the file with a matte that matches your background.

 

ImageMagick will convert a file to a gif or jpg (among others) from a bitmap or png, so I am reading. You will still need to change the image calls in your php pages from whatever.gif to whatever.jpg.

 

jon

It's all just ones and zeros....

Link to comment
Share on other sites

Be careful when you simply change the file name. If you need to preserve transparency, a jpg will not do it for you, unless you save the file with a matte that matches your background.

 

ImageMagick will convert a file to a gif or jpg (among others) from a bitmap or png, so I am reading. You will still need to change the image calls in your php pages from whatever.gif to whatever.jpg.

 

jon

 

Good advice, but to make it easier, make sure you use a replace command. Then replace .gif to .jpg I also recommend making a backup of all your files before you do this in case you forgot to replace one of your images.

dragonsbait

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...