Page 1 of 2 12 LastLast
Results 1 to 10 of 1688

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: Image Handler 4 Support Thread

    hi,
    i have a site than is running:

    Image Handler4 v4.0 for v1.5.x

    the ZC version is 1.5.5 and the PHP Version is 5.6.19.

    i have found a "problem", in that it seems IH chokes on a large file size and specifically in the function resize_imageGD. i have not tracked it down further as of yet.

    the store owner uploaded a file that was 4.4 MB.

    i have a few questions with regards to this situation. has anyone experienced this problem? is there any maximum file size? is it part of the server configuration or IH configuration? and finally, if it is a known issue, what do you think about adding some hooks for logging of this situation? ZC generated no logs, and i saw no apache error logs as well, which made tracking down the problem just a bit more time-consuming.

    if someone has already posted about this situation and i missed it, i apologize in advance. and if anyone has any ideas about, i would appreciate it.

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Image Handler 4 Support Thread

    There was a discussion started on page 143. I think was the same as your problem.
    Quote Originally Posted by carlwhat View Post
    hi,
    i have a site than is running:

    Image Handler4 v4.0 for v1.5.x

    the ZC version is 1.5.5 and the PHP Version is 5.6.19.

    i have found a "problem", in that it seems IH chokes on a large file size and specifically in the function resize_imageGD. i have not tracked it down further as of yet.

    the store owner uploaded a file that was 4.4 MB.

    i have a few questions with regards to this situation. has anyone experienced this problem? is there any maximum file size? is it part of the server configuration or IH configuration? and finally, if it is a known issue, what do you think about adding some hooks for logging of this situation? ZC generated no logs, and i saw no apache error logs as well, which made tracking down the problem just a bit more time-consuming.

    if someone has already posted about this situation and i missed it, i apologize in advance. and if anyone has any ideas about, i would appreciate it.

    best.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: Image Handler 4 Support Thread

    thanks for that. i have tracked it down to the function imagecreatefromjpeg. it should come back as false. but on my server, it just dies. i did finally get 1 error logged, with a memory size exhausted.

    the problem is here, and considering the php function is just dying, i'm not sure how to even handle it:

    Code:
    	function load_imageGD($src_name) {
    		// create an image of the given filetype
    		$file_ext = substr($src_name, strrpos($src_name, '.'));
    		switch (strtolower($file_ext)) {
    			case '.gif':
    			    if(!function_exists("imagecreatefromgif")) return false;
    			    	$image = @imagecreatefromgif($src_name);
    				break;
    			case '.png':
    			    if(!function_exists("imagecreatefrompng")) return false;
    				$image = @imagecreatefrompng($src_name);
    				break;
    			case '.jpg':
    			case '.jpeg':
    			    if(!function_exists("imagecreatefromjpeg")) return false;
    				$image = @imagecreatefromjpeg($src_name);
    				break;
    		}
    		return $image;
    	}
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Image Handler 4 Support Thread

    Did you also look at the server error logs?

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,908
    Plugin Contributions
    13

    Default Re: Image Handler 4 Support Thread

    i did. the apache error logs show nothing.... although i find apache error logs on shared servers to not be so reliable...
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by carlwhat View Post
    i did. the apache error logs show nothing.... although i find apache error logs on shared servers to not be so reliable...
    Yes, I have the same observation. Some errors will be logged to the root user (host) only. Probably the best solution for now is to tell the customer to use smaller image sizes , or a lower quality. Which won't make a difference for most end users, as they don't have a super high resolution screen.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Image Handler 4 Support Thread

    Quote Originally Posted by Design75 View Post
    There was a discussion started on page 143. I think was the same as your problem.
    As a suggestion, it's better to identify a post number instead of a page number since the number of posts/page is configurable based on your personal Zen Cart settings.

  8. #8
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: Image Handler 4 Support Thread

    You are absolutely right. I totally forgot that was possible.

  9. #9
    Join Date
    Apr 2013
    Location
    eglisau switzerland
    Posts
    568
    Plugin Contributions
    0

    Default Re: Image Handler 4 Support Thread

    Hello
    Super piece of addon software.

    Just to be sure I understood what I have read :)
    The standard zen cart product listing image is set at _MED.
    This medium size image is not part of the standard IH4 zoom, if I want to zoom here I have to add a patch which is not seen as an ideal step?

  10. #10
    Join Date
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: Image Handler 4 Support Thread

    HI,
    I am testing this fantastic plugin in a test site. I wish I found about it before!!!! However I have a small problem. IN the main product page if I click on the image in order to see the large version, the image is loaded but the popup windows does not enlarge so to see the image you need to enlarge it manually. It is a 1.5.5a version.
    I hoe thsi can be adjusted because I really love this plugin and I am ready to revamp all the images of the site. Thanks. Ciao from Italy. enzo

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v158 Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 749
    Last Post: 20 May 2026, 03:47 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg