Results 1 to 10 of 284

Hybrid View

  1. #1
    Join Date
    Mar 2013
    Posts
    16
    Plugin Contributions
    0

    help question Re: Image Manager addon

    hi all
    My install is zc 1.5.0, php 5 & mysql 5, using IM 1.9 even though it says 1.7 in admin is this right? My install is in a sub folder and my pics reside in /images/large/gifs/ folder. I dont use small or medium pics, the main reason for install was the watermark and tidy up utilities :) All seemed to install ok, i can view unattached files ok but when i go to view attached files which in my test site which i only have about 100 pics, i get the error message:

    Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 80 bytes) in /mnt/vol1/home/h/i/*****/public_html/zen*****/adm****/includes/functions/extra_functions/function_image_manager.php on line 140

    which i believe from previous posts that its a server memory error ? but should this do this with only 100 large pics? they are sized 500 x various.

    When IM installed it created the folders listed below is this right?

    Messages
    Watermarks are present for: medium, large.
    Folder created: /mnt/vol1/home/h/i/*****/public_html/zen****/images/medium/large/gifs/
    Folder created: /mnt/vol1/home/h/i/*****/public_html/zen****/images/large/large/gifs/
    Folder rights are sufficient

    If i view one pic by product id it shows ok with all links, but even thought its in the large/gifs/ folder its showing as a small image saying med & large images are missing? Any advice would be appreciated, its a great plugin and would like to get it working right. Is the problem related to me having large pics only and them beingg there before install?

    cheers dessy
    Last edited by destruxon; 22 May 2013 at 03:21 PM. Reason: missed info

  2. #2
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

    Default Re: Image Manager addon

    Does anybody know how to do what I'm suggesting.
    In admin under configuration/Image manager there is a setting for additional images. The setting if for inserting additional images for your product when you turn it on like down below.

    Show "Add additional image link" link
    When set to 'yes', Image Manager will display a link to upload a new additional image for a product.
    You can upload an image with any name; IM will store the image under the name already known, with the specified suffix added.
    This option will only show up in 'attached' mode, after first selecting a specific products-ID in the right upper box.

    If the uploaded image is large enough, it can be used to also recreate the medium and large size images.
    Is there a way to add the upload link to all product id's instead of just one product id when adding additional images under tools. This seems like it will take a long time looking up product id's to add additional images.

    Admin/catalog/category
    is there a way to add this to the product category page like the image handler has it so you can click on whatever product you would like to add additional images to. Thanks In advance
    Last edited by countrycharm; 10 Jan 2014 at 09:10 PM.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  3. #3
    Join Date
    May 2005
    Location
    England
    Posts
    740
    Plugin Contributions
    0

    Default Re: Image Manager addon

    Does anyone have this running with 1.52 zencart version? It was working, but since upgrade I notice it won't do combine / resize etc. Permissions are okay and sufficient. Cheers

  4. #4
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: Image Manager addon

    Hi all!
    For all of you that want to preserve the transparency of images, I added this function:
    Code:
    function setTransparency($new,$temp) 
      
        { 
            
                $transparencyIndex = imagecolortransparent($temp); 
                $transparencyColor = array('red' => 255, 'green' => 255, 'blue' => 255); 
                 
                if ($transparencyIndex >= 0) { 
                    $transparencyColor    = imagecolorsforindex($temp, $transparencyIndex);    
                } 
                
                $transparencyIndex    = imagecolorallocate($new, $transparencyColor['red'], $transparencyColor['green'], $transparencyColor['blue']); 
                imagefill($new, 0, 0, $transparencyIndex); 
                 imagecolortransparent($new, $transparencyIndex); 
            
        }
    You can call it with setTransparency($new,$temp);
    just before imagecopyresampled($new, $temp, 0, 0, 0, 0, $dst_w, $dst_h, $org_w, $org_h);



    Thank you very much to Boudewijn for this fantastic mod. For next reviews, it must have a direct link at the product edit screen. anybody?

  5. #5
    Join Date
    Feb 2007
    Location
    Barcelona
    Posts
    201
    Plugin Contributions
    0

    Default Re: Image Manager addon

    After working on the mod, I think, what is the subject for saving the original image at server if you canīt acces to it if you want to restore?
    Question for Boudewijn, isnīt possible to add a link for restore the original image like the link for re-upload?

  6. #6
    Join Date
    Jan 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: Image Manager addon

    Hello Boudewijn and everyone else on this thread.

    I found a small problem that had to be resolved for my purposes, maybe this can help you all and Boudewijn maybe you can add it to the next version if you think it is an improvement.
    First I'll mention that on this specific website I am using 1.3.9h and IM 1.9.

    My problem was that when there is no large image and the original image is smaller than the Maximum definition for large images on the IM settings, the large image that is being created is according to the Maximum definitions and in this case where the original is smaller it is actually not necessary and I prefer that it will take the properties from the original image for Large and shrink for Small/Medium.

    The fix:
    in admin/includes/functions/extra_functions/function_image_manager.php around line 888 locate this code:
    Code:
    	else if ($dst_type == "large") {
    		$cw = $org_w / IM_MAX_LARGE_WIDTH;
    		$ch = $org_h / IM_MAX_LARGE_HEIGHT;
    		if ($cw > $ch) {
    			$dst_w = IM_MAX_LARGE_WIDTH;
    			$dst_h = round($org_h / $cw);
    		} 
    		else {
    			$dst_h = IM_MAX_LARGE_HEIGHT;
    			$dst_w = round($org_w / $ch);
    		}
    	}
    replace with this code:
    Code:
    	else if ($dst_type == "large") {
    		$cw = $org_w / IM_MAX_LARGE_WIDTH;
    		$ch = $org_h / IM_MAX_LARGE_HEIGHT;
    		if ($cw > 1 || $ch > 1) {		
    			if ($cw > $ch) {
    				$dst_w = IM_MAX_LARGE_WIDTH;
    				$dst_h = round($org_h / $cw);
    			}
    			else {
    				$dst_h = IM_MAX_LARGE_HEIGHT;
    				$dst_w = round($org_w / $ch);
    			}
    		} else {
    			$dst_w = $org_w;
    			$dst_h = $org_h;
    		}
    	}
    Boudewijn let me know what you think.

    Eran

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,524
    Plugin Contributions
    127

    Default Re: Image Manager addon

    What's the status of this mod? Looks like you get a duplicate parameter error in admin/includes/functions/extra_functions/function_image_manager.php line 89 in more recent versions of PHP.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Is Module Manager (for Simple SEO addon) and v1.5.0 compatible?
    By sports guy in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 6 May 2012, 02:56 AM
  2. Problem integrating additional image titles addon and commercial addon
    By strugglingnovice in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 15 Aug 2010, 03:07 PM
  3. Order Manager addon option not available
    By gruccio in forum Addon Shipping Modules
    Replies: 1
    Last Post: 19 Jan 2010, 02:23 PM
  4. Store Manager addon sees invalid Zen Cart db
    By JohnBoyCR in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2009, 05:52 PM
  5. Function of Module Manager addon
    By alimtlai in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 21 Jan 2009, 09:37 AM

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