Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 2 (for ZC v1.3.8 ONLY) Support

Image Handler 2 (for ZC v1.3.8 ONLY) Support

Views: 2,510,647

Results 1,201 to 1,220 of 7,094
19 May 2007, 1:50 PM
#1201
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Image Handler 2 (for ZC v1.3.8 ONLY) Support

cedaranderson:

Hi thanks for your reply, i deleted all images in the medium and large folders but this makes no difference.

I have been uploading an image via add new product in addmin or i have also tried tools>image handler2 add new image. Both produce dead links on the med and large image sizes on the website. when i get properties of the dead link image, it points at http://kivalin.com/shop/images/medium/e68c_1_b_MED.JPG
If zen cart 1.3.7 doesn't use the med and large image folders why is the image link pointing to it? I noticed a couple of others have had this same problem. Any ideas anyone?

Cedar, I think your first problem is that when you deleted all of your images, you didn't clear the bmz_cache, did you? Second, after you leleted all of your images, you FIRST tried to add the images back by adding them to the product, itself....that's a no-no with IH. And, it will point to _MED and _LRG folders, IF you want more than one image per product, because you have to upload a medium and a large image for this to happen.

If you just want one image per product, you need to first, clear IH bmz_cache, found in the IH admin section, then upload one image (it has to be a large image, say 500x500,** WITHOUT** the _LRG) suffix to IH default image field. Then, after that, sizes are controlled by the settings in Admin>configuration>images.

The bottom 2 fields, ARE for the _MED and _LRG images, but that's ONLY if you want more than one image per product.

19 May 2007, 2:28 PM
#1202
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

cedaranderson:

Hi thanks for your reply, i deleted all images in the medium and large folders but this makes no difference.

I have been uploading an image via add new product in addmin or i have also tried tools>image handler2 add new image. Both produce dead links on the med and large image sizes on the website. when i get properties of the dead link image, it points at http://kivalin.com/shop/images/medium/e68c_1_b_MED.JPG
If zen cart 1.3.7 doesn't use the med and large image folders why is the image link pointing to it? I noticed a couple of others have had this same problem. Any ideas anyone?

Ya, listen to get em fast. The issue is you're misunderstanding the way IH2 works. Only only only upload ONE large image. Name it imagename.jpg, with NO suffix whatsoever. Do not upload a medium image, do not upload a small. Go ahead and delete your entire medium and small folders, they are not needed anymore.

19 May 2007, 2:39 PM
#1203
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

jettrue:

Ya, listen to get em fast. The issue is you're misunderstanding the way IH2 works. Only only only upload ONE large image. Name it imagename.jpg, with NO suffix whatsoever. Do not upload a medium image, do not upload a small. Go ahead and delete your entire medium and small folders, they are not needed anymore.

Yea, but if they ever decide to use more than one image, then they WILL need those folders. When you upload any _MED or _LRG images to display a different hover image, and yet another pop-up image, then IH needs to put those images in the Medium and Large folders, to be able to call them. So, I wouldn't delete the folders, just the present images in them.

19 May 2007, 5:11 PM
#1204
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

It pains me to see all this mass confusion and the same questions being posted over and over again. Enough already!!

I wrote this, read it, and then read it again.

Allow me to contribute yet another explanation of the basic concept of WHAT IH2 does in layman's terms.

Yes, the browser can resize an image simply by providing the width and height parameters that you wish to display.

However, if you do it that way, the entire image file still has to make it to the browser, so that the browser can alter the image.

You do realize how large the image files are?

If you have a screen full of thumbnails to display, using this methodology will tax a surfer's patience.

Clearly, the download of large image files to fill a screen of thumbnails is not a good idea.

Another draw back to browser resizing is the plain fact that the browser is not in the business of image editing.

The browser will resize the image without any regard for image quality.
Definitely a bad thing, unless you don't want to the customer to get a good look at what you're selling.

Therefore, it stands to reason that we don't want to rely on the browser to resize our images. Agreed!

The Generic ZenCart Scenario (without IH2)

The generic version of ZenCart provides a facility for us to upload and store PRE-sized images. That is to say, images that we have
sized, in advanced, into thumbnails, medium size, and large size images.

