Zen Cart Logo
Forums / All Other Contributions/Addons / Image Handler 3 Support Thread (for ZC v1.3.9)

Image Handler 3 Support Thread (for ZC v1.3.9)

Views: 180,283

Results 501 to 520 of 1,099
23 Sep 2011, 5:34 PM
#501
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Image Handler 3 Support Thread (for ZC v1.3.9)

yup ive done that too, short of replacing the files from the zip though, i will do that and keep watching and post back next time it happens, just to see if there is a pattern, thanks for your time :)

23 Sep 2011, 5:46 PM
#502
jeffsuwanee avatar

jeffsuwanee

New Zenner

Join Date:
Sep 2011
Posts:
21
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Installation confusion: IH3 using ZC 1.3.9h

I have followed the renaming of folders and such in the installation folders within the download of IH3. I don't mean to sound stupid, but the next bit of instructions asks me to place the contents of (1 Install Files and 2 Required Core Edits) into my store. I dont have a folder location by way of FTP called "my store". Where exactly do the contents of these two folders go in the hierarchy of my zencart folder on the server?

I already have folder names which are the same as I'm copying over from these two folders, I want to make sure I'm putting them in the right place and not over-writing a folder by accident.

Thanks in advance, and please excuse my stupidy, I'm only a few days into using Zencart.

23 Sep 2011, 9:05 PM
#503
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

jeffsuwanee:

Installation confusion: IH3 using ZC 1.3.9h

I have followed the renaming of folders and such in the installation folders within the download of IH3. I don't mean to sound stupid, but the next bit of instructions asks me to place the contents of (1 Install Files and 2 Required Core Edits) into my store. I dont have a folder location by way of FTP called "my store". Where exactly do the contents of these two folders go in the hierarchy of my zencart folder on the server?

I already have folder names which are the same as I'm copying over from these two folders, I want to make sure I'm putting them in the right place and not over-writing a folder by accident.

Thanks in advance, and please excuse my stupidy, I'm only a few days into using Zencart.

Jeff the "my store" folder is where ever you have installed zencart, some people install zencart into a subdirectory called shop or store or or catalogue or shoppe, while others install into the root of their site, evry install can be different. the "my store" is just a placeholder to tell people to put the contents of that folder into the same place as their store.

For instance if you had installed zencart into a subdirectory such as store

example.com/store/

you would place the contents of the "mystore" folder into the store folder

if you had installed zencart into the root of your site

example.com/

you would place the contents of the "mystore" folder into the root folder

23 Sep 2011, 9:07 PM
#504
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

bonnit:

yup ive done that too, short of replacing the files from the zip though, i will do that and keep watching and post back next time it happens, just to see if there is a pattern, thanks for your time :)

The front end will work whether or not IH is installed, next time it is uninstalled, check that the front end is actually serving the files from the bmz_cache rather than from images

edit-----------------------------------------

One other thing
livvylou.co.uk/index.php?main_page=index&cPath=88_119
the images on the page are around 100kb each, giving a total of 3mb for the images on the page alone, the image sizes seem awfully large for small images

23 Sep 2011, 9:12 PM
#505
jeffsuwanee avatar

jeffsuwanee

New Zenner

Join Date:
Sep 2011
Posts:
21
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Well, no luck. I cannot install the IH folder contents in my store..which is called https://www.mydomain.com/zencart because the folders that it wants to put there, already exist.

What I did do was put the contents of each of the folder from IH into each of the corresponding folders on my server in the store"Zencart". After installing each of the files and folders, I did have a "ImageHandler3" at the bottom of the tools pulldown, I hit the install link for IH3 and then when I went to use IH , I dropped down to tools>ImageHandler3 and was presented with a blank screen, so I'm definitely not doing something right here.

23 Sep 2011, 9:31 PM
#506
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

jeffsuwanee:

Well, no luck. I cannot install the IH folder contents in my store..which is called https://www.mydomain.com/zencart because the folders that it wants to put there, already exist.

What I did do was put the contents of each of the folder from IH into each of the corresponding folders on my server in the store"Zencart". After installing each of the files and folders, I did have a "ImageHandler3" at the bottom of the tools pulldown, I hit the install link for IH3 and then when I went to use IH , I dropped down to tools>ImageHandler3 and was presented with a blank screen, so I'm definitely not doing something right here.

  1. yes the folders will already exist, because all add-ons are made of a number of files that have to be in specific folders
  2. Image handler won't work if all its files aren't there

The install files are new files that you are adding and
The Required Core Edits are files that need to overwrite existing files to add new functionality regarding image handler to those files

If your install is new and you have no other add-ons installed you should be able to just install both folders easily, if however you have installed other add-ons you need to check that none of them are using the files that the "required core edits" folder will overwrite. If they are you will need to merge the two versions of that file

-----------------edit
you also need to rename some folders
in includes/modules there will be a folder called your-template, rename that to the name of your template
in includes/templates there will be a folder called your-template, rename that to the name of your template

23 Sep 2011, 10:02 PM
#507
jeffsuwanee avatar

jeffsuwanee

New Zenner

Join Date:
Sep 2011
Posts:
21
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

GOT IT ! Thank you. I didn't realize that iit was ok for the already existing files and folders to be rewritten. Works great. Thanks again.

23 Sep 2011, 10:31 PM
#508
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

jeffsuwanee:

Installation confusion: IH3 using ZC 1.3.9h

I have followed the renaming of folders and such in the installation folders within the download of IH3. I don't mean to sound stupid, but the next bit of instructions asks me to place the contents of (1 Install Files and 2 Required Core Edits) into my store. I dont have a folder location by way of FTP called "my store". Where exactly do the contents of these two folders go in the hierarchy of my zencart folder on the server?

I already have folder names which are the same as I'm copying over from these two folders, I want to make sure I'm putting them in the right place and not over-writing a folder by accident.

Thanks in advance, and please excuse my stupidy, I'm only a few days into using Zencart.

that can be confusing...no worries

my link to my store is http:fantasiesrealm.com/market

market="my store"

if you do not have your files inside another folder like I do then just transfer the files from each section in zip to the exact same places on your server---open your folder on your computer.....transfer the files inside NOT the entire folders, to the corresponding folder on your server

remember to place the ones that you can to your overrides folder, usually named just like your template...like the one from Lightbox--should you have that mod installed too.

hope that did not confuse you more

23 Sep 2011, 10:34 PM
#509
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

jeffsuwanee:

GOT IT ! Thank you. I didn't realize that iit was ok for the already existing files and folders to be rewritten. Works great. Thanks again.

Just so you know for future reference, you never want to upload complete folders to override same named existing folders. Ever.

It is ok to do this with files, but not with folders. That's why the instructions read to "upload the contents of the folders", rather than "upload the folders".

Good luck and happy Zenning :smile:

25 Sep 2011, 6:24 AM
#510
shinypenguin avatar

shinypenguin

New Zenner

Join Date:
Jun 2010
Posts:
23
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Does anyone know how to retrieve the path for a cached image in the header? (implementing in the includes/templates/{template}/common/html_header.php file)

Since this is before the page templates are included, I'm assuming there are some files that need to be required, and there must be a function or something to retrieve the cached path as it's done on the products page.

I'm hoping this is fairly simple for someone that understands Image Handler better - I've spent several hours looking through the files and about to the point of giving up. The couple threads found on this site and through Google were unanswered.

Any help would be greatly appreciated!

Additional background:

This is for implementing the meta tags for a Facebook "like" button on product pages to avoid outputting the original image path (full sized without a watermark) in the header where it can be read from the source code and accessed directly. Also, depending on the frequency of Facebook checking, the full size 1.5-2mb pictures would eat up a lot of unnecessary bandwidth.

This will only be used on product info pages, and it can be assumed I'm running a freshly installed zen cart 1.3.9h with Image Handler 3. The product name, original picture path, and other information from the products table are stored in variables that can be used for retrieval.

None of the implementation code beyond finding the cache path is needed.

25 Sep 2011, 7:42 AM
#511
shinypenguin avatar

shinypenguin

New Zenner

Join Date:
Jun 2010
Posts:
23
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

shinypenguin:

Does anyone know how to retrieve the path for a cached image in the header? (implementing in the includes/templates/{template}/common/html_header.php file)

Since this is before the page templates are included, I'm assuming there are some files that need to be required, and there must be a function or something to retrieve the cached path as it's done on the products page.

I'm hoping this is fairly simple for someone that understands Image Handler better - I've spent several hours looking through the files and about to the point of giving up. The couple threads found on this site and through Google were unanswered.

Any help would be greatly appreciated!

Additional background:

This is for implementing the meta tags for a Facebook "like" button on product pages to avoid outputting the original image path (full sized without a watermark) in the header where it can be read from the source code and accessed directly. Also, depending on the frequency of Facebook checking, the full size 1.5-2mb pictures would eat up a lot of unnecessary bandwidth.

This will only be used on product info pages, and it can be assumed I'm running a freshly installed zen cart 1.3.9h with Image Handler 3. The product name, original picture path, and other information from the products table are stored in variables that can be used for retrieval.

None of the implementation code beyond finding the cache path is needed.

Figures! After writing up the post, I finally figured out what was going wrong.

The full implementation is quite convoluted, but it turned out all the needed files were already included... I will just share the part I was having difficulty with - retrieving the cache path after having the original image path. Hopefully it will save someone else time because it certainly took up a lot of mine!

This code is in the includes/modules/meta_tags.php file. The only required prior modification is adjusting the sql query around line 194 to also retrieve p.products_image. "FB" is attached to all variables to avoid any conflicts. The cached path is stored as META_TAG_FBIMG_CACHE so it can be retrieved in the html_header.php file:

$FBproducts_image = $product_info_metatags->fields['products_image'];
		$FBproducts_image_extension = substr($FBproducts_image, strrpos($FBproducts_image, '.'));
		$FBproducts_image_base = preg_replace('/'.$FBproducts_image_extension . '$/', '', $FBproducts_image);
		$FBproducts_image_medium = DIR_WS_IMAGES . 'medium/' . $FBproducts_image_base . IMAGE_SUFFIX_MEDIUM . $FBproducts_image_extension;
		$FBnewimg = handle_image($FBproducts_image_medium, '', MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT, '');
		list($FBsrc, $FBalt, $FBwidth, $FBheight, $FBparameters) = $FBnewimg;
		define('META_TAG_FBIMG_CACHE', (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ).$FBsrc);

Warning:

  1. I implemented this using Image Handler 2, but the functions used in this look about the same from what I can tell.

  2. This has not been completely tested or optimized, and it could very likely cause errors under unknown circumstances. I did not test it at all on secure pages, since my product pages are all http. It does have a code snippet that should insert https where required to avoid SSL warnings, but if you encounter them, this code is likely the cause.

30 Sep 2011, 6:01 AM
#512
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Well it is my turn, I can not figure out what happened but the hover now shows a large (actual uploaded size) and nothing I do will make it behave. In admin it seems that no matter what image gets uploaded it is shown as small, medium and large as 1200x1200

I instructed my client to go to photoshop and resize them down to 1000x1000 then do a save for web to upload to store and see if that helps.

troubleshooting done:

uninstall IH3 5 times
reinstall IH3

remove the files then reup the entire IH3 files

set image settings to be with and without height-- no difference noticed

set her settings exactly as my store's settings

Lightbox 1.6.2 was misbehaving but reinstalled it and now it works but not IH3...lol

tried with a new template (copy of my own), classic template and the problem still exists --- hover for medium size is huge, images still claim to be all 1200x1200 and not in respective sizes IH3 does, watermark does not work and size for the largest image should be 675 yet it does not appear to be acknowledged by software.

this is her image settings:

Small Image Width 165
Small Image Height
Heading Image Width - Admin 57
Heading Image Height - Admin
Subcategory Image Width
Subcategory Image Height
Calculate Image Size true
Image Required true
Image - Shopping Cart Status 1
Image - Shopping Cart Width 50
Image - Shopping Cart Height
Category Icon Image Width - Product Pages
Category Icon Image Height - Product Pages
Top Subcategory Image Width
Top Subcategory Image Height
Product - Image Width 225
Product - Image Height 225
Product - Image Medium Suffix _MED
Product - Image Large Suffix _LRG
Product - Number of Additional Images per Row 4
Image - Product Listing Width 165
Image - Product Listing Height
Image - Product New Listing Width 165
Image - Product New Listing Height
Image - New Products Width 165
Image - New Products Height
Image - Featured Products Width 165
Image - Featured Products Height
Image - Product All Listing Width 165
Image - Product All Listing Height
Product Image - No Image Status 1
Product Image - No Image picture no_picture.gif
Image - Use Proportional Images on Products and Categories 1
IH resize images yes
IH small images filetype no_change
IH small images background 255:255:255
IH small images compression quality 85
IH small images watermark no
IH small images zoom on hover yes
IH small images zoom on hover size Medium
IH medium images filetype no_change
IH medium images background 255:255:255
IH medium images compression quality 85
IH medium images watermark yes
IH large images filetype no_change
IH large images background 255:255:255
IH large images compression quality 85
IH large images watermark yes
IH large images maximum width 675
IH large images maximum height
IH watermark gravity Center

link: http://ewc2007.com/store/

I am crosseyed from trying all different things to no avail.

30 Sep 2011, 7:16 AM
#513
sofasurfer avatar

sofasurfer

Zen Follower

Join Date:
Mar 2011
Posts:
149
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

I installed Image Handler today.

As I understand it, my images used to be resized on the fly when they were called for. This is what slowed the site down. Correct?

I just added my first product since I install Image Handler. My uploaded image was 431kb. It is stored in public_html/images. Nothing different there.

Now I assume that what happens now is that Image Handler makes a set of resized images and stores them, ready for use. The new sizes are about 3kb, 9kb and 73kb. Where are they stored?

As my uploaded image is 431kb, do I now see that I am uploading images that are WAY too big? Should I be uploading images of less than 100kb?

30 Sep 2011, 7:47 AM
#514
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

they are stored in the bmz_cache folder that you uploaded with this mod.

The best thing to do is upload the largest size you need and no bigger, i.e my large images are 500 x 500 max, but my supplier gives me 2500 x 2500 and that is just overkill (in fact at first before i realised it was at a complete standstill because of this) resize the image to the largest size you need, squash the filesize if you can and then upload, image handler will do the rest for you.

1 Oct 2011, 8:50 AM
#515
sofasurfer avatar

sofasurfer

Zen Follower

Join Date:
Mar 2011
Posts:
149
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Thanks for the info.
Now, can you answer this for me...
My image was 431kb. It measured 750ish X 500ish pixels. IH3 resized it to 3kb, 9kb and 73kb.

Now, I used Nautilus image resizer to change my uploaded image to 649x480 pixels. IH3 then resized it to 3kb, 9kb and 158kb.

Why did the largest IH3 resize get bigger?

1 Oct 2011, 8:23 PM
#516
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

sofasurfer:

Thanks for the info.
Now, can you answer this for me...
My image was 431kb. It measured 750ish X 500ish pixels. IH3 resized it to 3kb, 9kb and 73kb.

Now, I used Nautilus image resizer to change my uploaded image to 649x480 pixels. IH3 then resized it to 3kb, 9kb and 158kb.

Why did the largest IH3 resize get bigger?

  1. we need to see the affected page
  2. What was the image size in kb of the file that you re-uploaded it with Nautilus Image resizer
  3. What is the large image size setting set to in the image settings
  4. What is the format of the image, jpg gif, png
3 Oct 2011, 2:13 PM
#517
roslan1984 avatar

roslan1984

New Zenner

Join Date:
Oct 2011
Posts:
1
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

Hi

Godaddy shut down my site because there is to many image files in directory

I am using image handler 3
I am using zen-cart 1.3.9 g
updated from 1.3.7 to 1.3.8 to 1.3.9

In order for your site to viewable again you will need to fix the file structures so we can finalize the account change that you had requested. Below is a list of all directories that need to be reduced to 1024 files or less.

3345, ./html/***********/bmz_cache/0

3353, ./html/***********/bmz_cache/1

3214, ./html/***********/bmz_cache/2

2911, ./html/***********/bmz_cache/3

2921, ./html/***********/bmz_cache/4

3376, ./html/***********/bmz_cache/5

3261, ./html/***********/bmz_cache/6

3270, ./html/***********/bmz_cache/7

3352, ./html/**********/bmz_cache/8

3317, ./html/*********/bmz_cache/9

3409, ./html/********/bmz_cache/a

3225, ./html/********/bmz_cache/b

3304, ./html/*********/bmz_cache/c

3249, ./html/********/bmz_cache/d

3238, ./html/******/bmz_cache/e

3196, ./html/******/bmz_cache/f

66084, ./html/*******/cache

6142, ./html/******/images

Please contact us if you have any further issues

What should I do ?

3 Oct 2011, 3:36 PM
#518
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

roslan1984:

Hi

Godaddy shut down my site because there is to many image files in directory

I am using image handler 3
I am using zen-cart 1.3.9 g
updated from 1.3.7 to 1.3.8 to 1.3.9

In order for your site to viewable again you will need to fix the file structures so we can finalize the account change that you had requested. Below is a list of all directories that need to be reduced to 1024 files or less.

