If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Started by lat9 on 15 Oct 2017, 3:54 PM · Views: 160,515

Results 481 to 500 of 774
19 Nov 2021, 5:06 PM
#481
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

Fuzztrip:

.
Link to specific page.
https://fuzztrip.com/lp-c-1/the-lucid-furs-damn-that-was-easy-vinyl-lp-red-p-255.html
Noting that, for a couple of years now, that image-hover feature has been wonky (depending on the browser) and will be removed entirely in the next (v5.2.0) IH release.

19 Nov 2021, 6:09 PM
#482
fuzztrip avatar

fuzztrip

New Zenner

Join Date:
Jul 2020
Location:
USA
Posts:
88
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

Noting that, for a couple of years now, that image-hover feature has been wonky (depending on the browser) and will be removed entirely in the next (v5.2.0) IH release.

Thanks for the info on that. Guess I'll turn it off now.

19 Nov 2021, 11:13 PM
#483
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

@fuzztrip try replacing the contents of your includes/templates/YOUR_TEMPLATE/jscript/jscript_imagehover.js with the following

/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact

Modified by Tim Kroeger ([email protected]) for use with
image handler 2 and better cross browser functionality
*/

var offsetfrommouse=[10,10]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0; //duration in seconds image should remain visible. 0 for always.
var currentimageheight = 400;	// maximum image size.
var padding=10; // padding must by larger than specified div padding in stylessheet

// Global variables for sizes of hoverimg
// Defined in "showtrail()", used in "followmouse()"
var zoomimg_w=0;
var zoomimg_h=0;


if (document.getElementById || document.all){
  document.write('<div id="trailimageid">');
  document.write('</div>');
}

function getObj(name) {
  if (document.getElementById) {
  	  this.obj = document.getElementById(name);
    this.style = document.getElementById(name).style;
  } else if (document.all) {
    this.obj = document.all[name];
    this.style = document.all[name].style;
  } else if (document.layers) {
    this.obj = document.layers[name];
    this.style = document.layers[name];
  }
}

function gettrail(){
  return new getObj("trailimageid");
}

