Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Additional images: different file format?

Additional images: different file format?

Locked

Views: 1,469

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jun 2006, 5:46 PM
#1
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Additional images: different file format?

Howdy.

Sometimes I would like to have my additional images in a format other than the format for the main product image.

For instance, I show a book cover in .jpg, but I want to show sample pages in .gif (or... PDF would be awesome, but that's an entirely different matter, since that is a page serve, not an image serve.)

Nice clear B&W GIFs of pages look fuzzy as JPGs.

Is there a workaround for this issue?

---Diana

23 Jun 2006, 5:58 PM
#2
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: Additional images: different file format?

It looks like it needs a modification in includes/modules/pages/popup_image_additional/header_php.php

to this line:

  $products_image_extension = substr($products_image, strrpos($products_image, '.'));

but how to handle that nicely...

I only use .jpg and .gif images.

24 Jun 2006, 1:34 AM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Additional images: different file format?

If you have a good graphic editor like PhotoShop you can convert your jpg's to gif and only use gif as your images. This would appear easier than hacking the code to me...but then I am not a coder.

There might also be some freeware or opensource editors gimp is a great one.

27 Jun 2006, 7:55 PM
#4
dbrewster avatar

dbrewster

Zen Follower

Join Date:
Jul 2005
Location:
Charlottesville, VA
Posts:
376
Plugin Contributions:
0

Re: Additional images: different file format?

Well,

Converting a jpeg to a gif can get a very large gif file size. I do use Photoshop.

Anyone else know a code workaround to string together a picture file extension that is independent of the main image file format?

Or: a hack to use either .gif or .jpg extensions?

thanks for any info!