Permalink
Browse files

Corrected some typos.

  • Loading branch information...
1 parent 5f66cc0 commit f7afc97a985b30b395695e99a364c00f55142bcd Babs Gösgens committed Feb 4, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −2 README.txt
  2. +2 −1 admin/components/com_files/models/images.php
View
@@ -17,7 +17,7 @@ KFactory::tmp('admin::com.files.model.images', array('original'=>$row->logo, 'fi
->save(array('path'=>'media/com_files/raw/display/', 'name'=>'mycroppedimage'));
;
-Saves a proportionally sized anc cropped jpeg image (200px x 200px) in the directory media/com_files/raw/display/ under the mycroppedimage.jpg
+Saves a proportionally sized and cropped jpeg image (200px x 200px) in the directory media/com_files/raw/display/ under the name mycroppedimage.jpg
KFactory::tmp('admin::com.files.model.images', array('original'=>$row->logo, 'file_path'=>'media/com_files/raw/'))
@@ -28,4 +28,4 @@ KFactory::tmp('admin::com.files.model.images', array('original'=>$row->logo, 'fi
->displayToBrowser();
;
-Outputs a proportionally sized anc cropped jpeg image (200px x 200px) tothe browser (for whatever it's worth). This method is alpha and not yet tested, so no guarantees ;)
+Outputs a proportionally sized and cropped jpeg image (200px x 200px) tothe browser (for whatever it's worth). This method is alpha and not yet tested, so no guarantees ;)
@@ -122,7 +122,8 @@ public function save($config = array())
$saved = $method($this->_src, $this->_base_path.$file, $compression);
break;
case 'image/jpg':
- $quality = 1000;
+ case 'image/jpeg':
+ $quality = 100;
$saved = $method($this->_src, $this->_base_path.$file, $quality);
break;
case 'image/gif':

0 comments on commit f7afc97

Please sign in to comment.