Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Using a gif image for the store logo


Snarg

Recommended Posts

Posted

I have been running an osC 2.2 RC2 store for a few years now. Well, I am biting the bullet and attempting to upgrade to 2.3.3. I see in the admin panel that I can easily upload a store logo. Sweet. Much easier. I do see, however, that it only accepts a .png file.

 

I have been using my current logo for a few years now. Lacking any type of graphics skills, I had a friend make it for me. I have the .gif file that was created, but I do not have any of the original artwork files. It would be an easy task to convert the .gif file to a .png file except for one problem: The .gif has a transparent background.

 

So, I'm stuck with what I have. My question is, is it possible to use a .gif file as a logo? I have searched the forum for quite some time now and have not been able to find an answer. Any help I can get would be greatly appreciated.

Posted

@@Snarg

 

You can quite easily change your current .gif logo to a .png with any graphics editor.

 

 

 

 

Chris

Posted

If I am not mistaken a png would keep the transparent background, so changing the image format should make no difference.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

@@Snarg

 

You can quite easily change your current .gif logo to a .png with any graphics editor.

If I am not mistaken a png would keep the transparent background, so changing the image format should make no difference.

Every time I convert the image, the transparent background turns black.

 

Here, I'll attach the image. Maybe someone has better conversion skills then I do.

post-217159-0-23656800-1358943458_thumb.gif

Posted

The exact reason why osCommerce should not have "loaded" admin functions.

If you want to use anything other than a .png, you have to either;

 

1. know enough to recode the admin function.

or

2. not use the admin function. And instead do it like it used to be directly in the design of the site.

 

Extrapolate this to any "loaded" function and you can see how it easily becomes "use this whether you like it or not", and yet there are misguided <removed> who think that osCommerce should add more of this "make it easy for users" loaded rubbish.

 

In order to use your .gif file without having to amend the admin store_logo functions, you can open /includes/header.php and change store_logo.png to whatever.gif. Obviously this means you cannot use the store_logo admin function until you decide to use a .png file for the logo.

Posted

Every time I convert the image, the transparent background turns black.

 

Here, I'll attach the image. Maybe someone has better conversion skills then I do.

 

Hi,

png image attached.

Regards

John

To improve is to change; to be perfect is to change often.

 

Posted

Using paint dot net I have just opened a gif image with a transparent background and saved it as a png still retaining the transparent background. I was right it does work

 

@@burt

 

Loading oscommerce has nothing to do with this. If other stores can load versions so could oscommerce, and get it working correctly. If it was done properly you could turn function on and off via admin if needed. Add ons would then be correctly coded and work correctly.. I bet you add many functions to every site that you make, thus your own loaded version. If you can doo iyt so could oscommerce. Saying that, you would of course loose a bit of money because you would have less to do for your clients. Its not a coding thing, its a money thing.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

...

Thank you burt. From my experience with 2.2 RC2 I was aware of editing a php file to change the logo. In fact, that was the first place I looked and the first thing I changed. I didn't, however, realize that the header was a fixed height. When I could not see my logo I made the assumption that the .gif file was not working.

 

Anyway, I have changed the height of the header area and now my .gif file works perfectly. Thank you everyone in this thread.

Posted

...

 

I personally never add the type of "loaded" crap you would like to see onto the carts of my clients.

I'm not sure that I can even remember the last time I added someone elses addon into a cart. So you are wayyyy off the mark.

 

In fact, what you appear to want to do is dumb down the average osCommerce user and make them work with what someone else decides is right. What I want to do is empower the average user to learn a bit of html, a bit of php, a bit of css and a bit of SQL, to allow them not to have be bound by what someone else decides is right for them.

Posted

@@Snarg - you are welcome.

 

The "problem" is that the store_logo is not stored anywhere in the database.

 

As it is now, a .png file needs to be uploaded (of any name), it is then saved as store_logo.png - and the rest of the site is then hard-coded around store_logo.png

 

A nice solution would be to chop up the admin code to make it store a reference to the uploaded image in the database. This would then allow us to upload any type of image, jpg, gif png whatever. It would take some coding, and is probably not worth the cost of doing (cost in money, cost in time), as it is so easy to simply change the /includes/header.php file to accomodate a not .png type file.

  • 4 months later...
Posted

@@Snarg - you are welcome.

 

The "problem" is that the store_logo is not stored anywhere in the database.

 

As it is now, a .png file needs to be uploaded (of any name), it is then saved as store_logo.png - and the rest of the site is then hard-coded around store_logo.png

 

A nice solution would be to chop up the admin code to make it store a reference to the uploaded image in the database. This would then allow us to upload any type of image, jpg, gif png whatever. It would take some coding, and is probably not worth the cost of doing (cost in money, cost in time), as it is so easy to simply change the /includes/header.php file to accomodate a not .png type file.

Ican't even upload my company logo as store_logo.png :(

Archived

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

×
×
  • Create New...