freshizer - Custom WordPress Image Resizer with Cache

freshface said

VERSION 1.2

Features:

  • - completely independent at WordPress
  • - allowed to zoom images
  • - correct cropping

Bugs:

  • - when you are using WPMU and use /wordpress/something/something/ structure, it won't work, minor bug

Testing:

  • - we just added it to all our demo servers. Is there some volunteer who can help us to test this script ?

LINK

https://github.com/boobslover/freshizer

Hi,

regarding the MU bug, if the problem is to retrive the real url of the files i do something like this on the file path that WP returns:

global $blog_id;
//$url = image url returned by WP
	
	if (is_multisite() && isset($blog_id) && $blog_id > 0) {
		
		$url = explode('/files/', $url);
		
		if (isset($url[1])) {
			
			$url = '/blogs.dir/' . $blog_id . '/files/' . $url[1];
			
		}
		
	}

Now i didn’t look into your code, so not sure how you should implement this, but I guess this might help.

Kudos for your work :wink:

Parker