--- image_resize_filter.module.old	2010-01-05 18:44:38.000000000 +0700
+++ image_resize_filter.module	2010-01-05 18:46:54.000000000 +0700
@@ -1,5 +1,5 @@
 <?php
-// $Id: image_resize_filter.module,v 1.34 2009/11/16 04:29:01 quicksketch Exp $
+// $Id: image_resize_filter.module,v 1.35 2009/11/16 04:31:35 quicksketch Exp $
 
 /**
  * @file image_resize_filter.module
@@ -267,6 +267,26 @@ function image_resize_filter_get_images(
       ${'needs_'. $property} = $needs_property;
     }
 
+    // jcisio: Find the image align if any.
+    $align = NULL;
+    $align_matches = array();
+    preg_match('/align[ ]*=[ ]*"([^"]+)"/i', $img_tag, $align_matches);
+    if (isset($align_matches[1])) {
+      $align = $align_matches[1];
+    }
+
+    if (!$width && !$height) {
+      if (!$align || $align == 'center') {
+        $width = 450;
+      }
+      elseif ($align == 'left') {
+        $width = 300;
+      }
+      elseif ($align == 'right') {
+        $width = 300;
+      }
+    }
+
     // If height and width are both missing, nothing to do here.
     if (!$width && !$height) {
       continue;
