Hi
This is a general question:
Is there a simple way to get the IH image ?
Asking this, because I doing a autocomplete search box and if possible, it would be best to use already resized images.
I'm following the admin image_handler page, but I guess that's for comparing , etc...
Thanks
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
In this case Store front
thanks
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
That one's easy, then! When you call the zen_image() function and have IH loaded and enabled, that function (in turn) calls the IH function to handle that image. Net/net, that's the way to get a resized/cached version of the image.
Thanks
So I guess the other one it's difficult,... and that's the one I need. I didn't explain myself. The autocomplete is for the store front, but ,(still testing) I'm creating a json file in the admin area, so it's there that I need to get the IH (small) image path.
“Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison
I'm going round and round with this.. Image Handler is catching images, works great.. until you hit Larger Image and Javascript calls the popup..
Popup is blank... If I turn it off.. it's blank now as well.. this was not the case before install..
I'll keep searching for what it is.. but anyone have a suggestion?
Thanks!
Using Responsive Classic
Zen Cart 1.5.5f
Ultimate URLS.. Turned off still same effect
Last edited by brian70809; 17 Nov 2018 at 09:46 PM.
Debug Log for Image handler
extra_functions/functions_bmz_image_handler.php at line number 106
calculate_size(0, 0), getimagesize returned 800 x 708.
resizing is allowed.
get_resized_image(0, 0, , )
calculate_size(750, 550), getimagesize returned 800 x 708.
getCacheName(8292328jpg, .image.621x550.jpg), returning /var/www/vhosts/gulfstatessupply.com/httpdocs/bmz_cache/8/8292328jpg.image.621x550.jpg.
... returning bmz_cache/8/8292328jpg.image.621x550.jpg
I'm guessing that the get_resized_image(0,0, , ) is the problem... looking into it.
Bookmarks