We name these files, so that we can determine which is which, as follows:

  • THUMBNAIL==> imageA.jpg
  • MEDIUM ==> imageA_MED.jpg
  • LARGE ==> imageA_LRG.jpgAnd, so that the system can find them we store them in separate folders as follows:

../ZenCart / IMAGES / imageA.jpg
../ZenCart / IMAGES / MEDIUM / imageA_MED.jpg
../ZenCart / IMAGES / LARGE / imageA_LRG.jpg
When you enter a new product, and you indicate an image file, that image file name is stored in the database as the primary image.
Zencart will look for that image in the main image folder called:
../ZenCart / IMAGES /.

I'm going to be honest, there is no way to make this any clearer.
Having to pre-resize three diferent images and maintain them in three separate folder is a colossal pain the rump.:yuck:

Enter the IH2 contribution to ZenCart courtesy of Tim Kroeger. :clap:

The IH2 ZenCart Scenario

With IH2, the whole idea of you having to PRE-size images has been deprecated, eradicated, erased, removed, and taken away.

Furthermore, the need to store product images in the MEDIUM and LARGE image folders has also been deprecated, eradicated, erased, removed, and taken away.

Read that again.

So what happens?

Using your favorite image editing software in the comfort of your computer, you create a single image of the product. It needs to be the largest size that you want to display on the screen. I chose 300x500 pixels, you can have a bigger size or a smaller a size, it's up to you. But remember the rule, smaller files load faster. It is beyond the scope of this posting, but a good idea to become familiar with image editing pitfalls.

Where do you put the images?

In the main image folder ONLY. Nowhere else, or they won't be found. IH2 is not going to look in the old folders! Put all your images in the main image folder: ../ZenCart / IMAGES / imageA.jpg

IH2 will look at the settings you placed in ADMIN > CONFIGURATION > IMAGES and use those settings to automatically create the other sized images

The very first time an image is required, IH2 will resize your large image into a thumbnail or medium image, and store it in the bmz_cache.

What's the bmz_cache?

I don't know if you noticed, but Tim Kroeger authored the IH2 contribution, and he operates a website called www.breakmyzencart.com.
It's a safe bet to say that bmz stands for "break my zencart".

Nonetheless, it is a cache of sub-folders where IH2 stores the presized images it automatically created the first time, so that it does not have to resize them again.

The image handler always checks the cache prior to resizing the image.

This is important! Try to remember.

Thumbnails and medium sized images are taken from the bmz_cache. So? If you modified the large image in the main image folder or you change the size parameters of the thumbnail and/or medium images, it will have no effect on the images already in the bmz_cache. Because they already exist in the bmz_cache, they will not be recreated. You have to remoooooove them from the bmz_cache to force IH2 to regenerate them.

How do I clear the bmz_cache?

In theory, you should go to ADMIN > TOOLS > IMAGE HANDLER2 and click. There is a link there called "Clear image cache". This link should clear the cache.

I usually use Filezilla to delete all of the subfolders in the bmz_cache. You, of course, can choose for yourself, which approach works best.

Additional Images?

Pay attention, this is not rocket science. We've been using imageA.jpg as an example. Let's say that imageA.jpg is the only image you have for the product, and you want to display additonal images. Great idea!!

Name the additional image imageA_anything.jpg and store it in the same folder with the rest of images. You can replace anything with anything you want.

I promise you, if you do what I just said, ZenCart will correlate all the images that have the same value to the left of the underscore. And, for those of you who don't know it yet, Lightbox will also find these additional images.

You can call them like this example:

  • imageA.jpg
  • imageA_01.jpg
  • imageA_02.jpg
  • imageA_red.jpg
  • imageA_wackadoo.jpgstore them all in the main image folder, and they will all be considered images of the same product. But remember, there is only one main image and that's the one stored inthe database when you created the product in ADMIN > CATEGORIES > PRODUCTS.

Summary
Read this posting more than once. It was meant to be a simple clarification of concept, not a technical thesis on image editing. There is additional doumentation on Tim's website at www.breakmysencart.com/ihdoc.

If you appreciate his efforts, the poor guy's a perpetual student, send him some money before he starves to death. I'm sure he'll appreciate it.

20 May 2007, 12:32 AM
#1205
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Help! Just uploaded the files and now I can't get to the admin login!

