Page 1 of 1

Image Thumbnails & REMOVE_HTML

PostPosted: Mon Nov 10, 2003 3:38 pm
by Vince Salese
Can anyone give me an example of the use of the [-- PRODUCT.Graphic
REMOVE_HTML --]. What I am trying to accomplish is to create a custom
template that would override the existing image properties for to a size of
100x100 for thumbnail display. What gets returned with the REMOVE_HTML is a
partial tag with the HTML "<img" stripped off. Now do I have to parse the
string to get to the img url? Can I override it with a style sheet setting?
I'm just getting real tired of creating thumbnails for everthing. It's
becoming an administrative headache.
If anyone has a different way to do this, I'm open for suggestions.

Any help will be very much appreciated.
Thanks
Vince@ahoycaptain.com

Re: Image Thumbnails & REMOVE_HTML

PostPosted: Mon Nov 10, 2003 10:21 pm
by Guest
Vince Salese wrote:

Can anyone give me an example of the use of the [-- PRODUCT.Graphic
REMOVE_HTML --]. What I am trying to accomplish is to create a custom
template that would override the existing image properties for to a size of
100x100 for thumbnail display. What gets returned with the REMOVE_HTML is a
partial tag with the HTML "<img" stripped off. Now do I have to parse the
string to get to the img url? Can I override it with a style sheet setting?
I'm just getting real tired of creating thumbnails for everthing. It's
becoming an administrative headache.
If anyone has a different way to do this, I'm open for suggestions.

Any help will be very much appreciated.
Thanks
Vince@ahoycaptain.com


This may not answer your question directly but if you just change the

dimension of the image in the html you do your shoppers a dis service
forcing them to download a much larger image than is necessary. If just
the height and width dimension is changed the full image must still be
downloaded and then it is resized by the browser. This may not be much
of a problem if the shopper has a T1 or DSL connection but if they have
a 28.8 or even a 56K dialup line it will take much longer to load the
page and if there are lots of images they may just abort going to the
site itself.

Many graphics programs have some kind of script that will create
thumbnails in a very short amount of time. I know there are freeware
and shareware programs that you can download if you don't have one of
the major applications like Photoshop or Photo Paint.

Currently there is no ShopSite template tag available that will give you
just the image name. If you use the REMOVE_HTML option they you need to
add the starting part of the html for the image tag and you can add
additonal parameter to the end of the tag before you close the image tag.

You could also use some other field in the database to keep a copy of
the image name and then just build the url you need based on the image
name in that field and the height and width parameters you want added to
it.

Jim

Re: Image Thumbnails & REMOVE_HTML

PostPosted: Tue Nov 11, 2003 8:06 am
by Vince Salese
Thanks Jim.
That's a very good point. We'll certainly take that into consideration.
Vince
<jstavast@xmission.com> wrote in message
news:bopnt5$5nj$1@support.shopsite.com...
Vince Salese wrote:

Can anyone give me an example of the use of the [-- PRODUCT.Graphic
REMOVE_HTML --]. What I am trying to accomplish is to create a custom
template that would override the existing image properties for to a size
of
100x100 for thumbnail display. What gets returned with the REMOVE_HTML
is a
partial tag with the HTML "<img" stripped off. Now do I have to parse
the
string to get to the img url? Can I override it with a style sheet
setting?
I'm just getting real tired of creating thumbnails for everthing. It's
becoming an administrative headache.
If anyone has a different way to do this, I'm open for suggestions.

Any help will be very much appreciated.
Thanks
Vince@ahoycaptain.com


This may not answer your question directly but if you just change the
dimension of the image in the html you do your shoppers a dis service
forcing them to download a much larger image than is necessary. If just
the height and width dimension is changed the full image must still be
downloaded and then it is resized by the browser. This may not be much
of a problem if the shopper has a T1 or DSL connection but if they have
a 28.8 or even a 56K dialup line it will take much longer to load the
page and if there are lots of images they may just abort going to the
site itself.

Many graphics programs have some kind of script that will create
thumbnails in a very short amount of time. I know there are freeware
and shareware programs that you can download if you don't have one of
the major applications like Photoshop or Photo Paint.

Currently there is no ShopSite template tag available that will give you
just the image name. If you use the REMOVE_HTML option they you need to
add the starting part of the html for the image tag and you can add
additonal parameter to the end of the tag before you close the image tag.

You could also use some other field in the database to keep a copy of
the image name and then just build the url you need based on the image
name in that field and the height and width parameters you want added to
it.

Jim