Stuff
authorChuck Scott <cscott@gaslightmedia.com>
Mon, 11 May 2015 20:36:18 +0000 (16:36 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Mon, 11 May 2015 20:36:18 +0000 (16:36 -0400)
classes/glmMemberImportFromConnections.php
config/plugin.ini

index 784397c..1155836 100644 (file)
@@ -569,12 +569,12 @@ class GlmMemberImportFromConnections
 
                 // If there's an entry in the $sizes array, it means that the image resized to this size
                 if (isset($sizes[$k])) {
-
+echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'].' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."<br>";
                     // Move resized file to desired direectory
                     rename(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$sizes[$k]['file'], GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename);
 
                 } else {
-
+echo GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename.' => '.GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename."<br>";
                     // Image didn't resize to this size, probably because it was smaller than the destination size (silly WP Image Editor class) - so just use the original
                     copy(GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$newFilename, GLM_MEMBERS_PLUGIN_IMAGES_PATH.'/'.$k.'/'.$newFilename);
 
index cc31b0e..d20b3a1 100644 (file)
 [imageSizes]
 
 large['width'] = 800
-large['height'] = false
-large['crop'] = false
+large['height'] = null
+large['crop'] = null
 
 medium['width'] = 400
-medium['height'] = false
-medium['crop'] = false
+medium['height'] = null
+medium['crop'] = null
 
 small['width'] = 200
-small['height'] = false
-small['crop'] = false
+small['height'] = null
+small['crop'] = null
 
 thumb['width'] = 60
-thumb['height'] = false
-thumb['crop'] = false
+thumb['height'] = null
+thumb['crop'] = null
 
 [common]