Warning: main(/kunden/homepages/22/d180071874/htdocs/bulldogpaintball/includes/extra_configures/bmz_image_handler_conf.php) [function.main]: failed to open stream: No such file or directory in /homepages/22/d180071874/htdocs/bulldogpaintball/admin/includes/extra_configures/bmz_image_handler_conf.php on line 12

Fatal error: main() [function.require]: Failed opening required '/kunden/homepages/22/d180071874/htdocs/bulldogpaintball/includes/extra_configures/bmz_image_handler_conf.php' (include_path='.:/usr/local/lib/php') in /homepages/22/d180071874/htdocs/bulldogpaintball/admin/includes/extra_configures/bmz_image_handler_conf.php on line 12

Can anyone tell me what to do to fix this? Thanks.

20 May 2007, 12:48 AM
#1206
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Also have no product images on my site now at all. Really need some help here. Thanks.

20 May 2007, 1:07 AM
#1207
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

BullDog,

I can get to your frontend, but there's something out of place in the backend.

Double check the admin/configure.php settings to make sure you set the paths correctly.

20 May 2007, 2:05 AM
#1208
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

I can't even get to the admin login page to check anything. The errors I pasted are what I get when I try. What should I do?

20 May 2007, 2:35 AM
#1209
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Checked configure.php and everything looks fine. Everything was working correctly before I tried to install the image handler 2 add on.

I did backup the database before I did all this. Can I just use that now? or did the settings get screwed up in the process? Should I wipe everything, reinstall zencart, image handler and try it again? I don't want to lose all the data that has taken me countless hours to enter.

HELP!

20 May 2007, 2:49 AM
#1210
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Shouldn't be necessary to reinstall ZC. Worse comes to worst, run your most recent backup through phpMyAdmin so your database is restored.> BulldogCocker:

Checked configure.php and everything looks fine. Everything was working correctly before I tried to install the image handler 2 add on.

I did backup the database before I did all this. Can I just use that now? or did the settings get screwed up in the process? Should I wipe everything, reinstall zencart, image handler and try it again? I don't want to lose all the data that has taken me countless hours to enter.

HELP!

20 May 2007, 3:04 AM
#1211
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tvadpro:

Shouldn't be necessary to reinstall ZC. Worse comes to worst, run your most recent backup through phpMyAdmin so your database is restored.

Thanks, so if I do that everything will go back to how it was before I tried to install the image handler...right? Sorry if it sounds like a simple question, but I've got orders to ship on Monday and need to fix this.

Really need to speed up the site as well and the Image Handler was suggested, so ultimately I'd like to get that working.

20 May 2007, 3:12 AM
#1212
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Should work, though it's a bit time-consuming. And looking at the errors you quoted pertaining to bmz_image_handler_conf.php -- I'm not sure the db restoration is even necessary. Are those errors coming up when you try to load /admin/login.php ?

Make sure the file bmz_image_handler_conf.php is in the right place on your server, and that it hasn't been corrupted. If you're using Dreamweaver or certain other file transfer applications, it may be necessary to replace the file, even though it appears to be intact. I've experienced weirder problems! :lookaroun> BulldogCocker:

Thanks, so if I do that everything will go back to how it was before I tried to install the image handler...right? Sorry if it sounds like a simple question, but I've got orders to ship on Monday and need to fix this.

Really need to speed up the site as well and the Image Handler was suggested, so ultimately I'd like to get that working.

20 May 2007, 3:28 AM
#1213
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

tvadpro:

Should work, though it's a bit time-consuming. And looking at the errors you quoted pertaining to bmz_image_handler_conf.php -- I'm not sure the db restoration is even necessary. Are those errors coming up when you try to load /admin/login.php ?

Make sure the file bmz_image_handler_conf.php is in the right place on your server, and that it hasn't been corrupted. If you're using Dreamweaver or certain other file transfer applications, it may be necessary to replace the file, even though it appears to be intact. I've experienced weirder problems! :lookaroun

Yes, those are the errors that come up when I try to load /admin/login.php

I've checked and the bmz_image_handler_conf.php is in the right place. I uploaded that file again just to be sure, but I get the same error. I guess I'll try and restore the database unless anyone else has any ideas. I really wish there had been some better installation instructions.

20 May 2007, 3:28 AM
#1214
tvadpro avatar

tvadpro

Zen Follower

Join Date:
Aug 2005
Location:
Cincinnati
Posts:
323
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

