Page 29 of 29 FirstFirst ... 19272829
Results 281 to 287 of 287
  1. #281
    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?

  2. #282
    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

  3. #283
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    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 Modifications
    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.

  4. #284
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Idea or Suggestion Image Manager 2.1

    I've got Image Manager 2.1 running on 1.57c...




    I've got a bunch more updating to do before it will be ready for release but things are looking good!
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 
Page 29 of 29 FirstFirst ... 19272829

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

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR