Re: Image Handler 2 Support
>Had have trouble with 16bit/32bit png files.
Interesting - but I'm using the samples included with the contrib. Will throw in loads of tracing to see where it is falling over.
K
Re: Image Handler 2 Support
Hi All,
I would like to change the size of my additional images without changing the size of the small images site wide.
In the includes/templates/mytemp/templates/additional_images.php from row 84-95 there is this
PHP Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
$flag_has_large = true;//file_exists($products_image_large);
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
I changed the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT in both locations in this file to HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT.
It works fine but it also breaks IH2 small image handling. They no longer pop up on hover.
I also tried SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2
This works too but once again. . . broken IH2.
How can I do this without breaking the IH2?
Thanks in Advance,
John
Re: Image Handler 2 Support
I have fixed the problem of the broken page in the index now i have got another issue which is the category products do not open in the IH format. There si no resizing.
Please let me know why.
Thank you
Re: Image Handler 2 Support
Please tell me how can i have the IH function work even on the products page under categories.
Please advice. Tophand is actually one of the best people that supports this thread thank you very much for what you do. You deserve all the best from us.
Re: Image Handler 2 Support
Re: Image Handler 2 Support
Re: Image Handler 2 Support
Quote:
Originally Posted by
asiaradiosales
Please tell me how can i have the IH function work even on the products page under categories.
Please advice. Tophand is actually one of the best people that supports this thread thank you very much for what you do. You deserve all the best from us.
Good work! Your site loads a lot faster and looks great with the fixes.
Not sure what your are asking, post a link to the problem page.
But I'm thinking you need to make size adjustment for product listing.
Admin-->Config-->Images
Re: Image Handler 2 Support
Quote:
Originally Posted by
bumba000
Hi All,
I would like to change the size of my additional images without changing the size of the small images site wide.
In the includes/templates/mytemp/templates/additional_images.php from row 84-95 there is this
PHP Code:
for ($i=0, $n=$num_images; $i<$n; $i++) {
$file = $images_array[$i];
$products_image_large = str_replace(DIR_WS_IMAGES, DIR_WS_IMAGES . 'large/', $products_image_directory) . str_replace($products_image_extension, '', $file) . IMAGE_SUFFIX_LARGE . $products_image_extension;
$flag_has_large = true;//file_exists($products_image_large);
$products_image_large = ($flag_has_large ? $products_image_large : $products_image_directory . $file);
$flag_display_large = (IMAGE_ADDITIONAL_DISPLAY_LINK_EVEN_WHEN_NO_LARGE == 'Yes' || $flag_has_large);
$base_image = $products_image_directory . $file;
$thumb_slashes = zen_image($base_image, addslashes($products_name), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
// remove additional single quotes from image attributes (important!)
$thumb_slashes = preg_replace("/([^\\\\])'/", '$1\\\'', $thumb_slashes);
$thumb_regular = zen_image($base_image, $products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);
$large_link = zen_href_link(FILENAME_POPUP_IMAGE_ADDITIONAL, 'pID=' . $_GET['products_id'] . '&pic=' . $i . '&products_image_large_additional=' . $products_image_large);
I changed the SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT in both locations in this file to HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT.
It works fine but it also breaks IH2 small image handling. They no longer pop up on hover.
I also tried SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2
This works too but once again. . . broken IH2.
How can I do this without breaking the IH2?
Thanks in Advance,
John
I'm not a coder.
But might look at how the main image is called on the product info page.
Re: Image Handler 2 Support
Hi friends, :D
Great script, I had it working Ok for a few days, but somehow the images are not bieng zoomed on the main page in the center columns of New, specials, featured products etc. :ohmy:
The zoom is workimg fine in all the scroll side boxes.
It does not work on the category pages, but it does work on the additional images on the product info page.
Just in case it helps, the zoom sign "+" is also not showing, it used to show earlier
I've cleared the cache... and also uploaded all the files again, but no change, please help
Thanks
Re: Image Handler 2 Support
Quote:
Originally Posted by
roshlin
Hi friends, :D
Great script, I had it working Ok for a few days, but somehow the images are not bieng zoomed on the main page in the center columns of New, specials, featured products etc. :ohmy:
The zoom is workimg fine in all the scroll side boxes.
It does not work on the category pages, but it does work on the additional images on the product info page.
Just in case it helps, the zoom sign "+" is also not showing, it used to show earlier
I've cleared the cache... and also uploaded all the files again, but no change, please help
Thanks
If you want that function for those areas then your settings
(Admin-->Config-->Images) need to match for what you for...
Code:
Small Image Width
Small Image Height
Info for this is already posted in this thread.