Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.jpg image files


ivylane

Recommended Posts

Posted

Are you able to use .jpg image files with OsC? I uploaded one for my logo,.. and it would not show up on the site until I changed the name from logo.jpg to logo.gif.

 

All the images that I have for my products and other logo's are .jpg,.. and that would be a pain to have to rename all of them.

 

Thanks

Posted
Are you able to use .jpg image files with OsC? I uploaded one for my logo,.. and it would not show up on the site until I changed the name from logo.jpg to logo.gif.

 

All the images that I have for my products and other logo's are .jpg,.. and that would be a pain to have to rename all of them.

 

Thanks

 

Yes, it does accept .jps'sfor logos, but are you running on a Linux server?

 

If so, I know what your problem might be.....

 

Did you rename to .gif on the server or locally?

 

I had this problem, but the jpg's were uploading as .JPG (in caps). Linux wouldnt recognise the capitalised file extension, so I had to rename on the server.

Posted

Most images in the default osC are gif's. The header actually has this "hardcoded" into it.

	<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

and that's why it didn't like your .jpg.

 

And Cockeye is right, make sure your extensions match your code. Win, Linex, Unix, doesn't matter. Even if you are currently on one type of server, doesn't mean your hosting company won't decide to change out servers on you. all small letters in filenames and images when possible is the best bet.

Posted
Yes, it does accept .jps'sfor logos, but are you running on a Linux server?

 

If so, I know what your problem might be.....

 

Did you rename to .gif on the server or locally?

 

I had this problem, but the jpg's were uploading as .JPG (in caps). Linux wouldnt recognise the capitalised file extension, so I had to rename on the server.

 

awesome!! Thanks!

Posted
Most images in the default osC are gif's. The header actually has this "hardcoded" into it.
	<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>

and that's why it didn't like your .jpg.

 

And Cockeye is right, make sure your extensions match your code. Win, Linex, Unix, doesn't matter. Even if you are currently on one type of server, doesn't mean your hosting company won't decide to change out servers on you. all small letters in filenames and images when possible is the best bet.

 

thanks for the info!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...