function truebody(){
  return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function showtrail(imagename,title,oriwidth,oriheight,zoomimgwidth,zoomimgheight, image, startx, starty, startw, starth){
	zoomimg_w=zoomimgwidth;
	zoomimg_h=zoomimgheight;
  //if (oriwidth > 0){ offsetfrommouse[0] = oriwidth; }
  //if (oriheight > 0){ offsetfrommouse[1] = -1 *(zoomimgheight-oriheight)/2 - 40; }
  // alert (offsetfrommouse[0] + "," + offsetfrommouse[1]);
  if (zoomimgheight > 0){ currentimageheight = zoomimgheight; }
  trailobj = gettrail().obj;
  trailobj.style.width=(zoomimgwidth+(2*padding))+"px";
  trailobj.style.height=(zoomimgheight+(2*padding))+"px";
  trailobj.setAttribute("startx", startx);
  trailobj.setAttribute("starty", starty);
  trailobj.setAttribute("startw", startw);
  trailobj.setAttribute("starth", starth);
  trailobj.setAttribute("imagename", imagename);
  trailobj.setAttribute("imgtitle", title);
  document.onmousemove=followmouse;
}

function hidetrail(){
  trailstyle = gettrail().style;
  trailstyle.visibility = "hidden";
  document.onmousemove = "";
  trailstyle.left = "-2000px";
  trailstyle.top = "-2000px";
}

function followmouse(e){

  var xcoord=offsetfrommouse[0];
  var ycoord=offsetfrommouse[1];

  var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15;
  var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(window.innerHeight);

  //if (document.all){
  //	trail.obj.innerHTML = 'A = ' + truebody().scrollHeight + '<br>B = ' + truebody().clientHeight;
  //} else {
  //	trail.obj.innerHTML = 'C = ' + document.body.offsetHeight + '<br>D = ' + window.innerHeight;
  //}
  var relativeX = null;
  var relativeY = null;

  if (typeof e != "undefined"){
    // Not IE
    if ((typeof e.layerX != "undefined") && (typeof e.layerY != "undefined")) {
      relativeX = e.layerX;
      relativeY = e.layerY;
    } else if ((typeof e.x != "undefined") && (typeof e.y != "undefined")) {
      relativeX = e.x;
      relativeY = e.y;
    }

    if (docwidth - e.pageX < zoomimg_w + (3 * padding)) {
      xcoord = e.pageX - xcoord - zoomimg_w - (2 * offsetfrommouse[0]);
    } else {
      xcoord += e.pageX;
    }
    if (docheight - e.pageY < zoomimg_h + (2 * padding)){
      ycoord += e.pageY - Math.max(0,(0 + zoomimg_h + (5 * padding) + e.pageY - docheight - truebody().scrollTop));
    } else {
      ycoord += e.pageY;
    }
  } else if (typeof window.event != "undefined"){
    // IE
    if ((typeof event.x != "undefined") && (typeof event.y != "undefined")) {
      relativeX = event.x;
      relativeY = event.y;
    } else if ((typeof event.offsetX != "undefined") && (event.offsetY != "undefined")) {
      relativeX = event.offsetX;
      relativeY = event.offsetY;
    }

    if (docwidth - event.clientX < zoomimg_w + (3 * padding)) {
      xcoord = event.clientX - xcoord - zoomimg_w - (2 * offsetfrommouse[0]);
    } else {
      xcoord += truebody().scrollLeft + event.clientX;
    }
    if (docheight - event.clientY < zoomimg_h + 50){
      ycoord += truebody().scrollTop + docheight - zoomimg_h - 50;
//      ycoord += event.clientY - Math.max(0,(0 + zoomimg_h + (5 * padding) + event.clientY - docheight - truebody().scrollTop));
    } else {
      ycoord += truebody().scrollTop + event.clientY;
    }
  }

  trail = gettrail();
  startx    = trail.obj.getAttribute("startx");
  starty    = trail.obj.getAttribute("starty");
  startw    = trail.obj.getAttribute("startw");
  starth    = trail.obj.getAttribute("starth");
  imagename = trail.obj.getAttribute("imagename");
  title     = trail.obj.getAttribute("imgtitle");

  // calculate and set position BEFORE switching to visible
  var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15;
  var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight);
  if(ycoord < 0) { ycoord = ycoord*-1; }
  if ((trail.style.left == "-2000px") || (trail.style.left == "")) { trail.style.left=xcoord+"px"; }
  if ((trail.style.top == "-2000px") || (trail.style.top == "")) { trail.style.top=ycoord+"px"; }
  trail.style.left=xcoord+"px";
  trail.style.top=ycoord+"px";
//	alert (trail.style.left+","+trail.style.top);

  if (trail.style.visibility != "visible") {
    if (((relativeX == null) || (relativeY == null)) ||
      ((relativeX >= startx) && (relativeX <= (startx + startw))
      && (relativeY >= starty) && (relativeY <= (starty + starth)))){
      newHTML = '<div><h1>' + title + '</h1>';
      newHTML = newHTML + '<img src="' + imagename + '"></div>';
      trail.obj.innerHTML = newHTML;
      trail.style.visibility="visible";
    }
  }
}

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

25 Nov 2021, 3:52 PM
#484
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I've just submitted v5.2.0 of IH-5 for the Zen Cart moderators' review; I'll post back here when it's available for download.

This release contains changes associated with the following GitHub issues:

#139: Removing (buggy) "Small Image Zoom" feature.
#229: Correct handling of missing images.
#231: Various refactorings.
#233: Correcting (PHP 8.0+) Fatal errors due to stricter typing.
#236: Removing template-module overrides; changes in zc156+ core.
#242: Removing (unused) bmz_gif_info.class.php.

29 Nov 2021, 12:06 PM
#485
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I am having some trouble with images...I am not 100% sure this is an IH problem or not.

1.5.7c
OPC
EP4
Fluorspar Template
Clone a Template
IH5
MySQL Backup

Uploading a single image via IH creates the three images as expected. However, if you go beyond the grid layout, all the images appear as broken links. You can see what is happening at https://wlcartistry.com/index.php?main_page=product_info&cPath=76_103&products_id=374. Most of my products have all three image sizes loaded and they do not create this issue. I want to change my image workflow to only ONE larger image for each product.

I thought IH was designed to work with ZC and only one large image...am I misunderstanding something?

Thanks!
Chris

29 Nov 2021, 12:30 PM
#486
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

g2ktcf:

I am having some trouble with images...I am not 100% sure this is an IH problem or not.

1.5.7c
OPC
EP4
Fluorspar Template
Clone a Template
IH5
MySQL Backup

