Zen Cart Logo
Forums / Upgrading to 1.5.x / Not showing .bmp images after upgrade

Not showing .bmp images after upgrade

Views: 998

Results 1 to 4 of 4
12 Jan 2013, 2:41 AM
#1
ikzaghet avatar

ikzaghet

New Zenner

Join Date:
Jan 2013
Location:
Harlingen / The Netherlands
Posts:
8
Plugin Contributions:
0

Not showing .bmp images after upgrade

At first: I know that the use of .jpg images is better, cause they are smaller and that works faster.

The problem. A client of ours has a clothing store.
She used in the past several .bmp images (now she only uses .jpg images fortunatly)
The .bmp images always worked in our previous zen cart version 1.3.9

Now after upgrading to 1.5.1 the .bmp images are not working anymore. They are not showing. They are in the images folder and the links are correct.
What can we do to make those images work again?
Cause it is a huge store and it's almost impossible to find which items have a not working picture and then transform them to .jpg and upload them again.

Hopefully there is anyone who can help us out.

Thnx.

12 Jan 2013, 2:55 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Not showing .bmp images after upgrade

THe smartest fix is to actually go thru everything and put up modern versions of those images.

In the meantime you can add bmp to the list of allowed image types in the /images/.htaccess file.

But you REALLY should completely delete all bmp images altogether.

12 Jan 2013, 3:16 AM
#3
ikzaghet avatar

ikzaghet

New Zenner

Join Date:
Jan 2013
Location:
Harlingen / The Netherlands
Posts:
8
Plugin Contributions:
0

Re: Not showing .bmp images after upgrade

DrByte: Thnx for your help. It worked.
It are just about 20 bmp pictures of the 1500+ articles.
I will detect them and change them asap.

Thnx for your help

12 Jan 2013, 8:50 PM
#4
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Not showing .bmp images after upgrade

IKZAGHET:

DrByte: Thnx for your help. It worked.
It are just about 20 bmp pictures of the 1500+ articles.
I will detect them and change them asap.

Thnx for your help

I KNOW Dr Byte will spank my hand for some what I'm about to post so first some caveats.

BACKUP BACKUP BACKUP BACKUP your database and files.

That said here's how I would approach this..

  1. Using an image editing program, convert all of the BMP files to JPG or PNG files.. KEEP the same BASE file names. (i.e. image.BMP becomes image.PNG) Upload the new image to the same folder where the old BMP image is. Delete the old BMP files.
  2. Then you can manually update the product image in Zen Cart via the product edit function in the admin by typing the image name (case sensitive) in the "Or, select an existing image file from server, filename:" field.

OR

If you are comfortable with doing DB queries/scripts, and you know how you could create a script replace all instances of your image names that contain BMP with JPG (remember this needs to MATCH the case of the filename)..

That said you should NOT ATTEMPT doing this via a DB script unless you REALLY know how to do this.. Do not experiment.. If you REALLY don't know how to do this using a SQL script, then you really should MANUALLY fix the images in the Zen Cart Admin.