PS -- what's with the /kunden directory? I noticed it precedes the url called in those two functions, but it's not present in the offending file (whose url starts with /homepages/).

If you open that file, at or near line 12 you should see:```php
require_once(DIR_FS_CATALOG . DIR_WS_INCLUDES . 'extra_configures/bmz_image_handler_conf.php');


Perhaps someone who knows more about PHP and the mechanics of this file can shed some light. I'm just a happy idiot who dances on the shoulders of giants.
20 May 2007, 3:59 AM
#1215
buster avatar

buster

New Zenner

Join Date:
Apr 2007
Location:
Charlotte NC
Posts:
28
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Okay I have one for you. I have zencart on a test server and I installed IH on it. IH installed fine and created the 3 sizes, but the pop up only works on zencart classic template and not my custom template. Any suggestions? :frusty:

20 May 2007, 7:07 PM
#1216
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Buster:

Okay I have one for you. I have zencart on a test server and I installed IH on it. IH installed fine and created the 3 sizes, but the pop up only works on zencart classic template and not my custom template. Any suggestions? :frusty:

Buster,
Without having sat next to you when you installed the contribution, it would be irresponsible for anyone to suggest anything based on what you posted here.

But, I will offer this..:bangin:

The IH2 contribution has already proven that it works (no software is ever going to be bug free).
Make certain that you installed all the files where they were supposed to be installed and followed the procedures indicated in the documentation.
If you did that, it would work.

Let us know how it went

20 May 2007, 8:36 PM
#1217
bulldogcocker avatar

bulldogcocker

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Well I had to install zencart again to get everything back to normal. I still don't have image handler installed. Are there better installation instructions anywhere to be found? I followed the documentation exactly, but it didn't work out for me.

Thanks to everyone who helped me.

21 May 2007, 12:52 AM
#1218
cedaranderson avatar

cedaranderson

New Zenner

Join Date:
May 2007
Posts:
4
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Get Em Fast:

Cedar, I think your first problem is that when you deleted all of your images, you didn't clear the bmz_cache, did you? Second, after you leleted all of your images, you FIRST tried to add the images back by adding them to the product, itself....that's a no-no with IH. And, it will point to _MED and _LRG folders, IF you want more than one image per product, because you have to upload a medium and a large image for this to happen.

If you just want one image per product, you need to first, clear IH bmz_cache, found in the IH admin section, then upload one image (it has to be a large image, say 500x500,** WITHOUT** the _LRG) suffix to IH default image field. Then, after that, sizes are controlled by the settings in Admin>configuration>images.

The bottom 2 fields, ARE for the _MED and _LRG images, but that's ONLY if you want more than one image per product.

Hi thanks for your time, i followed your advice but still the same issue. I have tried clearing bmz cache etc.
Here is the detail of how i'm using IH2

After installing IH2, following all install instructions.
i went to zen cart admin tools IH2 admin install.

Then:
-admin>categories/products
-chosse categorie> new product
-Product name: itemtest6
-Filled in info,
-browse for image on my HD (image name: test6.jpg 500 615 px)
-preview
-insert

Now when i view the categorie page http://kivalin.com/shop/index.php?main_page=index&cPath=4
it looks fine, but when i click on the product image it doesn't show on the products page nor does it show when i click "view larger image".

I also tried adding a product with no image then using IH2 admin to add an image. same result.

Am i doing something wrong?

21 May 2007, 4:46 AM
#1219
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

Buster:

Okay I have one for you. I have zencart on a test server and I installed IH on it. IH installed fine and created the 3 sizes, but the pop up only works on zencart classic template and not my custom template. Any suggestions? :frusty:
you need to ad files to your custom template, its in the docs

21 May 2007, 8:01 AM
#1220
scrat avatar

scrat

Zen Follower

Join Date:
Dec 2005
Posts:
451
Plugin Contributions:
0

Re: Image Handler 2 (for ZC v1.3.8 ONLY) Support

BulldogCocker - The best advice I can offer install on your test site first, make sure you are using the correct version of IH with the correct version of ZC.
The instructions are fine:yes: you must have upload a file somewhere incorrectly as the error was not finding a certain file, make sure you are uploading the the correct mode eg Binary. and then go step by step. If this fails just delete the files you have just upload and start again. Just don't panic if things go wrong work backwards.