X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   TelaFirma - X-Cart Dynamic Image Generator (https://forum.x-cart.com/showthread.php?t=17757)

Lionel 02-24-2006 12:18 PM

Now I can join the happy campers!!! That mod is simply gorgeous. I had an issue with images being pale, but Stephen has been very supportive.

Now remain the catalog pages. Unfortunately I cannot generate them at root as the site is bilingual.

Anyway, that mod is a must. Stephen, thanks again for your patience and support.

Megamuch 02-25-2006 09:09 AM

Black images showing up *SOLUTION*
 
For all the people that have black gif's showing up. USE JPG!

GD2 does not have support for gifs. Due to stupid software patents.

So if you have GD2 installed use jpg's or png's for your images. Not gifs.

if you still have GD version 1 installed on your box, you can use gifs. (I recommend GD2 though, the quality of JPG's is much better).

Lionel 02-25-2006 09:13 AM

support for gif was added back as of 7/22/04
they might have to upgrade and make sure that they have version 2.028 or higher.

jsa 02-25-2006 12:58 PM

Re: Black images showing up *SOLUTION*
 
Quote:

Originally Posted by Megamuch
For all the people that have black gif's showing up. USE JPG!

GD2 does not have support for gifs. Due to stupid software patents.

So if you have GD2 installed use jpg's or png's for your images. Not gifs.

if you still have GD version 1 installed on your box, you can use gifs. (I recommend GD2 though, the quality of JPG's is much better).


Thank you, but I can't personally do that, as my shop depends on trasparencies to look right. There's some effects in my template that dynamically change background colors.

My GD 2 actually works fine with GIF.

I need a solution with good image quality and transparency. I tried outputing to PNG in Photoshop, but to my dismay, the image quality isn't nearly as good... you'd think it'd be the same as GIF, but it's not.

Both black background GIFs and inferior looking PNGs are neither a solution.

It's been about 2 months now. If this won't work, then i'm going to forget about it.

That said, this is an excellent solution and mod for those who can use jpgs (which is likely to be the bulk of 'em)

Megamuch 02-26-2006 09:21 AM

Quote:

Originally Posted by Lionel
support for gif was added back as of 7/22/04
they might have to upgrade and make sure that they have version 2.028 or higher.


Wel waddayaknow... Never knew that :)

I'll have a look at the image.php file too see what's going on with the GIF files.

Shouldn't be that hard to figure out. I'll report back with some info if I can find something that needs to be changed.

Lucent88 03-06-2006 07:18 AM

I bought the mod a month ago, it works great and everything, and it sure makes the site load much faster.

The only thing is, how can I make product that only has thumbnail image show a little auto-generated thumbnail on the product detail page, too?

As you know, if there are detail images, then on product detail page it will generate all the little thumbnail for both xcart thumbnail image and the detial images. When there is no detail images, it doesn't generate little thumbnail for the xcart thumbnail image.

TJ Stephens 03-08-2006 12:36 AM

Did anyone else lose their Alt tags on their images after installing this mod? When I view my source the alt tags are missing. For example, when I view source on my product page it shows the image src as follows:

Code:

[img]files/cache/9773b5481669712c6cb5f3ae3dbd3089.jpg[/img]

The slash right before the closing bracket is confusing to me. I'm not sure if it's from this mod or something else I did but my alt tags are gone and this slash is here instead. Would any other users of this mod please check to see if it is the same for you?

Thanks,
T.J.

TelaFirma 03-08-2006 04:21 AM

Quote:

Originally Posted by TJ Stephens
Did anyone else lose their Alt tags on their images after installing this mod? When I view my source the alt tags are missing. For example, when I view source on my product page it shows the image src as follows:

Code:

[img]files/cache/9773b5481669712c6cb5f3ae3dbd3089.jpg[/img]

The slash right before the closing bracket is confusing to me. I'm not sure if it's from this mod or something else I did but my alt tags are gone and this slash is here instead. Would any other users of this mod please check to see if it is the same for you?

Thanks,
T.J.


The slash before the closing bracket is XHTML standard. The image mod is outputing this code. XHTML specifies that Б─°emptyБ─² tags such as
and <img> must close themselves by including a forward slash /> at the very end of the tag.

For the alt text for the iamge, make sure that the code that you inserted for the thumbnail looks like this:

Code:

{include file="product_thumbnail.tpl" productid=$product.productid image_x=$config.Appearance.product_image_width product=$product.product tmbn_url=$product.tmbn_url id="product_thumbnail" class="NoBorder" alt=$product.product|escape}

Also, make sure that the code in the thumbnail.tpl file looks like this:

Code:

{thumb file="$tfile" width="`$image_x`" sharpen=$sharpen html="class=\"`$class`\" alt=\"`$alt`\""}

The biggest thing that you need to look at the the above code is the section that reads html="class=\"`$class`\" alt=\"`$alt`\""

TJ Stephens 03-08-2006 09:16 AM

TelaFirma,

Thanks. That fixed it. The distribution package that I got from when I purchased this a while ago did not have the alt section included. I'm sure you've updated by now. It also does not have the "sharpen=$sharpen" that is referenced. Is this a new feature of your mod or something custom that you did? If it is a new feature, how do I get my hands on the revised code?

Thanks again.

T.J.

TelaFirma 03-08-2006 10:51 AM

sharpen=$sharpen was added to allow me to easily turn off the unsharp mask on a few systems that had limited memory allocated to run PHP scripts. The unsharp mask uses quite a bit of memory when working with the large popup images and there were a few instances on sites that were on a shared hosting server where PHP execution memory was set very low.


All times are GMT -8. The time now is 10:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.