Uploading a single image via IH creates the three images as expected. However, if you go beyond the grid layout, all the images appear as broken links. You can see what is happening at https://wlcartistry.com/index.php?main_page=product_info&cPath=76_103&products_id=374. Most of my products have all three image sizes loaded and they do not create this issue. I want to change my image workflow to only ONE larger image for each product.

I thought IH was designed to work with ZC and only one large image...am I misunderstanding something?

Thanks!
Chris
Chris, did you enable Image Handler's operation on the storefront? There's a setting Configuration :: Images :: IH resize images; setting that to true should enable IH's storefront operation.

29 Nov 2021, 12:33 PM
#487
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I took a screenshot of my IH settings and did not attach it.... :( Sorry for making this harder than it should be.

Attachment 19843

29 Nov 2021, 12:40 PM
#488
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

g2ktcf:

I took a screenshot of my IH settings and did not attach it.... :( Sorry for making this harder than it should be.

Attachment 19843
Chris, you're not making it more difficult, but I'm now guessing that the Fluorspar template that's in use isn't playing nice. You might ask in that template's support-thread and/or contact its author.

29 Nov 2021, 4:02 PM
#489
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

I've just submitted v5.2.0 of IH-5 for the Zen Cart moderators' review; I'll post back here when it's available for download.

This release contains changes associated with the following GitHub issues:

#139: Removing (buggy) "Small Image Zoom" feature.
#229: Correct handling of missing images.
#231: Various refactorings.
#233: Correcting (PHP 8.0+) Fatal errors due to stricter typing.
#236: Removing template-module overrides; changes in zc156+ core.
#242: Removing (unused) bmz_gif_info.class.php.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2169

30 Nov 2021, 8:42 PM
#490
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

i downloaded this yesterday and i got this debug file and i have no idea how to fix it without reloading all my pictures.most are in png format and some are jpg.
here is my debug file THANK YOU IN ADVANCE

[30-Nov-2021 19:29:43 UTC] Request URI: /shop/kandi-bazaar/3d-kandi-cuffs-bracelets/neon-blue-dm5-w-white-glow-eyes-mouth-kandi-bracelets-rave?number_of_uploads=0&language=en, IP address: 51.222.253.20
#1 imagecreatefromjpeg() called at [/includes/classes/bmz_image_handler.class.php:926]
#2 ih_image->load_imageGD() called at [/includes/classes/bmz_image_handler.class.php:717]
#3 ih_image->resize_imageGD() called at [/includes/classes/bmz_image_handler.class.php:400]
#4 ih_image->get_resized_image() called at [/includes/classes/bmz_image_handler.class.php:258]
#5 ih_image->get_local() called at [/includes/functions/extra_functions/functions_bmz_image_handler.php:123]
#6 handle_image() called at [/includes/functions/html_output.php:200]
#7 zen_image() called at [/includes/templates/kandi/templates/tpl_modules_main_product_image.php:24]
#8 require(/includes/templates/kandi/templates/tpl_modules_main_product_image.php) called at [/includes/templates/kandi/templates/tpl_product_info_display.php:58]
#9 require(/includes/templates/kandi/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:154]
#10 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/kandi/common/tpl_main_page.php:181]
#11 require(/includes/templates/kandi/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50 in /includes/classes/bmz_image_handler.class.php on line 926.

[30-Nov-2021 19:29:43 UTC] Request URI: /shop/kandi-bazaar/3d-kandi-cuffs-bracelets/neon-blue-dm5-w-white-glow-eyes-mouth-kandi-bracelets-rave?number_of_uploads=0&language=en, IP address: 51.222.253.20
#1 imagecreatefromjpeg() called at [/includes/classes/bmz_image_handler.class.php:926]
#2 ih_image->load_imageGD() called at [/includes/classes/bmz_image_handler.class.php:717]
#3 ih_image->resize_imageGD() called at [/includes/classes/bmz_image_handler.class.php:400]
#4 ih_image->get_resized_image() called at [/includes/classes/bmz_image_handler.class.php:258]
#5 ih_image->get_local() called at [/includes/functions/extra_functions/functions_bmz_image_handler.php:123]
#6 handle_image() called at [/includes/functions/html_output.php:200]
#7 zen_image() called at [/includes/templates/kandi/templates/tpl_modules_main_product_image.php:24]
#8 require(/includes/templates/kandi/templates/tpl_modules_main_product_image.php) called at [/includes/templates/kandi/templates/tpl_product_info_display.php:58]
#9 require(/includes/templates/kandi/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:154]
#10 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/kandi/common/tpl_main_page.php:181]
#11 require(/includes/templates/kandi/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: imagecreatefromjpeg(): '/images/neonbluegeye_deadnau5.jpg' is not a valid JPEG file in /includes/classes/bmz_image_handler.class.php on line 926.

[30-Nov-2021 19:29:43 UTC] Request URI: /shop/kandi-bazaar/3d-kandi-cuffs-bracelets/neon-blue-dm5-w-white-glow-eyes-mouth-kandi-bracelets-rave?number_of_uploads=0&language=en, IP address: 51.222.253.20
#1 imagecreatefromjpeg() called at [/includes/classes/bmz_image_handler.class.php:926]
#2 ih_image->load_imageGD() called at [/includes/classes/bmz_image_handler.class.php:717]
#3 ih_image->resize_imageGD() called at [/includes/classes/bmz_image_handler.class.php:400]
#4 ih_image->get_resized_image() called at [/includes/classes/bmz_image_handler.class.php:258]
#5 ih_image->get_local() called at [/includes/functions/extra_functions/functions_bmz_image_handler.php:123]
#6 handle_image() called at [/includes/functions/html_output.php:200]
#7 zen_image() called at [/includes/templates/kandi/templates/tpl_modules_main_product_image.php:36]
#8 require(/includes/templates/kandi/templates/tpl_modules_main_product_image.php) called at [/includes/templates/kandi/templates/tpl_product_info_display.php:58]
#9 require(/includes/templates/kandi/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:154]
#10 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/kandi/common/tpl_main_page.php:181]
#11 require(/includes/templates/kandi/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: Not a JPEG file: starts with 0x89 0x50 in /includes/classes/bmz_image_handler.class.php on line 926.

[30-Nov-2021 19:29:43 UTC] Request URI: /shop/kandi-bazaar/3d-kandi-cuffs-bracelets/neon-blue-dm5-w-white-glow-eyes-mouth-kandi-bracelets-rave?number_of_uploads=0&language=en, IP address: 51.222.253.20
#1 imagecreatefromjpeg() called at [/includes/classes/bmz_image_handler.class.php:926]
#2 ih_image->load_imageGD() called at [/includes/classes/bmz_image_handler.class.php:717]
#3 ih_image->resize_imageGD() called at [/includes/classes/bmz_image_handler.class.php:400]
#4 ih_image->get_resized_image() called at [/includes/classes/bmz_image_handler.class.php:258]
#5 ih_image->get_local() called at [/includes/functions/extra_functions/functions_bmz_image_handler.php:123]
#6 handle_image() called at [/includes/functions/html_output.php:200]
#7 zen_image() called at [/includes/templates/kandi/templates/tpl_modules_main_product_image.php:36]
#8 require(/includes/templates/kandi/templates/tpl_modules_main_product_image.php) called at [/includes/templates/kandi/templates/tpl_product_info_display.php:58]
#9 require(/includes/templates/kandi/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:154]
#10 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/kandi/common/tpl_main_page.php:181]
#11 require(/includes/templates/kandi/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: imagecreatefromjpeg(): '/images/neonbluegeye_deadnau5.jpg' is not a valid JPEG file in /includes/classes/bmz_image_handler.class.php on line 926.

My Multi_Site Zen Carts
http://herasonlinemarket.com

1 Dec 2021, 12:29 PM
#491
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

@noppie, those logs indicate that those images are not valid jpg/jpeg files. Perhaps you need to re-generate/refresh them?

2 Dec 2021, 2:09 AM
#492
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

i thought the program accepted png files

My Multi_Site Zen Carts
http://herasonlinemarket.com

2 Dec 2021, 11:17 AM
#493
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

noppie:

i thought the program accepted png files
It does when the extension is png. As lat9 identified and the logs confirm the file(s) in question are identified as jpg files by extension but have an incorrect "format". Are all images associated with the product png, jpg or are they mixed? If mixed, how are images mixed? (e.g., small, medium, large and/or each image across the product (additional images))

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

3 Dec 2021, 9:11 PM
#494
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

ok i do have some pictures that are jpg.. but i do not have in the same item a mix of jpg and png.. some old images are jpg

My Multi_Site Zen Carts
http://herasonlinemarket.com

4 Dec 2021, 1:18 AM
#495
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

ok i really don't understand what happened and so sorry to bother anyone.. it is on my side.. last summer i paiinsakely went and removed the backgroud of my photos and re added the catalog. but how know i say the correct photo in the images file but when i went to the data base the old image file name was not the new one. again so sorry for bugging you all.

please have a great day

My Multi_Site Zen Carts
http://herasonlinemarket.com

11 Dec 2021, 6:39 PM
#496
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I finally got IH and my template to play nice! Now that I see what I have, I need to change my post processing for my images.

I have been taking the image at my Canon SLR's max and processimg it in GIMP.

  1. Do some background adjustments to get a solid white background
  2. drop the resolution to 72 pixels per inch.
  3. Then crop the image to a specific size that I works for the products, in this case 10 x12 or any ratio there of.
  4. I then USED to scale each of the images for 10x12, 5x6, a 2.5x3 for the three image sizes before IH.

Now, I have been only saving the 10x12 image and uploading that and letting IH do its magic. I just made a mistake however. I uploaded the correct ratio image at 32.5 x 39 which is quite a large file. The processing took way longer than normal (does not bother me at all though). The question is, since IH has created the images it needs based on my settings, it this okay? I do not think this would affect my site's TTI as the site is using the modified images correct?

If all of this is accurate, then the only downside of using really large images is the initial processing time and server storage? This would be WAY faster in terms of my effort on my part but I do not want to slow my site down.

Thanks
Chris

12 Dec 2021, 1:23 PM
#497
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

g2ktcf:

I finally got IH and my template to play nice! Now that I see what I have, I need to change my post processing for my images.

I have been taking the image at my Canon SLR's max and processimg it in GIMP.

  1. Do some background adjustments to get a solid white background
  2. drop the resolution to 72 pixels per inch.
  3. Then crop the image to a specific size that I works for the products, in this case 10 x12 or any ratio there of.
  4. I then USED to scale each of the images for 10x12, 5x6, a 2.5x3 for the three image sizes before IH.

Now, I have been only saving the 10x12 image and uploading that and letting IH do its magic. I just made a mistake however. I uploaded the correct ratio image at 32.5 x 39 which is quite a large file. The processing took way longer than normal (does not bother me at all though). The question is, since IH has created the images it needs based on my settings, it this okay? I do not think this would affect my site's TTI as the site is using the modified images correct?

If all of this is accurate, then the only downside of using really large images is the initial processing time and server storage? This would be WAY faster in terms of my effort on my part but I do not want to slow my site down.

Thanks
Chris
After that initial creation, so long as the bmz_cache sub-directory isn't reset, IH will use the squished version of a file, so the TTI involves simply 'finding' the file to be displayed ... not creating it.

What you said is true regarding the initial time and server storage as well.

20 Dec 2021, 11:59 AM
#498
g2ktcf avatar

g2ktcf

Totally Zenned

Join Date:
Feb 2011
Location:
Lumberton, TX
Posts:
635
Plugin Contributions:
0

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

lat9:

After that initial creation, so long as the bmz_cache sub-directory isn't reset, IH will use the squished version of a file, so the TTI involves simply 'finding' the file to be displayed ... not creating it.

What you said is true regarding the initial time and server storage as well.

Thank you for confirming! This really makes my life easier!

21 Feb 2022, 10:59 AM
#499
strelitzia avatar

strelitzia

Totally Zenned

Join Date:
Nov 2005
Location:
France
Posts:
588
Plugin Contributions:
1

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

I've just downloaded the latest version of IH and noticed it no longer has the modules and templates directories in the package.
Is this an omission in the upload, or have those files been removed from 5.2.0?

Doh, I should have read the change log before posting!

Zen Cart developer since 2009 — Zen Cart Solutions
Ecommerce development, integrations & automation — Junction Solutions

21 Feb 2022, 12:30 PM
#500
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,142
Plugin Contributions:
56

Re: Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread

strelitzia:

I've just downloaded the latest version of IH and noticed it no longer has the modules and templates directories in the package.
Is this an omission in the upload, or have those files been removed from 5.2.0?

Doh, I should have read the change log before posting!
Right, starting with v5.2.0, IH requires (for an initial installation) Zen Cart 1.5.6b or later. Those module/template overrides are no longer necessary.