Re: Hover image alignment
Quote:
Originally Posted by
lat9
@simon1066, are you using any of the URL manglers (e.g. USU or Ceon URI Mappings). There might be a relatively easy to accomplish what you're looking to do if you're not.
Yes @lat9, Ceon URI Mapping
Edit: just reread
Re: Hover image alignment
Quote:
Originally Posted by
simon1066
ZC v1.5.8
The background colour of small images is set, in IH5, by specifying SMALL_IMAGE_BACKGROUND in Admin. I use this feature and it works well for my Product Listing pages but I would like to set a different background colour for those small images that appear on the product_info pages, namely additional images.
How would I go about setting this up for additional images? An acceptable, and possibly easier, alternative would be to set a different background color for ALL images on the product_info page.
Edit: should not have replied to 'Re: Hover image alignment' post
Give the number of additional images I have, it's not a huge issue if this going to prove too onerous. I can edit/prepare the images in advance - just wanted to avoid doing so.
Re: Hover image alignment
Quote:
Originally Posted by
simon1066
Give the number of additional images I have, it's not a huge issue if this going to prove too onerous. I can edit/prepare the images in advance - just wanted to avoid doing so.
You could use a site-specific init_includes module (you'll need to add an auto_loader, too) that loads somewhere around CP 200 that makes the change to $ihConf (it's a global variable) as you'd identified a couple of posts back.
Re: Hover image alignment
load_imageGD() - I wonder if rather than assuming the extension was correct if it would make sense (perhaps optionally) to do a getimagesize.
I see cases where images have a .gif extension but they're actually JPGs.
--> PHP Warning: imagecreatefromgif(): '/home/client/public_html/images/folder/l_699-902-016_2.gif' is not a valid GIF file in /home/client/public_html/includes/classes/bmz_image_handler.class.php on line 939.
Re: Hover image alignment
Quote:
Originally Posted by
swguy
load_imageGD() - I wonder if rather than assuming the extension was correct if it would make sense (perhaps optionally) to do a getimagesize.
I see cases where images have a .gif extension but they're actually JPGs.
--> PHP Warning: imagecreatefromgif(): '/home/client/public_html/images/folder/l_699-902-016_2.gif' is not a valid GIF file in /home/client/public_html/includes/classes/bmz_image_handler.class.php on line 939.
I've seen those logs before, too. Rather than slow the image-processing down for everybody, I've told the site's back-office staff to fix the image.
Re: Hover image alignment
These are drop shipper supplied images; there's really no hope of getting them fixed in this case. That's why I suggested a switchable (disabled by default; optionally enabled) feature to be more robust in the case of invalid images.
Re: Hover image alignment
Quote:
Originally Posted by
swguy
These are drop shipper supplied images; there's really no hope of getting them fixed in this case. That's why I suggested a switchable (disabled by default; optionally enabled) feature to be more robust in the case of invalid images.
I'll entertain a PR for this, but it feels like a one-off type issue.
Is anyone else running into this?
Re: Hover image alignment
I have sent a pr.
If this is good, may be a way to allow WebP images as well.
Re: Hover image alignment
Quote:
Originally Posted by
brittainmark
I have sent a pr.
If this is good, may be a way to allow WebP images as well.
Sounds good; I'll note that I've just discovered (i.e. actually searched the documentation) that PHP does have support for webp images, so that's another possibility that's been requested before.
Re: Hover image alignment
Just sent pr to make work with webp