3345, ./html/***********/bmz_cache/0

3353, ./html/***********/bmz_cache/1

3214, ./html/***********/bmz_cache/2

2911, ./html/***********/bmz_cache/3

2921, ./html/***********/bmz_cache/4

3376, ./html/***********/bmz_cache/5

3261, ./html/***********/bmz_cache/6

3270, ./html/***********/bmz_cache/7

3352, ./html/**********/bmz_cache/8

3317, ./html/*********/bmz_cache/9

3409, ./html/********/bmz_cache/a

3225, ./html/********/bmz_cache/b

3304, ./html/*********/bmz_cache/c

3249, ./html/********/bmz_cache/d

3238, ./html/******/bmz_cache/e

3196, ./html/******/bmz_cache/f

66084, ./html/*******/cache

6142, ./html/******/images

Please contact us if you have any further issues

What should I do ?

Ummmmm I use Godaddy for hosting too. I use image handler 2. I don't know if there is a difference in the 2 modules. I haven't run across that with Godaddy yet. If and when I do it will be time to move to a new host. Try clearing the image cache under admin/tools/image_handler/admin.
I keep mine cleared out once a week.

3 Oct 2011, 5:39 PM
#519
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

roslan1984:

Hi

Godaddy shut down my site because there is to many image files in directory

I am using image handler 3
I am using zen-cart 1.3.9 g
updated from 1.3.7 to 1.3.8 to 1.3.9

In order for your site to viewable again you will need to fix the file structures so we can finalize the account change that you had requested. Below is a list of all directories that need to be reduced to 1024 files or less.

3345, ./html/*****/bmz_cache/0--- 3196, ./html//bmz_cache/f

66084, ./html/*******/cache

6142, ./html/******/images

Please contact us if you have any further issues

What should I do ?

depends on what change you wanted them to do for you too. the cache folder NOT the bmz but the regular cache folder should be empty unless you have had errors.

you need to go in there and get rid of the files there and make sure to check it often.

another thing is the kb/mb size of the ones in the images folder but that should not be a really big problem unless your account is maybe causing the others on that server to bog down...if yours uses too many resources the host will shut you down....BUT

if it were me I would go to another host--try hostgator / hostdime / bluehost / lunarpages

those are some of the hosts that I and some of my clients use.

3 Oct 2011, 8:08 PM
#520
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: Image Handler 3 Support Thread (for ZC v1.3.9)

There is no difference between image handler 2 and 3 in this, so don't bother switching, IH3 is the one you should be using

Ok a few General questions

  1. How many products on your site
  2. Did you clear the /bmz_cache before and after each upgrade
    admin --> tools --> Image handler 3 -- (manager tab) Clear bmz_cache,
    Clear the cache now
    then go and physically check those subdirectories, because they should be empty of image files

Your /cache folder (not the /bmz_cache folde) is where php errors are stored, you can clear it via
admin -- tools -- Store Manager -- Very bottom button that says "Clean up debug cache"
You should read the most recent error messages, to see what they say,

edit----------------------------------
66000 in the cache, that means something on your site is screwy, often a missing file or something

roslan1984:

Hi

Godaddy shut down my site because there is to many image files in directory

I am using image handler 3
I am using zen-cart 1.3.9 g
updated from 1.3.7 to 1.3.8 to 1.3.9

In order for your site to viewable again you will need to fix the file structures so we can finalize the account change that you had requested. Below is a list of all directories that need to be reduced to 1024 files or less.

3345, ./html/***********/bmz_cache/0

3353, ./html/***********/bmz_cache/1

3214, ./html/***********/bmz_cache/2

2911, ./html/***********/bmz_cache/3

2921, ./html/***********/bmz_cache/4

3376, ./html/***********/bmz_cache/5

3261, ./html/***********/bmz_cache/6

3270, ./html/***********/bmz_cache/7

3352, ./html/**********/bmz_cache/8

3317, ./html/*********/bmz_cache/9

3409, ./html/********/bmz_cache/a

3225, ./html/********/bmz_cache/b

3304, ./html/*********/bmz_cache/c

3249, ./html/********/bmz_cache/d

3238, ./html/******/bmz_cache/e

3196, ./html/******/bmz_cache/f

66084, ./html/*******/cache

6142, ./html/******/images

Please contact us if you have any further issues

What should I do ?